These examples use FreeBSD, although any Unix-like system will behave similarly. Because installing Snort on a Windows platform does not provide the same degree of flexibility and simplicity, I suggest following this article using your favorite Unix-like operating system.
Many operating systems (including FreeBSD) provide precompiled Snort packages, or frameworks for building Snort from source (like the FreeBSD ports tree). I recommend installing Snort from source code if at all possible. Snort is not the sort of program one should allow to be automatically updated using package management tools, due to the features added and/or removed with each new version.
First, install the Perl Compatible Regular Express (PCRE) library. In this example we use a precompiled FreeBSD package; this does not affect our plans to compile Snort from source.
freebsd61-generic:/root# pkg_add -r pcre
Next, create a directory to hold Snort. I suggest create a dedicated directory to facilitate maintaining multiple versions of Snort. For example, this method allows installing Snort 2.6.1 in its own directory, leaving the option to separately install and test Snort 2.6.2 when available.
We are ready to see what options Snort supports at compile-time. I've selected a few that are relevant to this article. It's important to realize that Snort offers dozens of options, which we can try invoking in future tests.
We need to install Snort into a specified directory, and we also want dynamic plugins.
With Snort installed, we can check what has appeared in our directory.
We can test Sort by executing the snort binary with the -V flag.
Snort provides extensive help via the --help (not -h) switch.
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.