Forrest logo
back to the conntrack tool

conntrack:tldr:f56dc

conntrack: Display a real-time event log of connection changes.
$ conntrack --event
try on your machine

The conntrack --event command is used to view and monitor network connection events that are being tracked by the connection tracking system in Linux. Connection tracking is a mechanism that keeps track of the state of network connections and is commonly used to implement features like network address translation (NAT) and stateful firewalling.

By running conntrack --event, you can continuously display events related to network connections being tracked by the netfilter subsystem, which is responsible for connection tracking. These events may include new connection creation, connection establishment, connection teardown, or other relevant changes to connections.

Some examples of events that can be displayed are:

  • new: Indicates the creation of a new connection.
  • update: Signifies a change in the connection state or additional information being added to the connection.
  • destroy: Denotes the termination or removal of a connection from the connection tracking table.

By monitoring connection events, network administrators or developers can gain insights into the network traffic and understand the behavior of connections being tracked on the system. This information can be valuable for troubleshooting network-related issues, analyzing network security, or optimizing network performance.

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