The use of Network monitoring tool Tcptrack

Source: Internet
Author: User

1. http://download.chinaunix.net/download.php?id=32248&ResourceID=10197

    • Tar zxvf tcptrack-1.4.2.tar.gz

    • CD tcptrack-1.4.2

    • ./configure;

    • #报错如下

    • Configure:error:Connot Find Pcap Library

    • #解决方法

    • Yum install-y libpcap-devel libpcap

    • Make & make Install

2. Get help information using Tcptrack-h

Usage:tcptrack [-DFHVP] [-R <seconds>]-I <interface> [<filter Expression>]

3.Tcptrack runtime can only monitor the parameters of one network card at a time (if you have eth0&eth1 on the host)

    • # tcptrack-i Eth0

    • 650) this.width=650; "title=" Tcptrack.png "alt=" Wkiol1chgwtrrxr4aaapepg-qbc246.png "src=" http://s5.51cto.com/ Wyfs02/m01/7f/83/wkiol1chgwtrrxr4aaapepg-qbc246.png "/>

    • # tcptrack-i Eth1

4.tcptrack can also monitor traffic from specified IP and network cards

# tcptrack-i eth0 src or DST 172.30.65.72

650) this.width=650; "title=" Tcptrack01.png "alt=" Wkiol1chgoigkt99aaapjbx_u50339.png "src=" http://s5.51cto.com/ Wyfs02/m00/7f/83/wkiol1chgoigkt99aaapjbx_u50339.png "/>

5. You can also specify the network card and the listening port

To monitor the specific ports (ie. Port and 22):

    • # tcptrack-i eth0 Port 80

    • # tcptrack-i Eth0 Port 22

    • 650) this.width=650; "title=" Tcptrack03.png "alt=" Wkiom1chhd2d6g1daaaxcnjcpdi228.png "src=" http://s2.51cto.com/ Wyfs02/m02/7f/85/wkiom1chhd2d6g1daaaxcnjcpdi228.png "/>


This article is from the Server Ops blog, so be sure to keep this source http://shamereedwine.blog.51cto.com/5476890/1768519

The use of Network monitoring tool Tcptrack

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.