SHARE
Facebook X Pinterest WhatsApp

Monitoring Network Traffic With IPTraf

IPTraf is a very useful ncurses-based application that shows the traffic passing through your machine. On startup, you can immediately see all network traffic on your machine by choosing “IP traffic monitor.” The configuration menu enables you to change the logging interval (under Timers) or add monitoring of ports above 1023, as these aren’t monitored […]

Written By: Juliet Kemp
Sep 25, 2008
Datamation content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

IPTraf is a very useful ncurses-based
application that shows the traffic passing through your machine.

On startup, you can immediately see all network traffic on your machine by
choosing “IP traffic monitor.” The configuration menu enables you to change
the logging interval (under Timers) or add monitoring of ports above 1023,
as these aren’t monitored by default. You can also turn on DNS lookups and
service name lookups to get names rather than numbers.

One of the best points of iptraf is its flexible traffic-filtering
options. In the Add Filters screen, the left-hand set of filters are for the
source address; the right-hand for the destination. A value of
0.0.0.0 for IP address and netmask translates to “all hosts.” The
I/E at the bottom control whether matching data is included or excluded.

An important point is that iptraf interprets filters to mean
“include/exclude this data, and show nothing else.” For including data, this
works fine. But if you exclude a particular set of data, that data
won’t be shown; nor will any other data. You must add a second filter,
which has both sets of address and mask as 0.0.0.0, and that has “Y” by all
the protocols, to show the rest of the traffic. Filters are applied
in order, so this general filter must be the last in the chain.

After you’ve defined the filter, you need to use the “Apply filter” option
from the Filters – IP menu, before using the display again to examine the
data you want.

This article was first published on ServerWatch.com.

 SEE ALL
ARTICLES
 

Recommended for you...

8 Best Network Monitoring Tools of 2024 (Free & Paid)
Liz Ticong
Apr 11, 2024
OpenVAS vs. Nessus: Top Vulnerability Scanners Compared
Leon Yen
Feb 23, 2024
What is SOX Compliance? Requirements & Rules
Mary Shacklett
Oct 4, 2023
The Top Intrusion Prevention Systems
Kashyap Vyas
Jun 14, 2023
Datamation Logo

Datamation is the leading industry resource for B2B data professionals and technology buyers. Datamation's focus is on providing insight into the latest trends and innovation in AI, data security, big data, and more, along with in-depth product recommendations and comparisons. More than 1.7M users gain insight and guidance from Datamation every year.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.