Table of Contents

Snort Install Notes

Have ran into too many issues installing from apt-get, so I now just compile all the necessary packages.

Latest version installed: 2.9.2.1 on 10.04

Some required packages:

–enable-FEATURE[ARG] include FEATURE [ARGyes] –enable-64bit-gcc Try to compile 64bit (only tested on Sparc Solaris 9). –enable-maintainer-mode enable make rules and dependencies not useful

                       (and sometimes confusing) to the casual installer

–disable-dependency-tracking speeds up one-time build –enable-dependency-tracking do not reject slow dependency extractors –enable-shared[PKGS] build shared libraries [defaultyes] –enable-static[PKGS] build static libraries [defaultyes] –enable-fast-install[PKGS] optimize for fast installation [defaultyes] –disable-libtool-lock avoid locking (might break parallel builds) –enable-debug Enable debugging options (bugreports and developers only) –enable-profile Enable profiling options (developers only) –enable-pthread Enable pthread support –enable-prelude Enable Prelude Hybrid IDS support –enable-sourcefire Enable Sourcefire specific build options –enable-rulestate Enable seperation of Rule State from Rule definition –enable-dynamicplugin Enable Ability to dynamically load preprocessors, detection engine, and rules lib –enable-timestats Enable TimeStats functionality –enable-perfprofiling Enable preprocessor and rule performance profiling –enable-linux-smp-stats Enable statistics reporting through proc –enable-inline Use the libipq interface for inline snort –enable-ipfw Enable ipfw Divert mode for use with inline –enable-flexresp Flexible Responses on hostile connection attempts –enable-flexresp2 NEW Flexible Responses on hostile connection attempts –enable-react Intercept and terminate offending HTTP accesses </file>

To start snort:

sudo snort -c /etc/snort/snort.conf -i eth0 -D

Paths to Create

/etc/snort/ Location of Snort configuration files
/etc/snort/pulledpork/ Location of pulledpork scripts and configuration
/etc/snort/rules/ Location of Snort rules
/scripts/ Location of various custom Snort scripts
/var/log/snort/ Snort logging directory

Errors

Segmentation Fault:

Compression Depth

ERROR: c:\snort\etc\snort.conf(240) ''> 'compress_depth' and 'decompress_depth' should 
be set to max in the default policy to enable 'unlimited_decompress'
Fatal Error, Quitting.. 

Open your snort.conf file and look for the line :

# HTTP normalization and anomaly detection.  For more information, see README.http_inspect
preprocessor http_inspect: global iis_unicode_map unicode.map 1252 compress_depth 65535 decompress_depth 65535

You can find it in section 5 … then change your values compress_depth and decompress_depth each to 65535 as shown above.

Emerging Threats

oinkmaster

Pulledpork

Updating guide

– Main.FredPettis - 2011-01-10