Install Doc

Compile snort 2.4, snort 2.6, or snort 2.8 on your IDS. Make sure it works the way you think it should. For help getting snort working visit http://www.snort.org

Write down the following items:

  • Parameters on your configure command
  • Location of your snort.conf file (Usually /etc/snort.conf)
  • Location of your Rule Path (Frequently /etc/snort/rules, but it could be anything)
  • Location of your snort executable (Frequently it's /usr/local/bin/snort, but yours could be anything.)Try which snort or check the snort initialization script.

    Download the Snort source code patch into your Snort directory; example /install/snort-2.4.5.,

  • Snort Version 2.4 - Download
  • Snort Version 2.6 - Download
  • Snort Version 2.8 - Download


    Patch and recompile Snort to use the Autoshun plugin.

  • cd [location of Snort source code]; example, cd /install/snort-2.4.5/src
  • make clean; example,make distclean
  • change directory up one level; example, cd ..
  • extract Autoshun plugin; example, tar -zxvf Snort-2.4-AutoshunPatch.tgz
  • Patch -p1 < [location of the patchfile you downloaded]; example assuming patch is located at /install/snort-2.4.5 directory, patch -p1 < autoshunpatch-Snort-2.4-Autoshun-1.0d
  • Run configure with your installation specific options; example, ./configure
  • Run make; make
  • Test your Snort installation; example assuming your snort.conf is in /etc, snort -T -c /etc/snort.conf
  • If test is successful stop your Snort service; example, service snort stop
  • Install Snort; example, make install
  • Start Snort service; example, service snort start

    Configure your snort configuration file to use the autoshun rules.

  • While logged into your IDS, browse to http://www.myipaddress.com or any other service that displays the outside address of your IDS.

  • Log onto the Autoshun server to register your IDS.

  • Click on the Register My IDS link
  • Enter the outside IP address of the IDS and the hostname for the IDS.
  • It will return a huge long key value. Copy and save this long series of digits. This is the unique login key for your IDS. This key value is unique to the outside address of your IDS. If the outside address of the IDS changes, this key will need to be regenerated.

  • Edit your snort.conf file; example, assuming that your snort.conf is located in /etc, vi /etc/snort.conf
  • Go to output plugin section.
  • Add the autoshun output plugin to your snort.conf; example,
    output output_autoshun:
    afferentsecurity.com:80 abcdefgh1234567ijklm890

  • Use wget to download the autoshun rules and autoshuncalibration (you should not use the calibration rules in production, the rules will be ignored) rules to your rules directory; example, assuming that your rules directory is /etc/snort, cd /etc/snort
  • wget http://www.autoshun.org/downloads/autoshun2.rules
  • wget http://www.autoshun.org/downloads/autoshuncalibration.rules
  • Edit your snort.conf file; example, assuming that your snort.conf is located in /etc, vi /etc/snort.conf
  • Go to the rules section and add the autoshun2.rules and autoshuncalibration.rules
  • include $RULE_PATH/autoshun2.rules
  • include $RULE_PATH/autoshuncalibrations.rules
  • Test your Snort installation; example assuming your snort.conf is in /etc, snort -T -c /etc/snort.conf
  • After successful testing of the new snort install, restart Snort; example, service snort restart
  • From another machine on the network ping 10.2.2.43 (Success or Failure of the ping is irrelevant). Review that the alert was registered in your alert system (i.e. database, alert file, etc.).
  • To see that the IDS has contacted the autoshun database go to Manage Your IDS to see the last contact time.
  • Edit your snort.conf file; example, assuming that your snort.conf is located in /etc, vi /etc/snort.conf Go to the rules section and comment out the autoshuncalibration.rules
    #include $RULE_PATH/autoshuncalibrations.rules

  • Restart Snort service; example, service snort start
    Create a script to update the autoshun rules everyday.


    For installation problems contact us