Setting Up Snort (IDS/IPS) in pfSense

Snort Account Creation

Before starting, create a Snort account and obtain an Oinkcode.

To do so, visit https://www.snort.org/.

Click Sign In in the top-right corner.


On the Sign In page, select Sign Up For An Account.

Once the signup process is complete, continue to the next steps.


Snort Installation

Click on the System dropdown.

Select Package Manager.


Click on the Available Packages tab. It may take a minute for all available packages to load.

Either use the search bar or scroll down to locate Snort.

Click +Install.


On the next screen, click Confirm.

Once the package finishes installing, a success message will appear in the terminal window.


Click on the Installed Packages tab to confirm that Snort is now installed.


Snort Configuration

To access the Snort settings, click on the Services dropdown, then select Snort.

Click on the Global Settings tab.

Check the box next to Enable Snort VRT.


In a new browser tab, open https://www.snort.org/.

Sign in to your account.

Click the Oinkcode option in the left-hand menu.

Copy the Oinkcode.


Return to the pfSense webConfigurator.

Paste the Oinkcode into the text box next to Snort Oinkmaster Code.

Next to Enable Snort GPLv2, check the box to download community rules.

Under Emerging Threats Rules, check the box next to Enable ET Open if you do not have a paid Proofpoint account.

Check the box next to Enable ET Pro if you have a paid Proofpoint account.

Under Sourcefire OpenAppID Detectors, check the box next to Enable OpenAppID.

Check the box next to Enable AppID Open Text Rules.

Check the box next to Enable Feodo Tracker Botnet C2 IP Rules.

Next to Update Interval, select a recurrence interval that matches the project requirements.

To reduce the number of visible rules, check the box next to Hide Deprecated Rules Categories.

Next to Remove Blocked Hosts Interval, select an interval appropriate for the project configuration.

Check the box next to Remove Blocked Hosts After Deinstall.

Check the box next to Keep Snort Settings After Deinstall.

Check the box next to Startup/Shutdown Logging.


Click Save.


Click on the Updates tab.

Under Update Your Rule Set, click Update Rules.

Once the rules finish updating, the rule hashes will populate.


Next, click on the Snort Interfaces tab.

Add all necessary interfaces except WAN, unless the pfSense device is behind another internet-facing device (for example, a modem/router combination device).

Click the +Add button.

Until the rule set has been properly tuned, leave all settings at their default values.

Check the box next to Enable.

Select the LAN interface from the dropdown next to Interface.

Enter a description for the interface next to Description.


Scroll to the bottom of the page.

Click Save.


Repeat these steps for any additional interfaces that should be monitored.


Once all interfaces have been added, return to the Snort Interfaces tab.

Click the Play button next to each interface to enable Snort.

The X icons will change to checkmarks once Snort has successfully started.


Leave Blocking disabled until the rules have been properly tuned to reduce the risk of false positives.


Loading...