Step by Step to install iptraf (tcp/udp) network monitoring tool on ubuntu 20.04 LTS

Iptraf is a free & open source network statistics tool.Its console-based utility for Linux system.Using Iptraf, we can monitor IP traffic passing over the network.We can display the general & detailed network interface statistics,incoming & outgoing packets of TCP/UDP service & etc.

There are few steps to install & configure Iptraf on ubuntu:

Step 1: Update the System.

apt-get update

Step 2: Install iptraf on system.

apt install iptraf-ng

Step 3: Iptraf Syntax & Examples:

  • To start iptraf tool.

iptraf-ng

  • Here is the command output.
  • There are multiples option to monitor the traffic & network interfaces.
  • Select IP traffic monitor.

  • Select all or specific network interface for monitoring.
  • Select eth0 network interface.

  • Here is the selected eth0 network interface monitoring output.
  • To monitor the specific network interface.

iptraf-ng -i interface_name_here
iptraf-ng -i eth0

  • Here is the command output.

  • To monitor all interfaces.

iptraf-ng -i all

  • Here is the command output.

  • Start the general interface statistics.

iptraf-ng -g

  • Here is the command output.

  • To displays the detailed statistics on a specific network interface.

iptraf-ng -d eth0

  • Here is the command output.

  • To displays the TCP and UDP monitor on a specific network interface.

iptraf-ng -s eth0

  • Here is the command output.

  • To see the packet size counts on a specific network interface.

iptraf-ng -z eth0

  • Here is the command output.

Leave a Reply