commands.sh

conntrack

linux

Interact with the Netfilter connection tracking system. Search, list, inspect, modify, and delete connection flows.

More info →

Options (5)

-L, --dumpboolean

List all currently tracked connections

Example: conntrack {{[-L|--dump]}}
-E, --eventboolean

Display a real-time event log of connection changes

Example: conntrack {{[-E|--event]}}
-o, --outputboolean

Display a real-time event log of connection changes and associated timestamps

Example: conntrack {{[-E|--event]}} {{[-o|--output]}} timestamp
-s, --orig-srcboolean

Display a real-time event log of connection changes for a specific IP address

Example: conntrack {{[-E|--event]}} {{[-s|--orig-src]}} {{ip_address}}
-D, --deleteboolean

Delete all flows for a specific source IP address

Example: conntrack {{[-D|--delete]}} {{[-s|--orig-src]}} {{ip_address}}

Examples (5)

List all currently tracked connections

conntrack [-L|--dump]

Display a real-time event log of connection changes

conntrack [-E|--event]

Display a real-time event log of connection changes and associated timestamps

conntrack [-E|--event] [-o|--output] timestamp

Display a real-time event log of connection changes for a specific IP address

conntrack [-E|--event] [-s|--orig-src] ip_address

Delete all flows for a specific source IP address

conntrack [-D|--delete] [-s|--orig-src] ip_address
made by @shridhargupta | data from tldr-pages