资 源 简 介
This script continuously watches the ip_conntrack or nf_conntrack file, usually located in /proc/net/ on Linux, displaying certain fields from the list of network connections. The list can be sorted by IP addresses, ports, protocol, or connection state. The display list can also be filtered using the fields to display only the lines that contain a specified field. The filter is very primitive right now, but I will improve it when I get a chance or you can help (for example, allow pattern matching or negation of terms).
The list displays the source and destination IP addresses, the source and destination ports, the protocol used (e.g. tcp or udp), the connection state, and the TTL for connection.
This script requires Perl 5.8+ and the perl-Curses module/package.
There are some other scripts that display the conntrack info in a friendly manner, but they didn"t work or I didn"t like them, so I wrote my own.