Snort Installation Before we create the Snort database we build and install Snort from ports. To do
that follow these steps.
cd /usr/ports/net/snort
export FLAVOR=mysql
make install
NOTE: At the end of the compile it states how to invoke Snort properly
--start of snip--
snort-2.6.0.2p1-mysql: complete --- snort-2.6.0.2p1-mysql ------------------- An up-to-date set of rules is needed for Snort to be useful as an IDS. These can be downloaded manually or net/oinkmaster can be used to download the latest rules from several different sources. It is recommended that snort be run as an unprivileged chrooted user. A _snort user/group and a log directory have been created for this purpose. You should start snort with the following options to take advantage of this: -c /etc/snort/snort.conf -u _snort -g _snort -t /var/snort -l /var/snort/log --end of snip--
Now you should have a user and group at the OS level added with the name of
"_snort". To check this run:
tail -n 1 /etc/passwd
_snort:*:557:557:Snort Account:/nonexistent:/sbin/nologin Nicholas Pappas
44
@ 2021 SANS Institute
Author Retains Full Rights