Integrating OPNsense with Security Onion

OPNsense can send firewall logs and NetFlow to Security Onion and can pull NIDS rules from its manager, but these are three different jobs with different limits. This page explains how to choose and build each one.

On this page

How OPNsense connects to Security Onion, and which method fits

A security team running OPNsense at the network edge usually wants two things from Security Onion: the firewall's own record of what it allowed and blocked, and a view of the traffic crossing it. OPNsense supports three ways to get there, and they answer different questions. Remote firewall logging sends OPNsense's log events to Security Onion so analysts can search firewall decisions alongside other data. NetFlow v5 or v9 export sends flow records that describe who talked to whom, when, and how much, without packet content. Pulling Suricata rules from the Security Onion manager lets OPNsense's own Suricata run with rules maintained in Security Onion. Choose the first two for visibility into the edge, and treat the third as a stopgap, since it is a makeshift sensor and not a replacement for a dedicated Security Onion sensor on a mirrored or tapped segment.

The rule-pull method has concrete limits that should drive the decision. According to the Security Onion OPNsense documentation, OPNsense's Suricata retrieves NIDS rules from the manager on port 7789 every 15 minutes, and OPNsense can only enable and disable those rules. It ignores the threshold and tuning settings that the Security Onion Console manages, so tuning done in Security Onion will not reach the firewall. Its alerts also stay on OPNsense unless you forward them, which means Security Onion sees them only through the connection you build. Confirm the port and the polling behavior against the current OPNsense page before you open any firewall path, because both are set by the documented setup, not by your network.

Before you start, decide which method your team will operate, then confirm three things: the OPNsense version and its logging and NetFlow options in your build, the Security Onion release and deployment type, and which firewall rules the manager and sensors need to accept traffic from OPNsense. A reasonable first step is to enable remote logging or NetFlow in a test setting and check that events arrive in Security Onion before you add rule pulls. The Security Onion OPNsense documentation is the next read for the exact settings, and the Security Onion use cases page describes the manager-with-firewall pattern that applies when no TAP or SPAN is available.

Choosing between firewall logs, NetFlow and OPNsense Suricata

Remote firewall logging sends OPNsense's log events to Security Onion so that connection and rule decisions are searchable alongside network data. It is the option to start with when you want to know which hosts were allowed or blocked, and when, across the segments the firewall protects. Because the firewall is the enforcement point, these events show policy outcomes that a passive sensor may not see directly.

  • Data that arrives: Firewall log events from OPNsense, sent to Security Onion as syslog for parsing and indexing.
  • What analysts can investigate: Blocked and allowed connections by source, destination and port, and changes in denied traffic over time.
  • Limits: Log events describe decisions, not packet content, so payload-level questions need Suricata alerts or full packet capture.
  • Setup dependency: Confirm the syslog port, the parser for your OPNsense log format and the host and port groups that must be opened on the Security Onion side.
  • Storage impact: Firewall logs can be high volume on busy networks, so confirm expected event rates with your environment before sizing.

Before you commit, confirm which OPNsense log categories you will forward and whether the receiving parser in your Security Onion version covers them.

What you need before connecting OPNsense to Security Onion

Three integration paths share the same groundwork: a working Security Onion grid to receive data, admin access to OPNsense, and a network path that carries logs, flows or rule updates between the two. Confirm each item below before you choose a path, because the answers decide which settings you can use.

Security Onion grid roles

Map the grid the integration lands on before you touch OPNsense. A distributed design has a manager node, one or more sensor nodes and one or more search nodes. The hardware docs list minimums of 4 cores and 16 GB RAM for a manager or search node, and 4 cores, 12 GB RAM and 2 NICs for a sensor. Security Onion runs only on x86-64 processors, and version 3.x supports only Oracle Linux 9. Confirm which node receives OPNsense data, because firewall logs and NetFlow land in the search path, not on a sensor.

Hardware docs

Security Onion version and lifecycle

Record the exact Security Onion release running on your grid and its support status before you plan changes. Security Onion 2.4 reached end of life on October 1, 2026, and 2.3 reached end of life on April 6, 2024. If you run 2.4 on Oracle Linux 9, the upgrade to 3.x replaces Stenographer with Suricata for full packet capture, so plan that change alongside the OPNsense work rather than after it.

End-of-life schedule

OPNsense administrator access

