The use of Network Monitoring tool tcptrack
1. Download address http://download.chinaunix.net/download.php? id=32248&ResourceID=10197
tar zxvf tcptrack-1.4.2.tar.gz
cd tcptrack-1.4.2
./ configure ;
#Error as follows
configure: error: Connot find pcap library
#Solution
yum install -y libpcap-devel libpcap
make & make install
2. Use tcptrack -h to get help
Usage: tcptrack [-dfhvp] [-r ] -i []
3. Tcptrack can only monitor the parameters of one NIC at a time (if you have eth0 ð2 on your host)
# tcptrack -i eth0
# tcptrack -i eth2
4.tcptrack can monitor traffic from both specified IP and network cards
# tcptrack -i eth0 src or dst 172.30.65.72
5. You can also specify network cards and listening ports
To monitor the specific ports (ie.. port 80 and 22):
# tcptrack -i eth0 port 80
# tcptrack -i eth0 port 22