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:
  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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.