Confirm who holds administrative rights on the OPNsense firewall and whether changes need a change window. Logging, NetFlow export and Suricata rule sync all change firewall configuration, and a mistake can interrupt traffic. Make sure the person making the change can reach the web interface, has a console or out-of-band recovery path, and has a current configuration backup before starting.

Network path and listening ports

List every flow between OPNsense and the Security Onion nodes that will receive data, then confirm each one through your firewall host groups. The NetFlow, firewall log and rule update paths use different ports, and the rule update path runs from OPNsense to the manager on port 7789. Confirm that no intermediate device inspects or rewrites these streams, and that the manager remains reachable from OPNsense while your change window is open.

OPNsense version and Suricata settings

Confirm the OPNsense release you run and its Suricata, logging and NetFlow options against the vendor documentation and that release's notes. Menu names and defaults change between releases, so do not assume a setting exists or behaves the same way. Note the Suricata rule source, the interfaces it inspects and whether it is enabled, because the manager-sync path can only enable and disable rules that Security Onion already provides.

OPNsense integration docs

Configuring the three OPNsense paths in sequence

This sequence connects OPNsense to Security Onion in three layers: firewall logs first, then NetFlow, then Suricata rule sync, with a check at each step so you know the data and rules arrive before you move on.

  1. Confirm the Security Onion listener and firewall groups

    Before touching OPNsense, confirm which Security Onion node will receive firewall logs and NetFlow, and that the Fleet policy for the firewall log integration and the NetFlow Records integration is bound to an address OPNsense can reach. Confirm that the host and port groups allow traffic from the OPNsense management or segment address to the listener ports on the receiving node. The step is complete when you have written down the receiving IP address, the listener ports for logs and flows, and the firewall rules that permit them. Confirm exact port numbers and group names with the Security Onion OPNsense documentation and the Console before you rely on them.

  2. Configure remote logging from OPNsense

    A firewall administrator enables remote syslog in OPNsense and points it at the Security Onion receiver address and the port confirmed in the previous step. Select the log categories that matter for your investigations, such as firewall and filter events, and keep the transport protocol consistent with the listener you configured. Follow the OPNsense docs page for the exact menu paths, since menu labels change between OPNsense releases. The step is done when OPNsense shows the remote target as active and the firewall generates test traffic that you can match in the next step.

  3. Verify firewall events in the Console

    In the Security Onion Console, run a short search over a recent time window filtered to the OPNsense source address or host field, and confirm that firewall events from the test traffic appear. Check that timestamps are correct and that the source and destination fields parse, since unparsed events mean the integration or ingest path needs attention. Note whether the events land in the expected data view. The step is complete when at least one event from the test traffic is visible, with parsed fields, in the Console.

  4. Configure NetFlow export from OPNsense

    The firewall administrator enables flow export in OPNsense, selects NetFlow version 5 or version 9 to match the NetFlow Records integration you have deployed, and sets the collector to the Security Onion receiver and flow port. Choose the interfaces whose traffic you want to record and set the active and inactive timers according to the OPNsense docs. Confirm that the chosen NetFlow version is supported by the integration on your Security Onion release before you enable export. The step is done when OPNsense shows the exporter as active on the selected interfaces.

  5. Verify flow records in the Console

    Generate traffic across the monitored interfaces, then search the NetFlow data in the Console and the NetFlow dashboard for records whose source and destination addresses match the traffic you created. Check that byte and packet counts are populated and that the exporter address matches OPNsense. If records are missing, compare the export version and collector port on both sides before changing anything else. The step is complete when flow records from the test traffic appear with the expected exporter and address fields.

  6. Enable Suricata and point it at the manager

    On OPNsense, configure the Suricata intrusion detection service to download and manage rules from the Security Onion manager on port 7789, following the OPNsense docs for the rule source settings. Set the update schedule, which the Security Onion documentation describes as every 15 minutes for OPNsense rule pulls. Remember that OPNsense can only enable and disable the imported rules and ignores thresholds, so any tuning must happen in the Security Onion Console. The step is done when the rule download completes without errors and the rule set appears in OPNsense.

  7. Verify rule status and sensor alerts

    Check the rule list in OPNsense and confirm that the imported rule categories show the enable state you intended, with no rules left in an unexpected state. Run a benign test that matches an enabled signature, if your change process permits it, and confirm that the resulting alert reaches Security Onion. Record the rule source, update time and enabled categories in your runbook so that a later rule mismatch can be traced. The step is complete when the rule status matches your plan and at least one expected alert appears in the Console.

How firewall logs, flows and alerts map into Security Onion

