Intrusion prevention inspects traffic passing through the firewall with Suricata and the free Emerging Threats ruleset. It drops exploits, malware traffic, botnet command servers and known attackers. What it finds is listed on Security › Live attacks.
Where: Security › Intrusion prevention
Turn it on with good settings
- Engine › Mode:
- Mode: Prevention: drop rules block traffic.
- When the engine is unavailable: Fail open. If Suricata stops or restarts, traffic keeps flowing uninspected. Fail closed stops inspected traffic instead.
- Performance profile: Medium (1 GB) suits most firewalls. High (4 GB) detects more if the firewall has the memory to spare. Light (384 MB) is for the smallest boxes.
- Encrypted connections: Inspect the handshake, then let it go (the default, from 1.4.6). The IPS can't read inside encrypted traffic, so once it has checked the server name, the certificate and the fingerprints, it stops reading that connection, and so does the kernel's queue. Connections past their first megabyte are let go the same way. This saves most of the IPS's processor time on a busy line. Choose Keep reading the whole connection only if you need the old behaviour.
- Check traffic decrypted by TLS inspection (on by default, from 1.7.4): while TLS inspection is on, a copy of every request and response it decrypts goes to a second, detection-only engine. A matching signature raises an alert; the traffic itself has already passed, so these alerts never block. Their alerts keep the signature, the addresses and the site's name, never the request's text, address path or packets, which can hold passwords and cookies.

- Rules › Emerging Threats Open: turn it on. It downloads the ruleset and updates it daily. The last good ruleset is kept on the firewall and loaded first at every start, so the IPS never runs without it while the internet or DNS is still coming up. If a download fails, the ruleset panel says Using stored rules from (date), update retrying at (time) and the IPS tries again by itself after 30 seconds, then 1, 2, 5, 10 and 30 minutes, then hourly. The categories start at good defaults:
- Drop: malware, exploits, botnet command servers, phishing and known attackers.
- Off: noisy categories, such as games and chat.
- Alert: everything else.
- Engine › Scope: choose what is inspected (next section).
- Press Commit.
Only connections started from the internet (from 1.1.105)
On a home network you usually want bad clients coming in blocked, and nothing your own devices do blocked. Under Engine › Scope, press Only connections started from the internet. The scope becomes your internet zone (WAN), with Only connections started there ticked.

- Inspected: connections someone on the internet opens to you, such as a port forward to a server, in both directions, so Suricata sees the whole conversation and can drop an attack.
- Never inspected or blocked: connections your own devices open, and the data that comes back on them, for example a download.
- Any zone: Only connections started there works on any scope row with a From zone.
Your devices are still protected in other ways: DNS filtering, threat intelligence and the web filter apply to what they fetch.
Before 1.1.105, a scope from WAN also sent the replies to your own devices' connections to the engine. Suricata rarely dropped them, because it ignores a TCP conversation whose start it didn't see, but it did inspect them.
Game connections: watched, never blocked (from 1.1.106)
Players who connect in through Game mode's ports (Network › Traffic shaping & apps › Gaming & apps) are game connections. Under Engine › Scope, Game connections chooses what happens to them:
- Watch, never block (recommended, the default): a second engine that only alerts sees them. Attacks are listed on Security › Live attacks as Watched (game). Nothing in a game is held up by drop rules or blocked by address.
- Drop addresses with a bad reputation on game ports too (from 1.3.0, on by default): addresses on the CINS, Spamhaus DROP and DShield lists, and known compromised hosts, are dropped even on game ports, and listed as Dropped. These rules match only the sender's address, never the game's own traffic, and players are almost never on those lists. Untick it if a friend can't join a game you host.
- Inspect and block like everything else: drop rules can drop game traffic, and attackers found in it can be blocked by address.
- Don't inspect: game connections aren't inspected at all.


Never block a device or a server
A Suricata pass rule wins over every drop. Add one under Custom rules, for example:
- A work PC, both ways:
pass ip 192.168.1.30 any <> any any (msg:"Work PC is never blocked"; sid:1000101; rev:1;) - A server behind a port forward:
pass ip any any -> 192.168.1.11 any (msg:"Server never blocked"; sid:1000102; rev:1;)
A passed device is not inspected at all, so attacks on it are not dropped or listed either. Keep pass rules for what must never be blocked.
See what it does
- Security › Live attacks: every attack, with what it tried and which vulnerabilities it aimed at.
- Monitoring › Traffic log, Alerts only: each alert and block as it happens.
- The Alerts tab on this page: the newest alerts, with the signature.
Alert logs and their size (from 1.4.2)
Suricata keeps its alerts in log files on the firewall's data partition, so updates keep them. At the bottom of the Alerts tab, Alert logs shows how large each log is now. A log that grows past Size limit per log starts afresh, and the older part is kept once, so each log takes at most twice the limit. The default is 64 MiB; choose 8 to 4096 MiB, then Save to pending changes and commit. A busy network with a long history to keep wants a larger limit; a small appliance a smaller one. The firewall checks the size every ten minutes, and Suricata keeps running while a log starts afresh.

A packet capture with each alert (from 1.5.4)
Every connection a signature alerts on is saved as a packet capture (a .pcap file for Wireshark or tcpdump): a few packets from before the alert, as far as Suricata still has them, and the packets after it, up to a limit. Only alerted connections are recorded, never the rest of your traffic.
Download one. On Security › Live attacks, open an attack and press Download capture (.pcap); the button shows how many packets and how large it is. On this page's Alerts tab, the download button is at the end of the alert's line. Only administrators can download captures, and every download is recorded in the audit log (Monitoring › Logs & audit › Audit log, action ips.capture.download). Delete this attack in the attack's detail deletes its capture too; attacks are kept 30 days, and their captures go with them.
Set the limits. At the bottom of the Alerts tab, Packet captures:
| Setting | Default | Example | What it does |
|---|---|---|---|
| Save a capture with each alert | on | on | Off saves no captures. |
| Size limit (MB) | 500 | 1000 | All captures on the firewall together. Never more than 10 % of the free space on the data partition, whatever you enter. The oldest go first. |
| Keep on the firewall (days) | 7 | 14 | Older captures are deleted. |
| Packets after the alert | 200 | 500 | The capture ends here, when the connection is quiet for 2 minutes, or 15 minutes after the alert. |
| Packets before the alert | 20 | 20 | From the connection's start, as far as Suricata still holds it (TCP). |
| Headers only | off | on | Keeps addresses, ports and flags, never what the packets carried. |
| By alert category | default | Potential Corporate Privacy Violation: No capture | Per category: full packets, headers only, or no capture. |
| Object store | none | archive | Finished captures are encrypted, uploaded, checked on the store, then removed from the firewall. |
| Keep on the object store (days) | 30 | 90 | Older uploaded captures are deleted from the store. |
Then Save to pending changes and commit.
The drive never fills. When less than 15 % or 2 GB is free on the data partition, no new capture is saved and the panel says Captures paused; they start again by themselves when space is free. The line under the settings shows how many captures there are, how much they take, and how much they may take now.
Upload to S3. Choose an object store (or an S3 bucket set up under System › Storage & power › Network storage) in Object store. If the store does not answer, the captures stay on the firewall within the size limit and the panel shows the error and the next try. A capture on the store downloads through the firewall with the same button.


Connections your own firewall rules block, such as a TV during a night block, are not attacks. The dashboard counts them as Blocked by your rules.