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 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.