iftop does for network usage what top(1) does for CPU usage. It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts. Handy for answering the question “why is our ADSL link so slow?”.

Installing

root@ddos:~/Desktop# apt-get install flex byacc libpcap0.8 libncurses5

root@ddos:~/Desktop/iftop-1.0pre4# apt-get install curses

root@ddos:~/Desktop/iftop-1.0pre4# apt-get install libpcap-dev

root@ddos:~/Desktop# wget http://www.ex-parrot.com/pdw/iftop/download/iftop-1.0pre4.tar.gz

root@ddos:~/Desktop# tar zxvf iftop-1.0pre4.tar.gz

root@ddos:~/Desktop# cd iftop-1.0pre4/

root@ddos:~/Desktop/iftop-1.0pre4# ./configure –prefix=/usr/local/iftop

root@ddos:~/Desktop/iftop-1.0pre4# make

root@ddos:~/Desktop/iftop-1.0pre4# make install

root@ddos:~/Desktop/iftop-1.0pre4# /usr/local/iftop/sbin/iftop -h

screenshot-from-2016-11-14-15-06-08

Example:

root@ddos:~/Desktop/iftop-1.0pre4# /usr/local/iftop/sbin/iftop -i eth0

screenshot-from-2016-11-14-15-08-23