IPTraf-ng – A Console-Based Network Monitoring Tool

IPTraf-ng is a console-based Linux network statistics monitoring program that shows information about IP traffic, which includes information such as:

  • Current TCP connections
  • UDP, ICMP, OSPF, and other types of IP packets
  • Packet and byte counts on TCP connections
  • IP, TCP, UDP, ICMP, non-IP, and other packet and byte counts
  • TCP/UDP counts by ports
  • Packet counts by packet sizes
  • Packet and byte counts by IP address
  • Interface activity
  • Flag statuses on TCP packets
  • LAN station statistics

The IPTraf-ng utility can be used to find out the type of traffic on your network, and what kind of service is the most heavily used on what systems, among others.

In this article, you will learn how to install and use the IPTraf-ng network statistics utility in Linux systems.

Installing IPTraf-ng in Linux

IPTraf-ng is part of the Linux distribution and can be installed on RHEL-based distributions such as CentOS Stream, Fedora, Rocky Linux, and AlmaLinux using the following yum command from the terminal.

# yum install iptraf-ng
Install IPtraf-ng in RHEL
Install IPtraf-ng in RHEL

Under Debian-based distributions, iptraf-ng can be installed using Ubuntu Software Center or apt package manager as shown.

$ sudo apt install iptraf-ng
Install IPtraf-ng in Debian
Install IPtraf-ng in Debian

Usage of IPTraf-ng in Linux

Once iptraf-ng is installed, run the following command from the terminal to launch an ascii-based menu interface that will allow you to view current IP traffic monitoring, General interface statistics, Detailed interface statistics, Statistical breakdowns, LAN station monitors, Filters, and also provide some configure options where you can configure as per your need.

# iptraf-ng
iptraf-ng Menu
iptraf-ng Menu

The iptraf interactive screen displays a menu system with different options to choose from. Here are some screenshots that show real-time IP traffic counts and interface statistics etc.

Check IP Traffic in Linux

Linux IP Traffic Monitor
Linux IP Traffic Monitor

General Interface Statistics

Linux Network Inerface Statistics
Linux Network Interface Statistics

Detailed Interface Statistics

Linux Monitor Network Statistics
Linux Monitor Network Statistics

Statistical Breakdowns

Linux Network Statistical Breakdowns
Linux Network Statistical Breakdowns

LAN Station Monitor

Linux LAN Station Monitoring
Linux LAN Station Monitoring

Configure

IPTraf Configure
IPTraf Configure

IPTraf Options

Using “iptraf -i” will immediately start the IP traffic monitor on a particular interface. For example, the following command will start the IP traffic on interface eth0.

This is the primary interface card that is attached to your system. Else you can also monitor all your network interface traffic using the argument as “iptraf -i all“.

# iptraf-ng -i eth0
Or
# iptraf-ng -i all
Linux LAN Network Interface Monitoring
Linux LAN Network Interface Monitoring

Similarly, you can also monitor TCP/UDP traffic on a specific interface, using the following command.

# iptraf-ng -s eth0
Linux TCP/UDP Network Monitor
Linux TCP/UDP Network Monitor

If you want to know more options and how to use them, check iptraf-ngman page‘ or use the command as ‘iptraf-ng -help‘ for more parameters. For more information visit the official project page.

If this article helped, with someone on your team.

TecMint Weekly Newsletter
Get the Learn Linux 7 Days Crash Course free when you join 34,000+ Linux professionals reading every Thursday.
Check your email for a magic link to get started.
Something went wrong. Please try again.
TecMint has been free for 14 years. Help keep it that way.
Google AI Overviews and tools like ChatGPT have cut into search traffic for independent tech sites like TecMint. Running this site costs over $2,000 every month for hosting, infrastructure, and paying authors to keep the content accurate and tested.

If this article helped you solve a problem, consider buying a coffee. It helps keep TecMint free, supports the authors, and keeps the project going.
☕ Buy Me a Coffee
Ravi Saive
I'm Ravi Saive, an award-winning entrepreneur and founder of several successful 5-figure online businesses, including TecMint.com, GeeksMint.com, UbuntuMint.com, and the premium learning hub Pro.Tecmint.com.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

3 Comments

Leave a Reply
  1. No offense meant, but I seem not to appreciate IPTraf a lot. I tend to find the information it displays not very “helpful”. I know Wireshark is too detailed and Etherape consumes lots of CPU resources but I think ifTop does a better job. Maybe it’s just the type of info I look at when monitoring the LAN, who knows. I like the IPTraf interface though.

    Reply
  2. Nice Read, do you know an application somehow similar to iptraf that can be used to configure other network related configurations like firewall? Routing?

    Reply
  3. Hi! Do you know why the synthetic NICs from Hyper-V doesn’t show to IPtraf?
    Normally the NICs shows up like seth0.

    Thanks!
    Fabio

    Reply

Got Something to Say? Join the Discussion...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.

Free Course
Get a free Linux course before you go.
Subscribe to TecMint Weekly and get the Learn Linux 7 Days Crash Course free. Read by 34,000+ Linux professionals every Thursday.
Something went wrong. Please try again.
Check your email for a magic link to get started.