install iftop di Linux

iftop is a command line tool that shows a list of active network connections between local host and any remote host, sorted by their bandwidth usage. The list of top-ranking network connections (in terms of bandwidth usage) is periodically refreshed in a ncurses-based user interface. Using iftop, you can visually check the bidirectional bandwidth usage of different network connections in real time. In order to install iftop on Linux, follow the instructions below.


To install iftop on Ubuntu, Mint or Debian, run:


apt-get install iftop

To install iftop on CentOS or RHEL, first set up Repoforge repository on your system, and then run the following command.


yum install iftop

To install iftop on Fedora, simply run:


yum install iftop

If you would like to build and install the latest version of iftop manually, do the following.

sudo yum -y install ncurses-devel libpcap-devel
tar xvfvz iftop-0.17.tar.gz
cd iftop-0.17
sudo make install

Monitor Network Traffic in Real-Time with iftop


To monitor network traffic received on a specific network interface (e.g., eth0) with iftop, run the following command.

iftop -i eth0


iftop supports rudimentary packet filtering rules with "-f" option. For example:


To monitor DNS traffic:

iftop -i eth0 -f 'port domain'


To monitor HTTP traffic:

iftop -i eth0 -f 'port http'


To monitor HTTP traffic while excluding a specific host:

iftop -i eth0 -f 'port http and not host'


To monitor network traffic while ignoring broadcast packets.

iftop -i eth0 -f 'not ether host ff:ff:ff:ff:ff:ff'


To monitor ICMP traffic:

iftop -i eth0 -f 'icmp'
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Disabling SSLv3 for POODLE cPanel

Ada POODLE baru di kota, tapi sayangnya itu bukan jenis anjing. POODLE singkatan Padding Oracle...

Menangani HTTP Attack dengan mod_antiloris

Request pertama datang dari client ke protokol http, lalu web server membuka 1 koneksi http dan...

Membuat Folder di Proteksi Password dengan .htaccess

Dengan .htaccess membuat sebuah folder yang di lindungi password sangat lah mudah, buat file...

Fix Permissions and Ownership

suPHP dan FastCGI membutuhkan file dan folder untuk memiliki satu set tertentu dari Permissions...

Install Antimalware cPanel Plugin

cd ~ wget tar -xzf...