How to do it...

Using Iptraf is very simple. Once installed, it can be launched from the terminal just by running a simple command. Let's explore how the tool works:

  1. To start Iptraf, just type the following command in the Terminal:
Iptraf    
  1. This will launch an ASCII-based menu interface. Press any key to continue.
  1. In the next screen, we will get a menu system with different options to choose from, as follows:

  1. We will choose the first option, IP traffic monitor, and press Enter. This will ask us to select the interface on which we want to listen for the traffic:

We will choose eth0 in the preceding list and press Enter.

  1. IPTraf will ...

Get Practical Linux Security Cookbook - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.