Snort Setup and Alerts

CS 493/693 Lecture, Dr. Lawlor, 2006/03/03

Snort

Setting up snort means:
  1. Download the source code from snort.org/dl
  2. Build the source code with "tar xzvf snort-2.4.3.tar.gz; cd snort-2.4.3; ./configure; make; sudo make install"
  3. Copy the configure directory to a secure place, like /etc: "sudo cp snort-2.4.3/etc /etc/snort"
  4. Edit the "/etc/snort/snort.conf" config file, at least to set the HOME_NET address.
  5. Download snort rules from http://www.snort.org/pub-bin/downloads.cgi.  Free registration is required for the latest rules.
  6. Unpack snort rules using "cd /etc/snort; tar xzvf ~/snortrules*".
  7. Run snort as root "snort -de  -K ascii -c /etc/snort/snort.conf"
Snort will send its output to:

Interpreting Snort Alerts

The IP Address:
The Port number. Source port numbers are either large (over 1000) and random, or small (under 1000) and always the same.  Low port numbers can only be used by root users, and are often used by system services (e.g., network daemons).