conntrack
linux
Interact with the Netfilter connection tracking system. Search, list, inspect, modify, and delete connection flows.
More info →Options (5)
-L, --dumpbooleanList all currently tracked connections
Example:
conntrack {{[-L|--dump]}}-E, --eventbooleanDisplay a real-time event log of connection changes
Example:
conntrack {{[-E|--event]}}-o, --outputbooleanDisplay a real-time event log of connection changes and associated timestamps
Example:
conntrack {{[-E|--event]}} {{[-o|--output]}} timestamp-s, --orig-srcbooleanDisplay a real-time event log of connection changes for a specific IP address
Example:
conntrack {{[-E|--event]}} {{[-s|--orig-src]}} {{ip_address}}-D, --deletebooleanDelete 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] timestampDisplay a real-time event log of connection changes for a specific IP address
conntrack [-E|--event] [-s|--orig-src] ip_addressDelete all flows for a specific source IP address
conntrack [-D|--delete] [-s|--orig-src] ip_addressmade by @shridhargupta | data from tldr-pages