2025-03-14 21:59:59 -06:00
|
|
|
# conntrack
|
|
|
|
|
|
|
|
|
|
> Interact with the Netfilter connection tracking system.
|
|
|
|
|
> Search, list, inspect, modify, and delete connection flows.
|
|
|
|
|
> More information: <https://manned.org/conntrack>.
|
|
|
|
|
|
|
|
|
|
- List all currently tracked connections:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`conntrack {{[-L|--dump]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display a real-time event log of connection changes:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`conntrack {{[-E|--event]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display a real-time event log of connection changes and associated timestamps:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`conntrack {{[-E|--event]}} {{[-o|--output]}} timestamp`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display a real-time event log of connection changes for a specific IP address:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`conntrack {{[-E|--event]}} {{[-s|--orig-src]}} {{ip_address}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Delete all flows for a specific source IP address:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`conntrack {{[-D|--delete]}} {{[-s|--orig-src]}} {{ip_address}}`
|