conntrack:tldr:01861
The conntrack --dump
command is used to display a detailed listing of the current connection tracking entries in the Linux kernel's connection tracking table.
Connection tracking is a feature in the Linux kernel that allows it to keep track of various types of network connections (TCP, UDP, etc.) and their states. It is especially useful for firewalling, NAT (Network Address Translation), and other network-related tasks.
When you run the conntrack --dump
command, it fetches the information from the kernel's connection tracking table and prints it to the terminal in a structured format. The output typically includes details such as source and destination IP addresses, source and destination ports, protocol, connection state, timeout values, and more for each tracked connection.
This command is often used for troubleshooting and monitoring network connections, analyzing network traffic, or gathering information about established connections on a Linux system.