Intrusion Prevention System
The documentation describes common scenarios and settings for the firewall. You can find advanced scenarios and a description of all settings in the official pfSense documentation.
How it works
The Intrusion Prevention System (IPS) is an additional security system included with Selectel firewalls. IPS detects and blocks almost all types of network attacks and sends alerts about them.
In the Selectel firewall, IPS is implemented as a software module based on Snort. The system inspects traffic that has already passed firewall filtering. Regularly updated rules from the Snort developer community are used to inspect traffic. You can add your own rules for detecting and blocking network attacks.
Limitations
The IPS on a Selectel firewall does not protect against:
- from attacks on application logic (L7). To protect at this layer, use WAF;
- against any non-network attacks, for example, gaining user superuser rights.
Pricing
You can enable IPS on a Selectel firewall for free. Only the firewall is paid; see more details in the Payment model and prices of hardware firewall instructions.
Connect IPS
- Connect to the Selectel firewall.
- Configure the IPS module.
- Add and configure a network interface.
- Configure existing rules.
- Optional: create your own rules.
- Enable IPS on the interface.
1. Connect to a Selectel firewall
-
Open the following page in your browser:
https://<ip_address>:5443Specify
<ip_address>— the IP address of the firewall. -
Enter the username and password received in the ticket after ordering the firewall. The GUI home page with the dashboard will open.
2. Configure the IPS module
- In the Services menu, go to the Snort section.
- Open the Global settings tab.
- For repositories with the required rules, select the **Click to enable download of ** checkboxes.
- Optional: configure the update check frequency for enabled rule packages in the Rules Update Settings block.
- Optional: configure general settings in the General Settings block.
- Click Save.
- Open the Updates tab.
- Click Update Rules and download the selected rule repositories.
- Optional: configure other settings.
- Click Save.
3. Add and configure a network interface
-
In the Services menu, go to the Snort section.
-
Open the Snort Interfaces tab.
-
Click + Add.
-
Select the interface on which you want to enable IPS.
-
Optional: so that the IPS log is displayed in the general firewall log, in the Alert Settings block, select the Send Alerts to System Log checkbox.
-
In the Block Settings block, select the Block Offenders checkbox.
-
In the IPS Mode field, select the blocking mode:
- Legacy mode — sources of suspicious traffic are blocked, some suspicious traffic may enter the system before blocking;
- Inline mode — suspicious traffic packets are blocked without entering the system.
-
Click Save.
-
Optional: to reduce the number of false positives, open the Variables tab and specify the IP addresses and ports of your servers.
4. Configure existing rules
-
In the Services menu, go to the Snort section.
-
Open the Snort Interfaces tab.
-
In the row of the desired interface, click .
-
Open the Rules tab.
-
In the Available Rule Categories block, select a category.
-
In the State column, check the rules. If necessary, change the state of the rule.
-
If when configuring the module in step 7 you selected Inline mode, in the Action column, select the rule action:
- DEFAULT — set the default rule action, usually ALERT;
- ALERT — create a log entry;
- DROP — drop the packet;
- REJECT — drop the packet and return a port unreachable message in response.
-
Click Apply.
5. Create custom rules
- In the Services menu, go to the Snort section.
- Open the Snort Interfaces tab.
- In the row of the desired interface, click .
- Open the Rules tab.
- In the Available Rule Categories block, select custom.rules.
- In the Defined Custom Rules block, enter the text of the rules in Snort format. For more information, see the Writing Snort Rules section in the Snort documentation.
- Click Save.
6. Enable IPS on the interface
- In the Services menu, go to the Snort section.
- Open the Snort Interfaces tab.
- In the row of the desired interface, click .
- Optional: to view Snort operation logs, go to Services → Snort → the Alerts tab.
- Optional: to view network interface operation logs, go to Services → Snort → in the row of the desired interface → the Logs tab.