Analyzing network traffic with iftop
|
Conclusion
The iftop command-line tool captures data traffic on network interfaces and then analyzes which network connections exist and how many data packets are running on each one. In this way, you can quickly determine how much bandwidth each program and service requires and is possibly overloading. Packet filtering is just one of many options that helps.
Table 1
Pcap Filter
Filter | Description |
---|---|
dst host 1.2.3.4 | All packets with a destination IP address of 1.2.3.4 |
src port 22 | All packets arriving on port 22 |
dst portrange 22-33 | All packets departing in a range of ports from 22 through 33 |
gateway 1.2.3.5 | All packets with the gateway IP address of 1.2.3.5 |
Acknowledgement
The author thanks Axel Beckert for his help in preparing this article.
Infos
- Iftop: http://www.ex-parrot.com/~pdw/iftop/
- DEB package for Iftop: http://packages.debian.org/squeeze/iftop
- Finding RPMs: http://rpmfind.net
- Libpcap: http://www.tcpdump.org
- Libcurses: http://www.gnu.org/software/ncurses/ncurses.html
- Compiling Things on Ubuntu the Easy Way: https://help.ubuntu.com/community/CompilingEasyHowTo
« Previous 1 2 3 Next »
Buy this article as PDF
Express-Checkout as PDF
Pages: 3
Price $0.99
(incl. VAT)
(incl. VAT)