tar -xzf snort-1.6.tar.gzThis will create the directory snort-1.6 in the current working directory. Now type:
cd snort-1.6 ./configure makeIf everything goes well, you will now have compiled snort. To verify that the software was built correctly type:
./snortA page full of usage information should scroll past. If not, then examine the output from the make command for errors, correct them, and rebuild.
make install
Alert Options
There are three options that affect snort alerts. They are mutually
exclusive of each other. Syslog alerts overide SMB alerts, which overide
snort alerts. If no alert option is given, then snort defaults to
"-A full".
-A fast|full|none|unsockThis option sets the alert mode for the snort alert file. The choices are fast, full, none, and unsock. fast alerting logs the timestamp, source IP and port, destination IP and port, and the message that was defined in the alert rule. full alerting provides the same information as fast alerting, plus it logs the actual packet into the alert file. none disables alerting completely. unsock uses UNIX sockets to pass the information to a monitoring program. I will look into this in more detail and write a special section on using it. Currently there is no output plugin that provides this functionality.
-M smb_host_fileThis option configures snort to send alert messages via the WinPopup mechanism. The smb_host_file contains the list of hosts (one per line) to send the messages to. To use this option you must have samba installed on the machine running snort. If both this and the -A option are used on the commandline, then this option will take precedence. There is currently no output plugin to provide this functionality.
-sThis option configures snort to send alert messages to syslog. These are sent with the priority of LOG_AUTHPRIV|LOG_ALERT. This can be changed by editing the source file, but not trivially (it shows up at least five times). If this option is used with either the -A and/or -M option on the commandline, then this option will take precedence. In addition to enabling syslog alerts on the commandline, you can also use the spo_alert_syslog plugin by enabling it in the rules file. More information is available on this later.
Running in the background
There is a flag to tell snort to fork and run in the background. Most users
will want this when they run snort as a production system. The option is
-D