How to do it...

Snort can be installed on Ubuntu, either from its source code or through the deb package. In this section, we will install Snort using the deb package:

  1. To get started, we install on our Ubuntu system, using the apt-get command, as shown here:

  1. During the installation, we will be asked to select the interface on which Snort should listen for packets. The default interface selected is eth0, as shown here:

  1. Select the interface according to our system configuration:
  1. Now, let's get started with the sniffer mode of Snort. In ...

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.