CRITICAL INFRA
Loading critical CVEs…
ALL EXPLOITED
Loading…

OPNsense with Suricata IDS/IPS and CrowdSec — layered defense

📅 2026-09-10 · Cyber Immunity

A good firewall never relies on a single layer. OPNsense combines the stateful firewall (pf) with Suricata (signature-based IDS/IPS) and CrowdSec (collaborative reputation IPS). The result: you block both known exploits and hostile behavior, with clear telemetry. A practical, step-by-step guide.

Why OPNsense

Architecture: layered defense

Traffic passes through three complementary filters. Suricata inspects packets by signature (known threats). The pf firewall applies stateful rules and NAT. CrowdSec decides, based on behavior and collaborative reputation, who gets blocked before reaching your services.

Internet/ WAN SuricataIDS/IPS inline Firewall pfrules / NAT CrowdSecbouncer LAN semnaturi reputatie IP

Preparation

Step 1 — Suricata IDS/IPS

In OPNsense: Services → Intrusion Detection → Administration.

Critical for inline IPS: disable hardware offload on inspected interfaces, otherwise packets bypass netmap. Under Interfaces → Settings uncheck Hardware CRC / TSO / LRO. Check from the shell:

Step 2 — CrowdSec

Install the plugin: System → Firmware → Plugins → os-crowdsec. Components: engine (parses logs and decides) + firewall bouncer (enforces the block in pf via an alias/table).

The bouncer creates a table that pf consumes; bad-scoring IPs are rejected before they touch your published services.

How Suricata + CrowdSec complement each other

Testing and validation

Tuning and operations

When to choose this architecture

Ideal for SMB and remote sites that want enterprise protection without IPS licensing cost: a single OPNsense box delivers firewall, signature IDS/IPS and collaborative IPS, with clear telemetry and full control. We deploy it, tune it and monitor it for you.

Let's discuss your project →