Last active
December 22, 2019 01:10
-
-
Save martincharlesworth/72d22302ea38c5bda48e to your computer and use it in GitHub Desktop.
Install Snort on OS X Mavericks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.