Iptraf Monitoring Tool

Monitoring a Linux Network with iptraf

iptraf for Linux


iptraf is a menu driven utility that allows you to monitor your TCP network. Information such as ICMP, OSPF, TCP and UDP counts can be displayed easily. Interfaces can be monitored. Monitor connectivity and traffic with ease.



Generally, iptraf can be easily installed. iptraf is normally available from within your systems repositories. Under Debian/Ubuntu systems issue the relevant "sudo apt-get install iptraf" command. Red Hat based distributions should be able to run the relevant "yum install iptraf" command.


Installing iptraf on a openSUSE system


The following installation was carried out using zypper. First, I checked that the iptraf package was available by issuing a search. Once I had confirmed the package was available, I then issued the "zypper install iptraf" command.


linux-pd5y:~ # zypper se iptraf
Loading repository data...
Reading installed packages...

S | Name | Summary | Type
--+-----------+------------------------+-----------
| iptraf | TCP/IP Network Monitor | srcpackage
| iptraf-ng | TCP/IP Network Monitor | package
linux-pd5y:~ # zypper in iptraf
Loading repository data...
Reading installed packages...
'iptraf' not found in package names. Trying capabilities.
Resolving package dependencies...

The following NEW package is going to be installed:
iptraf-ng

1 new package to install.
Overall download size: 80.0 KiB. After the operation, additional 203.0 KiB will be used.
Continue? [y/n/?] (y): y
Retrieving package iptraf-ng-1.0.2+git64-7.3.1.i586 (1/1), 80.0 KiB (203.0 KiB unpacked)
Retrieving: iptraf-ng-1.0.2+git64-7.3.1.i586.rpm [done (0 B/s)]
Installing: iptraf-ng-1.0.2+git64-7.3.1 [done]


Once iptraf has installed successfully, you can start the monitor by typing iptraf on your terminal. iptraf needs to run as root!


Installing iptraf on a Debian based system: Mint/Ubuntu


The command to install "iptraf" on a debian based system is "sudo apt-get install iptraf



john@ubuntu1404:~$ sudo apt-get install iptraf
[sudo] password for john: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed
  iptraf
0 to upgrade, 1 to newly install, 0 to remove and 339 not to upgrade.
Need to get 157 kB of archives.
After this operation, 620 kB of additional disk space will be used.
Get:1 http://gb.archive.ubuntu.com/ubuntu/ trusty/main iptraf amd64 3.0.0-8.1 [157 kB]
Fetched 157 kB in 1s (79.3 kB/s)                        
Selecting previously unselected package iptraf.
(Reading database ... 265766 files and directories currently installed.)
Preparing to unpack .../iptraf_3.0.0-8.1_amd64.deb ...
Unpacking iptraf (3.0.0-8.1) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for doc-base (0.10.5) ...
Processing 1 added doc-base file...
Setting up iptraf (3.0.0-8.1) ...

iptraf Video showing basic functionality