Skip to content

Instantly share code, notes, and snippets.

@martincharlesworth
Last active December 22, 2019 01:10
Show Gist options
  • Save martincharlesworth/72d22302ea38c5bda48e to your computer and use it in GitHub Desktop.
Save martincharlesworth/72d22302ea38c5bda48e to your computer and use it in GitHub Desktop.
Install Snort on OS X Mavericks
#!/bin/sh
brew install libdnet
curl -O https://www.snort.org/downloads/snort/daq-2.0.2.tar.gz
tar xvfz daq-2.0.2.tar.gz
cd daq-2.0.2
./configure; make; sudo make install
curl -O https://www.snort.org/downloads/snort/snort-2.9.6.2.tar.gz
tar xvfz snort-2.9.6.2.tar.gz
cd snort-2.9.6.2
./configure --enable-sourcefire; make; sudo make install
# grab oinkcode from snort.org
curl -O https://www.snort.org/rules/snortrules-snapshot-2962.tar.gz?oinkcode=<oinkcode>
sudo mkdir /etc/snort
sudo tar -xvfz snortrules-snapshot-<version>.tar.gz -C /etc/snort
sudo mkdir /var/log/snort
# disable line in config
# dynamicdetection directory /usr/local/lib/snort_dynamicrules
#sudo snort -c /etc/snort/etc/snort.conf -k none -i en0
@winnerineast
Copy link

thanks for your sharing and it does work for the installation but it failed to run snort in Mac OS Sierra because openssl version issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment