Restricting access with Security Onion firewall host groups

Security Onion firewall host groups decide which addresses can reach the console and which devices can send data to the grid. This page explains how to plan, configure and verify them.

On this page

Restricting access with Security Onion firewall host groups: what it controls

Firewall host groups control which networks and devices can reach each Security Onion service and who can reach the console. A SOC team that needs to limit console access and stop arbitrary devices from sending logs or syslog into the grid should treat host groups as the first access control to design, before accounts, roles or MFA are layered on top. Host groups are named sets of addresses, such as analyst workstations, a syslog collector or a management subnet, that the grid's firewall refers to when it decides which sources may connect to a port. The grid's firewall rules are then built from those groups for each role, so a change to a group's membership changes access without rewriting every rule.

Per-role INPUT chains are where those groups take effect. Security Onion manages host-based firewall rules through its own tooling, and each node role gets its own set of accepted inbound sources and ports. Analyst access to the console, syslog ingest on a sensor or receiver and the manager's internal services are separate paths, so each needs its own group and its own allowed ports. Confirm on your version which groups exist by default, which ports each role opens and how custom host and port groups are added. Do not assume a default group already contains your analyst subnet or your syslog source, because that membership is a decision you should make and record.

Teams need this design before the grid goes to production, because adding a group after analysts and log sources are connected means changing live access under pressure. Before you start, list every population that needs inbound access (analysts, administrators, syslog senders, Elastic Agent endpoints, any load balancer or proxy in front of the console) and check whether each one is a stable address range. Then confirm with your version's documentation how so-firewall changes group membership, whether changes apply without a grid-wide restart and how to test a new source before removing an old rule. Those answers determine the change process your operations team will run.

Which host groups to define and why

Most Security Onion access problems start with a host group that is broader than it should be. The cards below cover the groups a planner needs to decide on before touching so-firewall, and the mistake most often made with each one. Confirm every built-in group name against your installed version before you write any rule.

Analyst console access

This group covers the workstations and jump hosts that reach the Security Onion Console over HTTPS. Only analysts, detection engineers and the on-call responders who actually use the console belong here, and their source ranges should come from a managed network segment. The main mistake is adding a whole corporate subnet because it was easier than listing the analyst workstations. Check that the group does not also grant SSH to the manager, which is a separate decision.

Architecture docs

Syslog and log source senders

This group lists the devices and forwarders allowed to send syslog or agent traffic to the listening ports on a sensor or receiver. It should contain only the known firewalls, switches and log relays in your inventory, each mapped to the ports it actually uses. The usual mistake is opening the syslog port to all hosts for a single appliance, which lets any device on the segment inject events into your detection pipeline. Record the owner of each sender so stale entries are removed during reviews.

Custom host groups for services

Custom host groups let you name a set of addresses once and reuse them in rules, such as a monitoring server that polls the grid or a backup host that pulls configuration. Define them only for services you have documented, and keep each group narrow enough that its purpose is obvious from the name. The common error is building one broad custom group, such as an all-internal list, and reusing it for several services, which makes later audits nearly impossible. Confirm how your version stores custom groups before scripting changes.

Custom port groups for specific services

Port groups define which TCP or UDP ports a host group may use, so a single rule can express a service such as a monitoring agent port without opening everything above a range. Tie each port group to one service and one owner, and document the protocol alongside the number. The main mistake is reusing a port group that already contains extra ports because the needed port was missing, which silently widens access for every rule that references it. Test each change against a known-good and a known-blocked source.

Built-in group names and versions

Built-in group names can change between Security Onion releases, and this page should not be treated as a reference for them. Before writing any rule, list the groups your installed version reports, record the exact names, and compare them with the Security Onion release notes for the version you run. Teams that copy names from an older guide often end up with rules that match nothing, or with a default group that grants more than expected. Ask the vendor or your own lab to confirm the names for your build.

Architecture docs

Configuration options and when each fits

This table compares the five ways to restrict access on a Security Onion grid, from built-in hostgroups to per-role INPUT chain rules. Read each row for the situation it suits, what it costs to run, and where an over-broad rule creates exposure. The main takeaway is to start with the built-in analyst and syslog hostgroups and add custom groups only when your network layout requires them.

OptionWhen it fitsOperational costRisk of over-broad rules
Built-in analyst hostgroupAnalysts need Console access from a known set of workstations or subnetsLow. Membership changes as analyst networks change, so review it on each staffing or network changeGranting the whole corporate subnet reaches the Console from every device on it, not just analyst workstations
Built-in syslog hostgroupNetwork devices, servers or agents send logs to Security Onion over syslogLow to moderate. Each new log source must be added, and sources often change IP addressesAllowing a broad range lets any host on it inject events into the pipeline, which can pollute analysis
Custom host groupsYour teams need distinct groups, such as sensor-admin or regional analysts, that the built-in groups do not expressModerate. Someone must own the group definitions and keep them in step with inventoryOverlapping or stale groups make it unclear who can reach what, which weakens audit evidence
Custom port groupsOnly specific services, such as a non-default syslog port, need to be opened to a host groupModerate. Each port group must match the service configuration on the nodes, and mismatches cause silent dropsOpening a wide port range exposes services you did not intend to publish to that host group
Applying changes with so-firewall includehostYou need to add a host to an existing host group without rebuilding the rule set by handLow for single additions. Each change needs an entry in your change record and a check that it took effectAdding a host to a broad group grants it every permission that group already has
Per-role INPUT chain rulesYou need per-role control beyond what host groups express, and your team can maintain custom firewall logicHigh. Custom rules must survive upgrades and be retested after each change, and they are harder to hand overA misordered or permissive rule can override intended restrictions, and rules left behind after a role change are easy to miss

How analyst and sender traffic reaches the grid

Traffic starts at two groups outside the grid: analyst workstations opening the console and syslog sources sending events. Both pass a firewall policy layer where host groups decide who may connect and each role gets its own INPUT chain. Only the permitted paths reach the manager, sensor and search nodes. Before you go live, check that every allowed host group maps to a named role and that nothing reaches the grid by default.

Traffic from outside the grid passes host groups and role chains before reaching nodes.

How to set up host group restrictions step by step

This sequence limits who can reach the Security Onion Console and which devices can send data to the grid. You build the inventory first, then map sources to groups, apply the membership, set per-role INPUT rules and test from allowed and denied hosts. Each step ends with a check you can record.

  1. Inventory console users and data sources

    Start by listing every person, admin workstation and network that needs to reach the Security Onion Console, and every device that sends data to the grid, including sensors, syslog sources and Elastic Agents. For each target, note the node role it touches, such as manager, search, sensor or receiver, using the Security Onion architecture docs as the reference. Confirm the list against your current firewall settings and existing log sources with the team that owns them. The step is done when a reviewer signs off that no source or port in use is missing from the inventory.

  2. Map each address to a host group

    Assign each inventoried address to the analyst host group if it needs console access, or to the syslog host group if it only sends logs. Check that every address appears in exactly one group and that no analyst workstation is placed in the syslog group, or the reverse. Record the owner and the business reason next to each entry so the mapping can be reviewed later. The step is complete when the mapping table has one row per address and every row has an owner.

  3. Define custom groups only where needed

    Create custom host or port groups only for sources that the default groups cannot cover, such as a dedicated management subnet or a single port used by one log forwarder. Keep each custom group small and document why it exists and who owns it. Remove any group that has no current members or no clear purpose. Confirm the exact group definition format for your Security Onion version in the product documentation before you edit anything. The step is done when every custom group has a named owner and a written reason.

  4. Apply membership with so-firewall includehost

    Use so-firewall includehost to add each mapped address to its chosen host group on the manager, following the documented procedure for your installed version. Make the change in a maintenance window agreed with the people who depend on the grid, and keep a copy of the previous configuration so you can revert. Confirm which nodes pick up the change and whether any node needs a service restart. The step is done when the rule listing on each affected node shows the address in the expected group.

  5. Set per-role INPUT rules

    Define INPUT rules for each node role so that only the matching host groups can reach the ports that role exposes. Console access belongs on the manager path, log intake belongs on the nodes that receive logs, and every other source is denied by default. Compare the resulting rules against the mapping table from the earlier step, looking for any group that can reach a port it does not need. The step is complete when each role's rule set matches the mapping and no unlisted address can reach a service.

  6. Verify access from allowed and denied hosts

    Test from one allowed analyst host, one allowed log sender and one host in no group. The analyst host should load the Console, and the sender should deliver logs that appear in the grid. The host in no group should be refused or time out on every restricted port. Record the result for each host and port, then repeat the tests after any node restart or grid change. Because search nodes stop indexing if they cannot reach the manager's Redis service, include a check that new events are still arriving. The step is done when the results match the intended access for every tested host.

How to test and roll back firewall changes safely

A host group change on a live grid should only happen inside a maintenance window with a written rollback in hand. Firewall rules in Security Onion decide which hosts can reach the console and which devices can send logs and telemetry into the grid. A rule that is slightly too narrow does not fail quietly. It cuts off an analyst, a syslog source or a sensor at the moment they are needed, and the team may not notice until someone asks why a feed went silent. Plan the window around the change, tell the people who depend on the affected paths, and record the exact previous state before editing anything, so the reversal is a known action rather than a reconstruction under pressure.

The most serious mistake is locking out infrastructure the grid depends on. Search nodes need to reach the manager, and the Security Onion architecture documentation notes that if the manager goes down, search nodes stop indexing because they cannot reach Redis. A host group that omits a search node or a sensor from the manager's allowed inbound path can therefore stop indexing across the grid while the console still appears to load. Before applying a change, confirm from each node class which ports and source addresses it needs, and check that the manager remains reachable from every search and sensor node. Confirm the exact ports for your version in the Security Onion documentation rather than relying on memory.

Test every change from a host that sits outside the group you just edited, and keep a session open that you do not close until the test passes. A test from the manager itself or from a jump box already inside the allowed set proves very little. Check that an analyst host in the new analyst group reaches the console, that a host outside it is refused, and that a syslog source in the syslog group still delivers events into the pipeline. Keep the rollback as a single documented step, such as re-applying the saved host group definitions and reloading the firewall, and rehearse it on a non-production grid if one exists. Ask your team to confirm the reload procedure for your version before the window opens.

Security and operational risks of host group rules

Host group rules decide who can reach the console and which devices can send data into the grid. The risks below share one root: a rule that was correct when written drifts away from the hosts it protects, and nobody notices until a sensor stops reporting or an analyst is locked out.

Overly broad source ranges

A host group built from a whole subnet, such as a management VLAN or a corporate client range, admits every device in it, including ones nobody has reviewed. Start each analyst and syslog group from the specific workstations and log sources that need access, and record why each address or range is there. Review the list against your asset inventory and confirm that no group contains a range you cannot name an owner for.

Forgotten service hosts

Scanners, old SIEM forwarders, decommissioned sensors and test laptops often stay in a group after their job ends. Each one is an open path into the console or the ingest ports. Tie every entry to a ticket or owner, and remove entries when the owning system is retired. A periodic comparison of group members against current host records catches entries that no longer match anything.

Upgrade breakage between nodes

Sensor, search, manager and receiver nodes talk to each other on ports that a rule change can silently block. Because search nodes stop indexing when they cannot reach the manager's Redis, a bad rule can stall the whole grid without an obvious error on the console. Before any upgrade, record the inter-node flows that work today, and after the upgrade confirm each node still reports and indexes. Check the Security Onion release notes for any firewall changes your version introduces.

Architecture docs

Lockouts during changes

Editing a rule from a remote session can cut off the session that made the change, and an error in an analyst group can remove the last working path to the console. Keep a console or out-of-band path open, make one change at a time, and test from a host in the affected group before closing the session. Keep the previous rule set saved so you can restore it quickly.

Drift between nodes

Firewall rules applied by hand on one node and not another produce grids where the same action works on one sensor and fails on the next. Keep host group definitions in one place, apply them through the Security Onion configuration rather than by editing individual hosts, and compare the effective rules on each node after a change. Drift is hard to see in day-to-day use, so check it on a fixed schedule.

Unlogged rule changes

Without a record of who changed a host group and why, an access problem becomes a guessing exercise, and an unauthorized widening of access goes unnoticed. Record each change with the requester, the reason, the approver and the date, and keep the record with your change management system. Ask whether your audit trail covers changes made through the console and through the command line, because the two paths can differ.

Questions buyers ask before restricting Security Onion access

Can our team configure Security Onion firewall host groups without outside help?