Each of the three OPNsense data types lands in Security Onion through a different path, and that split determines what an analyst can pivot on. Firewall log events arrive as syslog from OPNsense and are handled by the Security Onion ingest path, where a Fleet integration parses them into structured fields. NetFlow records from OPNsense arrive through the NetFlow integration and describe conversations between addresses and ports without payload, which makes them useful for segments that have no sensor. Suricata alerts that OPNsense produces on its own are not the same as the NIDS alerts from a Security Onion sensor, so treat them as a separate source when you scope a hunt.

The fields that matter most for pivoting are the ones that appear across all three sources: source and destination IP addresses, destination port, protocol, and timestamp. Use those to move from a firewall block event to the matching flow record and then to any alert on the same address pair during the same window. Interface or direction fields from the firewall log help you separate inbound from outbound traffic, but their exact names and values depend on the parser version in use. Confirm field names in the current Security Onion integration documentation and in a test event from your own OPNsense before you build dashboards or saved queries on them.

Parsing and naming are the parts most likely to change between Security Onion releases and integration versions, so do not copy field names from older guides or from another deployment. Before go-live, send one known test connection through the firewall, then check that the log, the flow and any alert all show the same addresses and ports in the Security Onion Console. If a field is missing or named differently, adjust the integration version or a custom ingest pipeline and record the change in your build notes. Ask the implementation partner to document the field map as part of the delivery.

Data sources, transport and analyst use

This table maps each OPNsense output to the Security Onion component that receives it, the transport it uses, what analysts do with it, and the limit to confirm before rollout. Read it as a checklist: each row is a separate feed with its own setup and its own gaps. The main takeaway is that OPNsense's Suricata rule pulls only enable or disable rules, so tuning stays on the Security Onion side.

Data sourceSecurity Onion receiver and transportAnalyst use and limit to confirm
Firewall logsRemote logging from OPNsense to the Security Onion log receiver over syslog; confirm the port and parser with the current Security Onion OPNsense guideCorrelate allow and block decisions with Zeek and Suricata events; confirm which fields are parsed and whether custom ingest handling is needed
NetFlow v5 exportNetFlow export from OPNsense to the NetFlow receiver; confirm the destination port and the Fleet integration in useReview flow volume and conversations for segments without a sensor; flow records carry no payload, so use them for pattern and timeline work
NetFlow v9 exportNetFlow v9 export to the same receiver type as v5; confirm template handling and any version-specific settings with the vendor docsConfirm the receiver accepts v9 templates before relying on it; check that field coverage matches what your hunts need
Suricata alertsSuricata running on OPNsense sends its alerts to Security Onion for review; confirm the forwarding method in your OPNsense versionTriage alerts in the Security Onion Console; OPNsense's own alert view is not the analyst workflow for this integration
NIDS rule pullsOPNsense's Suricata pulls rules from the Security Onion manager on port 7789 every 15 minutesOPNsense can only enable and disable pulled rules and ignores thresholds, so suppressions and threshold tuning must be made in Security Onion
Sensor roleOPNsense Suricata acts as a makeshift sensor for ManagerSearch deployments without a TAP or SPANFull packet capture and Zeek coverage depend on the design; confirm with your architecture whether OPNsense traffic is the only visibility source

Securing the OPNsense to Security Onion path

The OPNsense feed adds three channels between the firewall and Security Onion: firewall logs, NetFlow, and the Suricata rule pull from the manager. Each one widens what can reach the grid and what the firewall can reach, so the controls below should be set before the feed goes live. Review them together, because a gap in one channel often undermines the others.

Restrict senders with firewall host groups

Security Onion's firewall host groups control which addresses may reach the ports that receive logs and flows. Limit the log and NetFlow ports to the OPNsense management address or addresses only, not to whole subnets. Confirm the group membership after each address change, since a new firewall interface or a NAT rewrite can change the source address the grid sees. Test with a single allowed host first, then check that unrelated hosts are still refused.

OPNsense docs

Limit admin access to OPNsense

OPNsense holds the credentials and configuration that control the log and NetFlow exports and the Suricata settings. Restrict the web interface and SSH to a management VLAN, require strong authentication for administrators, and keep the list of accounts short. Changes to the Security Onion targets, such as a new log destination, should go through your normal change review, because a silent redirect of logs is hard to spot later.

Protect the rule pull to the manager

