• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install and use IPTraf in Linux

280

To install and use IPTraf Tool

IPTraf is an IP LAN monitoring tool based on ncurses, which is used to monitor connections such as UDP, TCP, ICMP, etc. Real Time Interactive IP LAN Monitoring with IPTraf Tool installation is explained in this manual.

To Install IPTraf

For Ubuntu

Run the following ‘ apt-get‘ command for its installation.

root@linuxhelp ~$ sudo apt-get install iptraf

For CentOS, RHEL and Fedora

IPTraf is part of the Linux distribution which can be installed on CentOS, RHEL, and Fedora server’ s by executing the following command.

[root@linuxhelp ~]# yum install iptraf -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * extras: centos.excellmedia.net
 * updates: centos.excellmedia.net
Resolving Dependencies
-->  Running transaction check
--->  Package iptraf-ng.x86_64 0:1.1.4-4.el7 will be installed
.
.
.
Installed:
  iptraf-ng.x86_64 0:1.1.4-4.el7                                                         

Complete!

Now the installation of IPTraf is completed.

Usage of IPTraf

In the terminal, execute the below command to start an ASCII based menu interface which will allow to see the present IP traffic monitoring, Detailed interface statistics, General interface statistics, Filters, Statistical breakdowns, and also gives some configure options.

[root@linuxhelp ~]# iptraf

IPTraf

A menu system is displayed by the iptraf interactive screen with various options to choose from. The real time interface statistics and IP traffic are shown in the following screenshots.

IP traffic monitor

IP traffic monitor Screen

IPTraf tool

General interface statistics Screen

General interface statistics Screen

Detailed interface statistics Screen


Detailed interface statistics Screen

Statistical breakdowns Screen

1. By packet size


packet size
2. By TCP/UDP port


TCP/UDP port
LAN station monitor Screen

LAN station monitoring screen
Filter Screen


Filter screen
Configuration Screen


configuration

Various Options for IPTraf

To start the IP traffic monitor on a specific interface, run “ iptraf -i” .

[root@linuxhelp ~]# iptraf -i eth0

Various Options

Use the following command, to monitor TCP/UDP traffic on a particular interface.

[root@linuxhelp ~]# iptraf -s eth0

TCP/UDP traffic

Tags:
jacob
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

Is there any way to make IPTraf run in the background and collect statistics to a log file?

A

there was no elegant way of doing so. Version 2.1.0 and later have the -B command-line parameter to force IPTraf to dump all its screen output into oblivion and move into the background.

Q

Does IPTraf run on FreeBSD?

A

IPTraf was designed from the ground up to use the Linux

PF_PACKET mechanism, not libpcap.

Q

I try to start IPTraf but it tells me that is already active in another process?

A

Probably due to a faulty installation or abnormal termination. If you're sure you've installed the software properly, you may have stale lock files from a previous abort.

Q

How to configure IPTraf but it tells me only the first instance can configure?

A

By this command you can clear the Issue the iptraf command with the -f parameter.

Q

Why I get the error message "Unable to open raw socket" when using IPtraf?

A

you must be running version 2.2.x of the Linux kernel. Be sure to include it if you're compiling a custom kernel. The "Packet Socket" driver must be installed.

Related Tutorials in How to install and use IPTraf in Linux

Related Tutorials in How to install and use IPTraf in Linux

How to install and use IPTraf in Linux
How to install and use IPTraf in Linux
May 17, 2016
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Lucas ?
Various options in Top command

Am using Top command only to view the load average, what are the various options in Top command..??

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.