> ## Content Index
> Fetch the complete content index at: https://corelab.tech/llms.txt
> Use this file to discover other available public pages before exploring further.

# OPNsense IDS/IPS in 26.4+: Suricata, Inline vs Divert Mode
- URL: https://corelab.tech/opnsense-ids-ips-suricata-inline-vs-divert-mode/
- Published: 2026-03-24T16:48:18.000Z
- Updated: 2026-11-01T16:35:08.000Z
- Description: Learn how to configure Suricata IDS/IPS in OPNsense 26.4+. Compare Inline vs Divert mode, optimize performance, and secure your self-hosted services.
- Author: Core Lab Joe
- Tags: opnsense, Cybersecurity, #2026, #table-of-content

If you’re running OPNsense and self-hosting anything publicly, your network is already being scanned, probed, and tested - constantly. Like actually, no joke.

A tuned firewall (plus WAF), smart DNS routing, and a hardened [reverse proxy stack (SWAG](https://corelab.tech/swag-reverse-proxy-guide/) \+ [CrowdSec + fail2ban](https://corelab.tech/crowdsec-fail2ban-swag-hardening/)) already stop the **majority of real-world threats**. So where does Suricata actually fit in?

Here’s the honest answer:  
Without HTTPS decryption, Suricata won’t see everything - and in many setups, it overlaps with protections you already have.

> But that doesn’t make it useless.

In OPNsense 26.4+, Suricata has evolved significantly. The introduction of **Inline vs Divert mode** changes how traffic is inspected, how decisions are made, and how much control you actually have at the edge.

Configured properly, it becomes a powerful **visibility and enforcement layer -** especially for high-speed connections where blind spots matter.

Configured poorly, it becomes noise… or worse, a bottleneck. This guide cuts through that.

You’ll learn:

- When IDS/IPS actually adds value (and when it doesn’t)
- The real difference between Inline and Divert mode
- How to deploy Suricata without breaking your network
- How to tune it for performance on 1Gbps+ links

Let’s build it properly.

Learning Path • Firewall & Defensive Architecture 

### Mastering OPNsense Firewall Architecture 

Deploy enterprise-grade routing on bare metal, construct resilient alias hierarchies, enforce Layer 7 threat defence, and automate encrypted off-site disaster recovery. 

Lesson 4 of 7 57% Complete 

Difficulty Curve Advanced 

Beginner Advanced 

[ ✓ Lesson 01 · Planning & Hardware Completed The Ultimate OPNsense Architecture & Hardware Setup Guide → ](https://corelab.tech/opnsensept1/) [ ✓ Lesson 02 · Firewall Rules & NAT Completed Firewall Rules, NAT Configuration, and Traffic Flows → ](https://corelab.tech/opnsensept2/) [ ✓ Lesson 03 · Threat Defence & GeoIP Completed Advanced Threat Protection, CrowdSec & GeoIP Blocking → ](https://corelab.tech/opnsensept3/) 

04 

Lesson 04 · Deep Packet Inspection Current Lesson 

Suricata IDS/IPS in 26.4+: Inline vs Divert Mode Architecture 

[ 05 Lesson 05 · Remote Access VPN OPNsense WireGuard Road Warrior & Remote Access Guide → ](https://corelab.tech/opnsense-wireguard-guide/) [ 06 Lesson 06 · Multi-Gigabit WAN UGREEN USB 3.0 to 2.5GbE Adapter as OPNsense WAN Interface → ](https://corelab.tech/ugreen-usb-2-5g-opnsense-wan/) [ 07 Lesson 07 · Disaster Recovery Capstone Automating OPNsense Backups: Hardened SFTP, Git Audits & REST API → ](https://corelab.tech/automating-opnsense-backups/) 

Tested in production on bare-metal hardware 

Core Lab Learning Track · Zero Tracking & Direct Implementation 

---

## **1\.** Disable Hardware Offloading (Critical First Step)

Suricata needs to inspect raw packets.

If your NIC is doing hardware offloading, Suricata won’t see the full picture.

### **Action**

Go to:  
**Interfaces → Settings**

Enable (check):

- Hardware CRC
- Hardware TSO
- Hardware LRO

### **Important Note**

In OPNsense, **checking these boxes *disables* offloading**.

This forces packet processing into the CPU, where Suricata can actually inspect traffic. It should go without saying, there is a performance impact when enabling IDS/IPS!

![](https://corelab.tech/content/images/2026/03/OPNsense-interface-settings.webp)

---

## **2\.** Inline vs Divert Mode in OPNsense (Key Differences)

This is the biggest conceptual change in newer OPNsense versions.

Suricata can now process traffic in different ways depending on your setup.

### **Inline IPS Mode (Netmap) - Maximum Control**

This is the traditional “true IPS” mode.

- Traffic passes **through Suricata before hitting the firewall stack**
- Packets can be dropped **in real time**
- Uses **Netmap** for high-performance packet processing

#### **Pros**

- Fast, deterministic blocking
- Minimal latency when tuned properly
- Ideal for high-speed WAN (like 1.5Gbps)

#### **Cons**

- Requires compatible NICs/drivers
- Less forgiving if misconfigured
- Can break things if rules are too aggressive

---

### **Divert Mode - Flexible and Safer**

Divert mode is newer and more forgiving.

- Traffic is **copied (diverted) to Suricata for inspection**
- The firewall can still make final decisions
- Works better in complex routing/NAT scenarios

#### **Pros**

- More compatible across hardware
- Safer for complex environments
- Easier to troubleshoot

#### **Cons**

- Slightly higher overhead
- Not as “pure inline” as Netmap
- Detection-first mindset is more important

---

### **Which Should You Use?**

Be honest about your setup:

- **High-speed WAN (1Gbps+) + modern Intel NICs → Use Inline (Netmap)**
- **Complex VLANs, NAT, or compatibility concerns → Use Divert Mode**
- **Not sure? → Start with Divert, then graduate to Inline**

👉 My recommendation for most Homelab / Self-Hosted builds:  
Start in **Detect mode with Divert**, then move to **Inline IPS once stable**.

---

## **3\.** How to Configure Suricata in OPNsense (Step-by-Step)

Navigate to:  
**Services → Intrusion Detection → Administration**

### **General Settings**

- **Enabled**: ✔
- **IPS Mode**: ❌ (for first 24 - 48 hours - run detection first)
  - Chose PCAP live mode (IDS) for inspection only for now.
- **Promiscuous Mode**: ✔
- **Interfaces**: WAN (start here, expand later)
  - If using Zenarmor, you have to pick separate interfaces. My Zen is watching LAN, Suricata here is watching WAN.
- **Pattern Matcher**: Hyperscan

👉 Hyperscan is critical for performance on modern CPUs. Don’t skip this.

![](https://corelab.tech/content/images/2026/03/OPNsense-IDS-Admin.webp)

### **Traffic Flow (Conceptual)**

Internet → Suricata → Firewall → Reverse Proxy → Internal Services

In Inline mode, Suricata sits *in front*.  
In Divert mode, it observes and influences decisions.

## **4\.** Best Suricata Rulesets for Self-Hosting

A security engine is only as good as its rules.

Go to:  
**Services → Intrusion Detection → Download**

### **Enable (By selecting):**

- **ET Open feeds (Emerging Threats)**
- **Abuse.ch feeds**

Click:  
**Download & Update**

### **Self-Hoster Focus**

Search and enable:

- `emerging-web_server`
- `emerging-exploit`
- `emerging-sql`

Continue to enable what you think is relevant. It's worth doing a little research and reading up on any you're curious about.

> I have **11** rulesets enabled presently.

You’re not protecting “Plex/Jellyfin” directly - you’re protecting:  
👉 Your **reverse proxy and exposed services**

![](https://corelab.tech/content/images/2026/03/IDS-Rulesets.webp)

## **5\.** Automating Threat Blocking with Policies

Manually managing thousands of rules is ***not*** realistic.

**Services → Intrusion Detection → User Defined**

### **Create a Policy**

- **Rulesets**: All ET Open
- **Action**: Drop
- **Priority**: High

### **What This Does**

Any high-confidence threat rule:  
👉 Automatically gets enforced as **Drop**

No babysitting required.

😮

There is a LOT more granularity & advanced rulesets that can be run but this is very highly dependent on which interface(s) you're monitoring and your network topology. It's beyond this guide to delve into these and this is just your baseline.

## **6\. The “Detect First, Then Drop” Strategy**

This is where most people mess up.

If you enable IPS immediately:  
👉 You *will* break things.

### **Proper Approach**

**Phase 1 (24–48 hours):**

- IDS only (no blocking)
- Monitor alerts

**Phase 2:**

- Enable IPS (Inline or Divert)
- Apply policies gradually

## 7\. False Positives and the “Plex Problem”

High-throughput apps like [Plex/Jellyfin](https://corelab.tech/plexoptimization/) can trigger alerts like:

- Excessive retransmissions
- Suspicious traffic patterns

### **What to Do**

Go to:  
**Services → Intrusion Detection → Alerts**

If you see:

- Your own IP flagged
- Streaming-related alerts

👉 Don’t panic.

### **Suppress the Noise**

Click the **\+ (Suppress)** icon on the alert.

This tells Suricata:

> “This is expected behavior. Ignore it.”

---

## **8\.** Suricata Performance Tuning for 1Gbps+ Networks

Running IDS/IPS at multi-gig speeds is not “free”.

### **To Keep Performance High:**

- Use **Hyperscan**
- Limit inspection to **WAN (initially)**
- Avoid enabling every rule category blindly
- Monitor CPU usage under load

### **Inline vs Divert Performance Note**

- **Inline (Netmap)** → lower latency, more efficient at scale
- **Divert Mode** → slightly more overhead, but more flexible

If you notice drops or instability:

- Switch modes before blaming Suricata entirely

Speaking of performance, check out my guide to [fix bufferbloat and optimize your WAN performance](https://corelab.tech/opnsense-advanced-networking-guide/).

[Advanced OPNsense Networking Guide: Cloudflare Bypass, NTP Redirect & SQMLearn advanced OPNsense routing techniques including Cloudflare proxy bypass, DNS/NTP interception, and SQM bufferbloat fixes for high-performance homelab networks.![](https://corelab.tech/content/images/icon/Glowing_CPU-211.png)Core LabCore Lab Joe![](https://corelab.tech/content/images/thumbnail/OPNsense-Advanced-1.png)](https://corelab.tech/opnsense-advanced-networking-guide/)

---

## **9\. Summary Checklist**

- Hardware offloading disabled
- Hyperscan enabled
- ET Open rules downloaded
- High-priority rules set to Drop via Policy
- Running IDS (Detect) before enabling IPS
- Monitoring alerts daily (first week)
- Choosing the correct mode (Inline vs Divert)

---

## **Conclusion**

With:

- Smart DNS routing
- Bufferbloat under control
- And Suricata actively inspecting traffic

You’ve moved beyond a basic firewall. You now have:

- A **layered, intelligent edge!**

Your services aren’t just exposed - they’re **defended with intent**. And most importantly -

> **You control** what gets in, what gets dropped, and why.

---

## ❓ Frequently Asked Questions (FAQ)

### Should I run Suricata in Inline mode or Divert mode on OPNsense?

Inline (Netmap) mode gives maximum control and can actively drop malicious packets in real time, but carries more risk of taking down legitimate traffic on a misconfigured rule. Divert mode is the more flexible, safer default for most self-hosters, since it inspects a copy of traffic without sitting directly in the critical path the same way.

### Why do I need to disable hardware offloading before running Suricata?

Hardware offloading lets the NIC handle packet processing below the OS, which means Suricata never actually sees the full traffic it's supposed to be inspecting. Disabling it is the critical first step, before any Suricata configuration matters at all.

### What is the “Plex Problem” with Suricata false positives?

Legitimate high-bandwidth, unusual-looking traffic, like a local Plex stream, can trip IDS/IPS rules that were written to catch actual malicious patterns, generating noisy false positives. The fix is targeted rule suppression for known-safe traffic patterns rather than disabling detection broadly.

### Can Suricata handle a 1Gbps+ home network without killing performance?

Yes, with the performance tuning steps covered in this guide, but it takes deliberate tuning, not a default install. Inline vs Divert mode choice also has its own performance tradeoff worth understanding before committing to one on a high-throughput network.

### Should Suricata block traffic immediately, or just detect it first?

The “detect first, then drop” strategy is the recommended approach: run new rules in detection-only mode until you've confirmed they don't false-positive on your own normal traffic, then switch them to active blocking once you trust them.