Yes, a team with Linux administration and network experience can change host groups, but the risk is in the planning. Host groups control which addresses reach the console and which devices can send logs, so a wrong entry can lock analysts out or silently stop a log source. Before changing anything, confirm that your team can test each change from the affected networks, has a rollback path, and knows which node runs the change. Check the current Security Onion documentation for your version, since configuration steps differ between releases.

What drives the effort of a firewall host group review?

Effort rises with the number of nodes, the number of log sources and the number of roles that need separate access. Each manager, search, sensor and receiver node may need its own rules, and each syslog or agent source needs an entry in the right host group. Change control adds time, because every rule change may need an approval, a test window and a record of who requested it. Ask any provider to price the work against a written list of nodes, sources, roles and approval steps.

What do we need to provide before a review starts?

A reviewer needs three inputs to plan well: an up-to-date network map, an owner list and a set of maintenance windows. The network map shows which subnets analysts, sensors and log sources use. The owner list names who approves a change to each host group and who to call if a log source goes quiet. Maintenance windows tell the reviewer when a firewall change can be tested without disrupting monitoring. Missing any of these usually adds rounds of back-and-forth before the first change.

How long does a firewall host group review take?

Duration depends on scope, mainly the number of nodes, the number of log sources and how many roles need distinct rules. A review limited to analyst console access on a single standalone node is much shorter than a review of a distributed grid with syslog senders across several sites. The time also depends on how quickly your change approvals and maintenance windows are scheduled. Ask for a timeline tied to a written scope, and confirm which steps the timeline includes, such as testing and retesting.

Which host group mistakes cause the most trouble?

The most common problems come from allowing too much access to the console, or from blocking a log source that was never listed. Teams often add a broad subnet to the analyst group to fix a temporary problem and never remove it. Syslog senders that use a different source address after a network change can stop delivering events without any error on the Security Onion side. Check each rule against the network map, verify that every expected log source still arrives after a change, and record the reason for each exception.

Does restricting access also help with compliance evidence?

Restricting access supports several access control requirements, but it does not satisfy them alone. Host group settings give you a documented, testable list of who can reach the console and which devices can send data, which auditors often ask to see. The evidence should include the approved rule set, the approval record for each change and test results showing the rule works. Independent auditors decide whether the control meets a given requirement, so confirm the expectations with your assessor before you design the rules.

When is it worth bringing in a partner for this work?

A partner is worth considering when the grid is distributed across several sites, when many log sources depend on the rules, or when your change process requires formal testing and evidence. DeployOpen plans, implements and documents self-hosted platforms in your own infrastructure, and most engagements are fixed-scope with the scope and deliverables agreed in writing before work starts. Ask any partner to state what they test, what they hand over, and how they handle a rollback if a rule blocks a log source.

How DeployOpen scopes and hardens Security Onion access

DeployOpen plans and implements Security Onion firewall host groups inside your own infrastructure, so console reach and sensor ingest are limited to the devices and roles you approve. Each engagement is fixed-scope, with the host groups, ports and roles agreed in writing before any change is made to a live grid.

How we scope

  • Inventory every analyst workstation, jump host, syslog source and sensor that must reach the grid, with its network and owner.
  • Agree the analyst and syslog hostgroups, custom host and port groups, and the per-role INPUT chains in the written scope.
  • Confirm the change window, rollback steps and who approves each allowed source before work starts.

How we build

  • Define host groups and port groups in configuration, then apply them with so-firewall includehost on each affected node.
  • Build per-role INPUT chains so console, Elasticsearch and sensor ports open only to their approved sources.
  • Test from allowed and denied hosts on every node class, and record the results against the agreed scope.

How we hand over

  • Deliver the host group map, port matrix, role-to-chain mapping and the change procedure as written documentation.
  • Walk your security and platform teams through how to add a host, retire a source and verify a change.
  • Provide a retest checklist so your team can confirm the rules still hold after upgrades or node replacement.

How we support

  • Engagements are fixed-scope, and ongoing support, upgrades and continuous testing are available as retainers.
  • Re-check host groups after Security Onion upgrades, node additions or changes to analyst networks.
  • Confirm with DeployOpen during scoping which retainer covers rule reviews and which items stay with your team.

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.