Forrest logo
back to the conntrack tool

conntrack:tldr:01861

conntrack: List all currently tracked connections.
$ conntrack --dump
try on your machine

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.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the conntrack tool