Get the App
SLTechnology News&Howtos  ›  Network Security  › 

The use of Network Monitoring tool tcptrack

Shulou Source: shulou.com Published: 2022-06-01 06:40:47 10月03日 Update

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

Tags: Network card monitoring host information parameters simultaneously address method traffic port help monitoring monitoring running tools network network monitoring monitoring Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi vpn Docker NVidia OPPO Reno