Security Onion on AWS with VPC Traffic Mirroring: when this design fits
Run Security Onion in AWS when you need network visibility inside your VPCs and you can keep the sensor and its mirrored traffic under your own account controls. The Security Onion AWS guide covers deploying the Marketplace AMI, picking instance types for each node role, choosing between EBS and ephemeral storage, and sending VPC Traffic Mirroring sessions to a sensor. A standalone node fits a single VPC or a small estate with modest traffic and a small team that can accept one system doing every job. A distributed grid, with a manager, sensor nodes and search nodes, fits production monitoring across several accounts or higher traffic, where search capacity and pipeline redundancy matter. The AWS guide itself describes at least two search nodes, since ephemeral search storage only replicates between them.
Before you commit, check three constraints. VPC Traffic Mirroring only works with Nitro-based EC2 instances, so every instance you want to watch must be on a supported type, and the sensor needs a sniffing interface behind a permissive security group. Mirrored traffic arrives as VXLAN, so the sensor path must accept it. Confirm current instance support and mirroring quotas in AWS documentation for your region, not from this page. Also confirm the license terms: Security Onion is source-available under the Elastic License 2.0, not OSI open source, which matters if your policy requires OSI-approved components.
This page is a planning guide, not a replacement for the vendor's current documentation. Read the Security Onion Amazon Cloud guide for the exact AMI, sizing and setup steps before you build, and treat any instance size in this page as a starting point to validate against your traffic volume.
How mirrored VPC traffic reaches the sensor and search nodes
Mirrored traffic starts at the source instances in the monitored VPC, which are Nitro-based EC2 instances. A Traffic Mirror filter and session copy packets to a mirror target, and the traffic leaves the monitored VPC as VXLAN toward the sniffing interface on the sensor in the Security Onion VPC. The sensor passes parsed events to the manager, and search nodes receive the indexed data. Check that the security group on the sniffing interface is permissive, that the session references the correct target, and that the VPC boundary is the only path carrying mirrored traffic.
Mirrored traffic crosses the trust boundary as VXLAN into the sensor, then fans out to the manager and search nodes.
Which AWS instance and storage choice fits each Security Onion node
This table compares each Security Onion node role with the instance type and storage the AWS guide suggests, along with when that choice fits. Read each row against your traffic volume and retention goals, and use the minimum hardware figures as a floor rather than a target. The main takeaway is that search nodes need ephemeral storage replicated across at least two instances, while sensors need Nitro-based instances for VPC Traffic Mirroring.
| Node role | Suggested instance and storage | When the choice fits and what changes |
|---|---|---|
| Standalone | t3a.2xlarge with 256 GB gp3 | Fits evaluation or small monitored networks where one node handles capture, detection and search. Ask whether the traffic volume and retention need a distributed design before going to production. |
| Manager | m5a.2xlarge | Fits a distributed grid with one manager coordinating sensors and search nodes. If you choose a different family, confirm it meets the 4 cores and 16 GB RAM minimum for a manager node and keeps the same storage design. |
| Search | At least two m5ad.2xlarge with ephemeral storage | Ephemeral storage is used because search nodes replicate each other, so at least two are required. Confirm with AWS that the instance you pick has local instance store, and plan for data loss if a node is stopped or replaced. |
| Sensor | c5a.2xlarge with 500 GB EBS | Fits a sensor that must be a Nitro-based instance to be a VPC Traffic Mirroring source or target. Sensors need a sniffing interface and permissive security group, so confirm the instance type supports the mirroring setup you plan. |
| Sensor on a non-Nitro family | Not supported for VPC Traffic Mirroring as the mirror source | AWS Traffic Mirroring only mirrors Nitro-based instances, so a non-Nitro family cannot be the mirrored workload. Confirm your architecture with AWS documentation before choosing a family. |
| Storage type for sensors and standalone | EBS (gp3 for standalone, EBS volume for sensor) | Persistent EBS keeps data across restarts. Ask how PCAP and log retention will be sized against the volume size before you commit to a disk size. |
| Storage type for search nodes | Ephemeral instance store | Faster local storage, but data is lost when the instance stops. Replication across at least two search nodes is the protection, so plan backups and recovery for critical data. |
| Different instance family | Any family that meets the hardware minimums and cloud requirements | Verify CPU, RAM, storage, NIC count and Nitro support against the Security Onion hardware and AWS docs. Ask for a sizing review tied to your traffic before changing from the suggested types. |
EBS versus ephemeral storage for search and sensor nodes
The AWS guide pairs ephemeral storage on search nodes with EBS on the sensor, and that split changes what survives a stop, a failure or a replacement. The cards below cover the decisions that follow from it, and the points to confirm before you commit to a storage layout.
Persistence after stop or failure
Instance store volumes are tied to the host, so data on ephemeral disks does not survive a stop or failure of that instance. EBS volumes persist independently of the instance lifecycle and can be reattached. Before you choose, confirm with the AWS storage documentation which instance store behaviors apply to the exact instance family you plan to run, and plan how the grid recovers a lost search node.
Amazon cloud docsReplication between search nodes
Distributed search nodes on AWS use ephemeral storage, so the grid relies on the nodes replicating each other rather than on the disks themselves. A search node that loses its disk is only recoverable from its peers. Ask how replication is configured on your grid, and confirm how long a rebuild takes before you accept a single search node as a risk.
Two search nodes minimum on ephemeral storage
At least two search nodes are required when ephemeral storage is used, so that each one can replicate the other. Running a single ephemeral search node leaves no copy of indexed data. Plan the instance count and the availability zone placement together, and include both nodes in your sizing and cost estimate from the start.
- Minimum search nodes
- 2
Sensor storage on EBS
The guide suggests a 500 GB EBS volume for the sensor in a distributed grid. The sensor holds capture and processing data that you may want to keep across an instance replacement, so the persistent volume gives you more room to recover. Confirm the gp3 throughput and IOPS your sensor needs at your traffic volume, since the sensor's disk write rate depends on the traffic it captures.
Retention and PCAP disk planning
Retention decides how much disk each node needs, and ephemeral capacity is fixed by the instance type you choose. Estimate PCAP volume from average throughput and the number of days you keep it, then check that the planned instance store covers the search data plus free space. Ask your team which retention period is required by your investigation and audit obligations before you pick instance sizes.
What to confirm before choosing
Check the current AWS storage documentation for instance store durability, the instance families that expose it, and how EBS volume types perform under sustained write load. Confirm the volume sizes and instance types against the current Security Onion AWS guide for your release, because the 3.x line changed some defaults. Record the decision and its recovery procedure before deployment.
Security Onion AWS guideHow to set up VPC Traffic Mirroring to a Security Onion sensor
This sequence takes a Security Onion sensor from Marketplace launch to a confirmed feed of mirrored VXLAN traffic, with a check at each stage so the sensor is not assumed to be seeing traffic until it is.
Launch the Marketplace AMI in the Security Onion VPC
Your cloud or platform engineer launches the Security Onion sensor from the AWS Marketplace AMI inside the VPC that will host the sensor, using the instance type and EBS volume sized for the sensor role in the AWS guidance. Keep the management interface on a subnet your analysts can reach, and record the instance ID and private IP for later steps. The step is complete when the instance is running, you can reach it over the management path, and the Security Onion setup has been started or the node is ready to be joined to your grid. Confirm the chosen sizes with the current Security Onion Amazon Cloud documentation before you launch.
Confirm the sensor instance is Nitro-based
Before you configure anything else, check the instance type in the EC2 console or with the AWS CLI. VPC Traffic Mirroring only works with Nitro-based EC2 instances, so a non-Nitro sensor cannot receive mirrored traffic no matter how the rest of the setup is built. Note that the sizing examples in the Security Onion AWS guidance use Nitro-family types for the sensor, but confirm the exact instance family against AWS's current list of Nitro instance types. The check passes when the instance type appears on that list and the instance details show it running on the Nitro system. If it does not, change the instance type before going further.
Add a sniffing interface with a permissive security group
Attach a second network interface to the sensor in the subnet where your source workloads run, which is the sniffing interface that receives mirrored packets. Assign it a security group that allows the inbound traffic the sensor needs to accept, including the VXLAN traffic on UDP port 4789 from the mirror source, and leave the management interface on its own restricted group. Make sure the Security Onion sensor is configured to use the new interface for capture, and do not give it an IP address that other services depend on. The step is complete when the sniffing interface shows as attached and in use, its security group is the one you set, and the management interface still responds.
Create the mirror target pointing at the sniffing interface
In the VPC console, create a traffic mirror target that references the sensor's sniffing network interface. The target tells AWS where to deliver copies of traffic, so this is the point where the sensor's capture interface becomes the destination. Record the target ID so it can be attached to the session in the next step. The check is that the target shows the correct network interface ID and is in the available state. If the target points at the management interface instead, mirrored traffic will not reach the capture path, so verify the interface ID against the sniffing NIC you attached.
Create the traffic mirror filter and session
Create a traffic mirror filter that defines which traffic you want to copy, starting with a narrow rule set for the workloads you are monitoring so the sensor is not overloaded during testing. Then create a traffic mirror session that links a source network interface, the mirror target and the filter, and set the VXLAN network identifier the session will use. Sessions are created per source interface, so repeat this for each workload interface you need to cover. The step is complete when each session shows an available state and the filter rules match what you intended. Record the session IDs and confirm the Nitro requirement for each source instance.
Verify VXLAN traffic arrives on the sensor
Generate known traffic from a mirrored source workload, such as a simple request to a service in the same subnet, and then check the sensor's sniffing interface with a packet capture tool for UDP traffic on port 4789 carrying VXLAN-encapsulated frames. Confirm that the inner frames match the source traffic you generated, and check that Suricata and Zeek events begin to appear in the Security Onion Console for that traffic. The step is complete when VXLAN packets are visible on the sniffing interface and the test traffic shows up as events. If nothing arrives, check the security group rules, the session state, the filter rules and whether the source instance is Nitro-based.
How to confirm mirrored VXLAN traffic is arriving
Run three checks once the mirror session is active, in this order: confirm the sensor sees VXLAN-encapsulated traffic on its sniffing interface, confirm events appear in the Security Onion Console, and confirm every source instance you intended to mirror is actually represented. Start at the sensor because a silent mirror is the most common failure. AWS VPC Traffic Mirroring wraps copied packets in VXLAN, so a capture on the sniffing interface should show UDP traffic on port 4789 arriving from the mirror target. If the interface shows nothing, the problem sits upstream in the session, filter or security group, and there is no point checking the Console yet. Use a packet capture tool on the sniffing interface for a short window and look for the encapsulated frames. The exact interface names, capture commands and any grid-level health views change between releases, so confirm them against the current Security Onion AWS guide for the release you deployed before you write them into a runbook.
Next, confirm that the sensor's detections reach the Console. Generate known, benign test traffic from a mirrored instance, such as a DNS lookup to a domain your team controls or a plain HTTP request to an internal test host, then search for the corresponding Zeek and Suricata records in the Console. Check that the source IP matches the instance that generated the traffic. If the records appear but the source addresses look wrong, the mirror session may be carrying traffic from a different interface than you expected. Also confirm the sensor is reporting to the manager, since events that cannot leave the sensor will not show in the Console even when capture works. Record the test, the expected results and the time of the check so the same test can be repeated after upgrades or node replacement.
Finally, reconcile the filter against your instance inventory. Each source instance that should be mirrored needs a traffic mirror session that matches the filter rules you configured, and each must run on a Nitro-based instance. Compare the list of source IDs in your session configuration with the list of hosts that appear in Console records over a representative period. A missing host usually means its session was never created, its rule does not match the traffic direction you need, or the instance type is not Nitro-based. Ask your cloud team to confirm the inventory is complete before sign-off, and plan to repeat the reconciliation whenever instances are added, replaced or moved to a different subnet.
Security and operational risks of mirroring traffic in AWS
Mirroring production traffic to a Security Onion sensor creates new exposure: a sniffing interface that accepts traffic, a sensor that holds captured payloads, IAM rights that can change network paths, and a grid that depends on the manager. Review each item below before the sensor sees live traffic, and record who owns each decision.
Permissive security group on the sniffing interface
The sniffing interface needs a security group that accepts the mirrored traffic, which is broader than a typical application rule. Confirm which source ranges can reach the sensor's sniffing interface, and keep management traffic on a separate interface with a tightly scoped group. Review the group whenever mirror sources change, since a loose rule on the capture interface can expose the sensor to traffic it was never meant to receive.
Security Onion AWS docsIAM permissions for mirror resources
Creating mirror targets, filters and sessions requires EC2 permissions that can also redirect or copy production traffic. Grant these rights to a named role, not to general administrators, and log every create, modify and delete call. Ask your cloud team to confirm which principals can change mirror sessions and who approves changes to them.
Sensor exposure to captured payloads
A sensor that records full packet capture holds unencrypted content from every mirrored flow, including credentials and personal data that pass in cleartext. Treat the sensor and its /nsm storage as sensitive systems, restrict console and shell access, and set retention with your data owner. Confirm how the disk is encrypted at rest and who can read stored PCAP.
Manager outage stops search indexing
Search nodes cannot reach Redis when the manager is down, so they stop indexing events while the outage lasts. Mirrored traffic keeps arriving at the sensor, so this gap can hide activity from analysts. Plan manager availability, monitor grid health, and confirm with your team how a manager failure is detected and escalated.
Architecture docsEphemeral storage on search nodes
Distributed search nodes on AWS use ephemeral storage, so at least two are required to replicate each other. Losing a single node without a replica can lose indexed data that the instance store held. Confirm your replication and backup plan with the team that owns the grid before you rely on search history for investigations.
- Minimum search nodes
- 2
ELv2 license terms for legal review
Security Onion is source-available under the Elastic License 2.0, which is not an OSI-approved open-source license. Ask legal to review the license terms against your intended use, especially if you plan to offer it to customers or embed it in a product. Record the decision alongside the deployment record so audits and procurement can find it.
Security Onion repositoryQuestions buyers ask about Security Onion on AWS
What drives the cost of running Security Onion on AWS?
The main cost is the AWS bill for the instances, storage and traffic mirroring, plus the engineering time to build and operate the grid. Instance hours depend on the node roles you choose: the AWS guide suggests a t3a.2xlarge with 256 GB gp3 for a standalone node, and for a distributed grid an m5a.2xlarge manager, at least two m5ad.2xlarge search nodes and a c5a.2xlarge sensor with 500 GB EBS. Storage cost rises with PCAP retention and Elasticsearch data, and mirrored traffic volume shapes what the sensor must process. AWS bills mirroring and data transfer separately, so ask your account team and check the current AWS pricing pages before approving budget. A written quote from a partner should show each AWS resource, who pays for it, and which costs are one-time (build, hardening) versus recurring (instances, storage, support).
How long does a Security Onion setup on AWS take?
The duration depends on scope: a single standalone node for evaluation is far shorter than a distributed grid with a manager, search nodes, a sensor, mirroring and hardening. The work that usually stretches the timeline is not the Marketplace launch but the network changes: confirming Nitro-based instances, opening the sniffing interface, building the mirror filter and session, and verifying VXLAN arrives at the sensor. Access approvals, change windows and detection tuning add time on top. Ask any provider for a phased plan with milestones and a written end date tied to the agreed scope, and ask which phases assume your team is available for reviews.
What does the work need from our AWS account and network team?
You need an AWS account with permission to launch EC2 instances, manage EBS volumes, create security groups, and configure VPC Traffic Mirroring resources, along with a network owner who can approve the traffic path. The sensor needs a sniffing interface with a permissive security group, and the mirror target, filter and session must be placed on the source instances you want to monitor. Your network team should confirm the VPC layout, subnets, routing, and where the manager and search nodes can reach each other, and should review the management access path. Agree early who owns IAM roles, KMS keys, logging and change tickets, because those decisions affect audit evidence.
Can an internal team deploy Security Onion on AWS without a partner?
Yes, a team with Linux, AWS networking and security monitoring skills can deploy it, and the Marketplace AMI and official AWS guide give a documented starting point. The risks are in the details: choosing instance types that support mirroring, understanding that distributed search nodes use ephemeral storage and need at least two for replication, and validating that mirrored traffic is actually reaching the sensor. Teams with no recent Security Onion experience usually need time to learn the grid roles and upgrade process. Assess your staff against those tasks, and confirm the requirements in the current Security Onion documentation before you commit a go-live date.
What goes wrong when VPC Traffic Mirroring is set up incorrectly?
The most common failure is a sensor that receives no traffic, which looks like a healthy deployment until someone checks for alerts. Mirroring only works with Nitro-based EC2 instances, so an older instance type in the source path will capture nothing. Other causes include a sniffing interface blocked by a restrictive security group, a filter that excludes the traffic you need, or a session that targets the wrong interface. Verify VXLAN arrival on the sensor with packet capture on the expected port before trusting any dashboard. Build this check into acceptance testing so it is not discovered during an incident.
When is it worth engaging a partner for Security Onion on AWS?
A partner is worth considering when the deployment must pass a compliance review, span several accounts or VPCs, run on a tight schedule, or when your team lacks time to own it after go-live. DeployOpen plans, implements, hardens, backs up, upgrades and documents self-hosted open-source platforms in infrastructure you control, and most engagements are fixed-scope with scope, deliverables and timelines agreed in writing before work starts. Ask for a written scope that covers the build, the mirroring verification, hardening evidence and the handover, and separate out ongoing support, which is available as a retainer. Note that DeployOpen does not issue audit reports or certifications, so independent auditors still assess your controls.
Do we need a Security Onion Pro license for an AWS deployment?
Not for a basic deployment, but the requirement depends on your identity and compliance needs. Security Onion Pro is a paid edition sold on 1 to 5 year terms, and it adds OIDC single sign-on to the Console, LUKS data-at-rest encryption, FIPS mode, OS STIG compliance, the Security Onion API and professional support. If your security team needs those controls, plan for the license cost as a recurring line item. Check current terms directly with Security Onion Solutions, and confirm with your auditors which controls they expect to see before you decide.
How DeployOpen scopes and delivers a Security Onion AWS deployment
DeployOpen starts every Security Onion AWS deployment with a written, fixed scope agreed before any work begins. The scope names the AWS account and regions, the VPCs and subnets that hold the monitored workloads and the Security Onion grid, the node roles (manager, search nodes and sensors, or a single standalone node), the instance types and storage choices for each role, the Nitro-based instances whose traffic will be mirrored, the mirror filters and sessions, and the verification steps that prove traffic reaches the sniffing interface. Deliverables and acceptance checks are written into the same document, so the client knows what is delivered and how it is confirmed before the first instance launches. A quote follows from that written scope, which is why the client should review the node count, storage type and mirroring coverage with DeployOpen before signing.
All build work runs inside the client's own AWS accounts, under the client's own IAM roles, KMS keys, security groups and logging settings. Nothing is hosted on DeployOpen's infrastructure. Scope decisions the client must own include which subnets are mirrored, which security groups allow the sniffing interface to receive traffic, who approves changes to the mirror target and how the Security Onion Console is exposed to analysts. DeployOpen documents each decision, the configuration it produced and the verification results, so the client's cloud and security teams can review the work and rebuild it later without DeployOpen present.
After go-live, ongoing support, upgrades and continuous testing are available as retainers, and they are scoped separately from the original build. Before signing, ask DeployOpen to state in writing what the retainer covers, including Security Onion upgrades, AMI replacement, mirroring changes when workloads move, and response times. Ask your team to confirm the current Security Onion release line and its end-of-life dates in the Security Onion end-of-life documentation before choosing a version, because the support window for the version you deploy determines how long the build stays current without a rebuild.