OPNsense's Suricata pulls NIDS rules from the Security Onion manager on port 7789 every 15 minutes. Allow that port only from the OPNsense firewall to the manager, and verify the manager's access rules after any change to the manager's host groups. Confirm that the pull is authenticated and that the rule source is the manager you intend, because a rule set from an unintended host would change what the sensor alerts on.

Know what OPNsense can change

OPNsense can only enable and disable the pulled rules and ignores thresholds, so tuning stays in the Security Onion Console. Document that split for your team so that analysts do not expect firewall-side tuning to persist or to match Console suppressions. Ask the Security Onion team which rule sets are pushed and confirm that no local firewall edits will be overwritten on the next pull.

Rule pull interval
15 minutes

Review what leaves the network

Firewall logs and NetFlow contain internal addresses, user names, and destination details that can be sensitive. Decide which fields are sent, whether logs cross any WAN or cloud link on the way to the grid, and how long copies are kept at each stage. Check the Security Onion outbound connection settings separately, since the grid's own telemetry and update traffic are a different path from the OPNsense feed.

Scope Pro features to the Console

Pro features such as OIDC single sign-on apply to access to the Security Onion Console, not to the OPNsense feed itself. The log, NetFlow, and rule pull paths still depend on host groups, port rules, and the OPNsense configuration. Do not treat a Console login control as protection for the feed, and record which controls cover which path in your review.

Security Onion Pro

Why OPNsense events or rules stop arriving

This table lists the failures most often seen when OPNsense logs, NetFlow or Suricata rule pulls stop reaching Security Onion. Each row gives the likely cause, the check to run and the fix. Confirm the manager is healthy in a distributed grid, then work along the path from OPNsense to the receiving integration.

SymptomLikely cause and checkFix
No firewall logs in Security OnionPort not opened on the Security Onion side. Check the host and port groups for the log input and confirm the port matches the OPNsense remote logging target.Open the listening port in the host and port groups, then send a test event from OPNsense and confirm it appears.
Logs sent to the wrong listener addressThe receiver listens on an address OPNsense does not send to. Compare the bind address in the integration with the destination set in OPNsense.Set the bind address to the interface that receives OPNsense traffic, then resend a test event.
NetFlow missing or unreadableVersion mismatch. OPNsense exports NetFlow v5 or v9, and the receiving integration must accept the version sent. Check the export version in OPNsense.Set OPNsense and the receiving integration to the same version, either v5 or v9, then confirm flows appear.
Logs arrive but are unparsedThe format is not handled by the integration in use. Open raw events in Security Onion and check whether expected fields are populated.Use the integration built for the format, or add a custom ingest pipeline for a format it does not parse.
Suricata rule pulls failOPNsense cannot reach the manager on port 7789. Check connectivity from OPNsense to the manager on that port, and note that rules refresh every 15 minutes.Allow OPNsense to reach the manager on port 7789, then wait one 15-minute cycle and confirm the rules updated in OPNsense.
Threshold tuning does not take effect in OPNsenseOPNsense ignores thresholds from Security Onion and can only enable or disable pulled rules. Thresholds set in OPNsense are not carried back.Make modify, suppress and threshold changes in the Security Onion Console Detections interface, and use OPNsense only to enable or disable rules.
Events stop across a distributed gridIf the manager is down, search nodes stop indexing because they cannot reach Redis. Check manager health before troubleshooting OPNsense.Restore the manager first, then confirm search nodes resume indexing and that the backlog from OPNsense is being processed.

Questions buyers ask before connecting OPNsense to Security Onion

Can our in-house team connect OPNsense to Security Onion without outside help?

Yes, a team with working knowledge of both platforms can usually do the basic connections alone, because the three methods (remote firewall logging, NetFlow export and OPNsense Suricata rule pulls) are configured in the OPNsense interface and the Security Onion Console. The harder part is deciding which method fits each network segment, sizing the receiving node, and testing that events arrive with the right fields. Teams with no Security Onion operations experience often ask a partner to design the grid layout and review the result, then run the day-to-day work themselves. Confirm your team's skills against the OPNsense and Security Onion docs before deciding.

How much effort does an OPNsense integration take, and what drives it?

Effort is driven mainly by the number of firewalls, the volume of logs and flows they generate, the sensor design, and the change control process your organization requires. A single firewall sending logs to an existing manager is a small job. Several firewalls across segments, each needing a different method, plus rule tuning and dashboard checks, takes more time. Change control adds time for approvals and test windows. Ask any provider for a written scope that lists each firewall, each method, the receiving node, and the test steps before you compare quotes.

