iptraf – Monitor NIC traffic in real time

IPTRAF is a command-line utility that allows users to monitor real-time network traffic on a Linux server. It can be used to monitor various network statistics such as TCP/UDP traffic, network bandwidth utilization, and network packet counts. The tool can be used to troubleshoot network-related issues and provides a quick overview of network traffic.

Overview

IPTRAF is a powerful tool that can be used to monitor network traffic on a Linux server. To use IPTRAF, you must have root access to the server. Once you have access, you can install IPTRAF using the following command:

sudo apt-get install iptraf

Once installed, you can start IPTRAF by running the following command:

sudo iptraf

This will launch the IPTRAF interface, which provides a menu of options to choose from. The main menu includes options for monitoring network traffic, configuring IPTRAF settings, and exiting the program.

One of the most useful features of IPTRAF is the ability to monitor network traffic in real-time. To do this, select the “IP Traffic Monitor” option from the main menu. This will launch a real-time interface that displays network traffic statistics such as packet counts, network bandwidth utilization, and TCP/UDP traffic.

Another useful feature of IPTRAF is the ability to monitor traffic on specific network interfaces. To do this, select the “Interfaces” option from the main menu and choose the network interface you want to monitor. This will display network traffic statistics for that specific interface.

IPTRAF also includes a number of other features, such as the ability to monitor network connections, view network statistics for individual IP addresses, and monitor network bandwidth utilization over time.

Options

The following table lists the available options for the IPTRAF command:

Option Description
-s Start IPTRAF in silent mode
-d Start IPTRAF in debug mode
-h Display help information
-v Display version information

Troubleshooting tips

If you’re having trouble using IPTRAF, there are a few things you can try:

  • Make sure you have root access to the server.
  • Verify that IPTRAF is installed correctly by running the command “sudo iptraf” from the command line.
  • If you’re having trouble monitoring network traffic on a specific interface, make sure that interface is active and connected to the network.
  • If you’re experiencing performance issues with IPTRAF, try reducing the number of statistics being monitored.

Notes

  • IPTRAF is a powerful tool that can be used to monitor network traffic in real-time on a Linux server.
  • The tool can be used to troubleshoot network-related issues and provides a quick overview of network traffic.
  • IPTRAF includes a number of features, such as the ability to monitor network connections, view network statistics for individual IP addresses, and monitor network bandwidth utilization over time.
  • If you’re having trouble using IPTRAF, try troubleshooting common issues such as verifying root access, checking network interface connectivity, and reducing the number of statistics being monitored.