Do we need NetFlow, firewall logs, or both from OPNsense?

It depends on what questions you need the data to answer. Firewall logs record allowed and blocked connections with rule context, which suits investigations of policy decisions. NetFlow records summarize traffic flows between hosts and ports, which suits volume and pattern analysis on segments without a sensor. Security Onion's use cases documentation describes an OPNsense firewall paired with ManagerSearch when no TAP or SPAN is available, collecting firewall logs, NetFlow and Suricata alerts. Many teams start with firewall logs and add NetFlow once they know which segments lack visibility.

Does OPNsense's Suricata replace a Security Onion sensor?

No. OPNsense's Suricata can pull NIDS rules from the Security Onion manager on port 7789 every 15 minutes, but OPNsense can only enable and disable those rules and ignores thresholds. It does not give you Zeek logs, Security Onion's full detection workflow, or the analyst tooling that a dedicated sensor provides. Treat it as a makeshift sensor for limited coverage. If a segment needs full network monitoring, plan a proper sensor for it, and confirm the rule and threshold behavior against the Security Onion OPNsense docs for your version.

What access and network changes does the work require from us?

You will need administrator access to the OPNsense instance, access to the Security Onion Console with rights to view and manage detections, and an owner for the Security Onion grid who can approve changes. On the network side, the work typically requires opening the ports used by the chosen method on the firewall and host groups, such as the UDP syslog and NetFlow listeners and the Suricata rule pull to the manager on port 7789. Ask for a list of every rule change, the source and destination addresses, and the rollback steps before work begins.

What test windows and checks should we plan before going live?

Plan a window per firewall and per method, and run it against a non-production or low-risk segment first where possible. Checks should confirm that logs or flows arrive at the expected node, that timestamps and source addresses parse correctly, that the OPNsense Suricata rule pull completes on its 15-minute schedule, and that alerts appear in the Security Onion Console. Include a rollback plan for each change, because a misconfigured firewall log destination or flow export can affect firewall performance and visibility. Confirm the approval steps and freeze periods with your change board.

Can a partner handle the whole integration, and what does the engagement cover?

DeployOpen plans, implements, integrates, documents and supports self-hosted open-source platforms in infrastructure you control, and most engagements are fixed-scope with deliverables and timelines agreed in writing before work starts. For this integration, that can cover the design of the sensor and receiving layout, configuration of the chosen methods, verification and documentation, plus an optional retainer for ongoing support. DeployOpen does not publish a price list, so a quote follows from the written scope.

What should we ask for in a written quote for this work?

Ask for the list of firewalls and segments in scope, the methods chosen for each, the Security Onion node roles involved, the verification steps, the documentation delivered, and what happens if a change fails. Confirm which costs are one-time (design, configuration, testing) and which recur (support, upgrades, retainers). Also confirm the Security Onion version you will run, since the 3.x line supports only Oracle Linux 9 and 2.4 reached end of life on October 1, 2026.

How DeployOpen scopes and delivers this integration

DeployOpen plans, builds, tests and documents the OPNsense connection inside your own infrastructure, so your security team can review every log source, export and rule feed before it reaches production. Each engagement starts with a written scope that states which of the three connection methods you need and which Security Onion deployment it feeds.

How we scope

  • Confirm which OPNsense connection methods you need: firewall logging, NetFlow export, or Suricata rule sync.
  • Confirm the Security Onion deployment type, node roles and the firewall rules that must allow the traffic.
  • Agree deliverables, timelines and acceptance tests in writing before work starts, as most engagements are fixed-scope.

How we build

  • Configure remote logging, NetFlow export and the Suricata rule source in OPNsense on your existing firewall pair.
  • Open only the ports and host groups the design requires, and document each one for your change review.
  • Verify that firewall events, flow records and rule updates arrive in Security Onion and show up in the Console.

How we hand over

  • Deliver configuration records, port and firewall change lists, and a verification report with test evidence.
  • Document known limits, such as which OPNsense Suricata settings the Security Onion rule feed can and cannot control.
  • Walk your operations and security teams through the setup and the steps to troubleshoot a silent source.

How we support

  • Retest the integration after OPNsense or Security Onion upgrades, including changes to rule sync behavior.
  • Offer ongoing support, upgrades and continuous testing as a retainer if your team wants external cover.
  • Ask us for a quote that itemizes scoping, build, testing, documentation and any retainer, based on the written scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.