Security Onion on Google Cloud with Packet Mirroring

Security Onion on Google Cloud needs a separate monitoring VPC, an internal load balancer and a packet mirroring policy that selects instances by tag. This page explains how those parts fit, what drives size and cost, and what to confirm before you deploy.

On this page

Security Onion on Google Cloud with packet mirroring: when your team needs it

Your team needs Security Onion on Google Cloud when east-west and north-south traffic in your Google Cloud workloads must be recorded, searched and investigated, and when your current tooling cannot see that traffic. The documented cloud path is to deploy the Security Onion image from the Google Cloud Marketplace, then copy workload traffic to it with a packet mirroring policy. Security Onion is also available in the AWS and Azure marketplaces and as an ISO for on-premises installs, so a Google Cloud deployment fits a wider grid if you run several environments. Before you commit, note that the Security Onion repository is licensed under the Elastic License 2.0, which is source-available rather than OSI-approved open source. Confirm that this license fits your legal and procurement rules.

The network design is the first decision that affects everything after it. The Security Onion VPC must not overlap the monitored VPC, so plan the address ranges and VPC layout before you create any resources. Mirroring works by selecting source instances that carry the so-mirror network tag, sending their traffic to an internal TCP load balancer with packet mirroring enabled, and delivering it to the Security Onion sensor behind that load balancer. Ask your network team to confirm which VPCs, subnets and firewall rules will carry mirrored traffic, and who owns the tag on each workload. Tagging is an ongoing operational duty, so a new instance without the tag will silently go unmonitored.

Plan the work as a sequence you can check at each step: confirm the Marketplace image and version you will deploy, size the machine types against the Google Cloud guidance, and decide between persistent and local disks, noting that local disks are not replicated. Then verify that mirrored packets reach the sensor from a test workload before you rely on the feed. The Google Cloud documentation for Security Onion is the primary reference for these settings, and your cloud team should confirm the current console steps against it, because cloud interfaces and image details change between releases.

How monitored VPC traffic reaches the Security Onion sensor

Traffic starts at monitored VMs carrying the so-mirror network tag, which a packet mirroring policy selects as mirroring sources. The policy sends copies to an internal TCP load balancer with packet mirroring enabled, which forwards them into the Security Onion VPC where the sensor receives them. The Security Onion VPC sits in a separate network from the monitored VPC, so the trust boundary is the point to check: confirm the two ranges do not overlap and that only the mirrored traffic path crosses it.

Mirrored copies cross from the monitored VPC into the Security Onion VPC through a load balancer.

Machine types and disk choices for each Security Onion role

This table compares the suggested Google Cloud machine types and disk options for each Security Onion role. Read each row against your deployment type, because the minimum is a starting point and the disk choice determines what happens to stored data if an instance is lost. The main takeaway is that local disks suit disposable capacity, while persistent disks suit data you must keep.

RoleSuggested starting type and when to go largerPersistent disks versus local disksFit by deployment type
Standalone noden2-standard-8 is the suggested minimum. Choose a larger type when packet volume, Suricata workers or Elasticsearch query load grow beyond a single small instance.Persistent disks keep data across instance restarts and rebuilds. Local disks are 375 GB each and not replicated, so treat them as temporary capacity.Fits evaluation and small monitored segments. Use persistent disks for any node where stored alerts and PCAP must survive a replacement.
Manager noden2-standard-8 is the suggested minimum. Confirm the sizing with the Security Onion hardware guidance for your grid size before you assume it fits.Use persistent disks. The manager holds grid configuration and state, and losing it affects every node that depends on it.Required role in Distributed deployments, the recommended production design. Do not place it on local disks.
Search noden2-standard-8 is the suggested minimum. Larger types help when analysts run long queries or retention grows.Persistent disks protect indexed data. Local disks may suit a cluster where replicas hold the data, but confirm replication settings before relying on this.Used in Distributed deployments. When the manager is unavailable, search nodes stop indexing, so plan search storage with the manager in mind.
Sensor noden2-standard-4 is the suggested minimum. Choose a larger type when traffic rates or Suricata and Zeek worker counts increase.Local disks suit packet capture where recent PCAP is transient and can be lost on rebuild. Persistent disks keep capture history longer.Common in Distributed designs. Mirrored traffic is the only input, so a sensor on local disks can be rebuilt quickly without losing its configuration.
Receiver node (optional)Size against the message rate and pipeline load you expect. Confirm the requirement with your Security Onion deployment team.Persistent disks are preferred if the receiver buffers data that has not reached the search tier.Adds pipeline redundancy and load balancing in Distributed grids. Its value depends on the sensor and search counts you plan.
Cost and recurring spendLarger machine types and persistent disks raise recurring Google Cloud charges. Ask your provider for the current pricing for your region and disk sizes.Local disks are included in the machine type price, while persistent disks are billed separately by size. Confirm current rates in the Google Cloud pricing calculator.Retention length and disk size drive most storage cost. Shorten retention or move older data off the grid to control spend.

Deploying Security Onion on Google Cloud step by step

This sequence builds two separate networks, places Security Onion nodes in the analysis network, and routes copies of monitored traffic to a sensor so analysts can see that traffic in the Console. Each step ends with a check so you know the path works before you move on.

  1. Plan the two non-overlapping VPCs

    Before you create anything, decide on a monitored VPC that holds the workloads you want to watch and a separate Security Onion VPC that holds the grid. The two address ranges must not overlap, because the Security Onion VPC must not overlap the monitored VPC. Write down the subnet ranges, the regions, and which instances will carry the so-mirror tag. Confirm the firewall rules you need for management access and grid traffic with your network team. This step is done when you have a written address plan that shows no overlap between the two networks.

  2. Deploy the Marketplace image for each role

    From the Google Cloud Marketplace, launch the Security Onion image for each node role in your design: standalone, manager, search and sensor. Follow the machine type guidance in the official Google Cloud guide. Suggested minimums are n2-standard-8 for standalone, manager and search nodes and n2-standard-4 for a sensor. Decide between persistent and local disks for each role, keeping in mind that local disks are 375 GB each and are not replicated. Place the sensor in the Security Onion VPC with a network interface that can receive mirrored traffic. Check that each instance boots and that you can reach it over your management path.

  3. Configure the so-mirror tag on monitored instances

    Apply the so-mirror network tag to each monitored instance you want to capture. The mirroring policy selects its sources by this tag, so an untagged instance produces no mirrored traffic. Use a tag set that your firewall rules and naming standards already accept, and record which workloads carry it. Check the tag on each instance in the console or with the command listed in the official guide, and confirm that no instance outside your monitoring scope has picked it up by accident.

  4. Create the internal TCP load balancer with packet mirroring

    Create an internal TCP load balancer in the Security Onion VPC and attach the sensor as its backend. Enable packet mirroring on the forwarding rule, since that is how the mirrored packets reach the sensor. Confirm the health check and that the backend instance is healthy before continuing. Exact console paths and parameter names come from the official Google Cloud guide, so follow that document rather than memory. Done when the load balancer shows the sensor as a healthy backend and the forwarding rule reports packet mirroring as enabled.

  5. Create the packet mirroring policy

    Create a packet mirroring policy in the region that holds your monitored instances. Select the so-mirror tag as the source, set the internal TCP load balancer as the collector destination, and choose the traffic direction you need to analyze. Review the policy with your network team before enabling it, because mirrored copies add load on the sensor and on the path to it. The policy is done when it is active and lists the tagged instances as sources.

  6. Verify that mirrored traffic reaches the sensor

    Generate known test traffic from a tagged monitored instance, such as a simple request to a service you control. On the sensor, confirm that packets arrive on the capture interface with a packet capture tool, and check that Suricata and Zeek are processing them. Then open the Security Onion Console and search for the test traffic, for example by source address or time window. The step is complete when your test connection appears in the Console. If it does not, check the tag, the policy direction, the load balancer health and the sensor interface before retrying.

  7. Confirm the grid and document the configuration

    Confirm that the sensor is reporting to its manager and that the search node is indexing events, since search nodes depend on the manager to index. Record the VPC ranges, instance roles, tags, machine types, disk choices, load balancer name and policy settings in your runbook. Ask your Google Cloud guide or your partner to confirm any values that depend on your region or project. Done when the Console shows live sensor data and your runbook matches the running configuration.

How the so-mirror tag and mirroring policy select traffic

The so-mirror tag is the selection key for the whole design. A Google Cloud packet mirroring policy picks its mirrored sources by network tag, so any instance carrying so-mirror in the monitored VPC has its traffic copied to the Security Onion sensor, and any instance without it is invisible to the sensor. The policy sends those copies to an internal TCP load balancer with packet mirroring enabled, and that load balancer hands the mirrored packets to the sensor behind it. Before you deploy, confirm the exact tag string, the policy's source and destination settings and the load balancer's backend in the Security Onion Google Cloud documentation, because the tag is what links the policy to the workloads you intend to watch.

Tag discipline matters because the tag is applied by people and pipelines, not by the sensor. A new instance that is created from a template without the tag, or a retagged workload that loses it during a rebuild, creates a silent coverage gap that no alert will report. Give the tag an owner, document which workload classes must carry it, and add a periodic check that compares tagged instances against your inventory. The reverse risk matters too: tagging a broad group, such as every instance in a shared subnet, can send far more traffic than the sensor was sized for. Illustrative example: if a team tags a busy application tier that the sizing exercise never included, the sensor may drop packets while the dashboards look healthy from the analyst's side.

Mirroring many workloads trades coverage against capacity. Each mirrored instance adds to the packet rate the sensor's Suricata and Zeek workers must process, so the selection should follow the sensor size you chose, not the other way around. Ask your team to list the workloads that matter most for detection, tag those first, and confirm that the sensor's capacity still holds under peak traffic before widening the scope. Also confirm that the Security Onion VPC does not overlap the monitored VPC, since overlapping address ranges break the routing that carries mirrored traffic and the management path to the sensor. Plan the address ranges for both networks before the first deployment, because changing them later means rebuilding the mirroring design.

Security and operational risks of a mirrored cloud sensor

A mirrored cloud sensor copies live traffic into a system that stores alerts and packet captures. The cards below cover the data exposure, availability and access decisions that follow from that design, and what to confirm before the grid holds production traffic.

Mirrored payloads need access control

Packet mirroring copies full packets, so the sensor can capture credentials, session tokens and personal data that cross the monitored VPC. Treat the Security Onion VPC and its disks as sensitive stores of that content. Confirm who can reach the sensor's full packet capture, who can export PCAP, and whether your data classification rules allow that data to sit in a Google Cloud project owned by the security team.

Manager and sensor hold alert data

The manager and search nodes store alerts, logs and PCAP that describe your environment in detail. Map where each category lands on the grid, which node holds the Elasticsearch indices, and which project and service accounts can read those disks or snapshots. Document this map before the sensor is connected to production traffic.

Local disks are not replicated

The suggested local disks are not replicated, so an instance failure or disk loss can remove captured data and indices that exist nowhere else. Decide which data needs persistent disks instead, which data can be lost without harm, and how you will rebuild a node. Ask your team to test a node replacement and to confirm the recovery steps for each disk type before go-live.

Console access from approved admins only

The Console is the main path into alerts and PCAP, so firewall rules should allow access only from named admin networks or a bastion. Restrict the sensor and manager ports that the monitored network does not need, and keep the mirroring path separate from management access. Review these rules whenever analysts change networks or VPN ranges.

Pro features for regulated teams

Security Onion Pro adds OIDC single sign-on to the Console, LUKS data-at-rest encryption, FIPS mode and OS STIG compliance, which map to common regulated-team requirements. Confirm with your compliance team which of these they must see before you choose a paid edition, and check the Pro terms, which run on 1 to 5 year periods.

Security Onion Pro

Keep the grid current with soup

Security Onion 2.4 reached end of life on October 1, 2026, so grids on that line need a planned path forward. Use the soup tool to update the grid on a schedule, and test each release in a non-production project first. Track OS patches and cloud image changes as separate tasks, since they affect the sensor's capture and the manager's services.

Security Onion EOL

Questions teams ask before deploying Security Onion on Google Cloud

What drives the cost of running Security Onion on Google Cloud?

Cost comes from three places: the Google Cloud compute and disks that run the nodes, the Security Onion licensing terms you choose, and the labor to design and build the VPCs, load balancer and packet mirroring policy. The compute bill recurs for as long as the instances run, so machine type and node count matter most. The Google Cloud documentation suggests n2-standard-8 for standalone, manager and search nodes and n2-standard-4 for a sensor, with local disks of 375 GB each that are not replicated. Ask for a quote that lists each node, its machine type, disk type and the monthly compute and storage assumptions, plus one-time build labor separately. Security Onion Pro is sold on 1 to 5 year terms, so confirm whether you need it before pricing the license.

How long does a Google Cloud Security Onion deployment take?

Duration depends mostly on how many networks, VPCs and workloads the mirroring policy must cover, and on how well the tag inventory is already maintained. A single monitored VPC with clean tags is a much shorter job than several projects with overlapping address space that need redesign first. Build work usually covers the Security Onion VPC, the internal TCP load balancer, the so-mirror tag design, the packet mirroring policy, node sizing and validation that traffic is arriving. We do not publish fixed timelines, so ask for a written scope that breaks the work into phases and states what each phase depends on from your team.

What must our team provide before the work starts?

Plan to provide a few specific inputs before any build begins:

  • Network diagrams showing the monitored VPCs, subnets, address ranges and peering or routing between them
  • A tag inventory listing which instances should carry the so-mirror tag and who owns each workload
  • Administrative access to the Google Cloud projects, including the rights to create VPCs, load balancers and packet mirroring policies
  • Retention goals for alerts, logs and full packet capture, since these drive disk sizing
  • Named contacts for change approval and for the security analysts who will use the console

The Security Onion VPC must not overlap the monitored VPC, so address planning should be settled early.

Can our own team deploy Security Onion on Google Cloud without a partner?

Yes, a capable cloud and security team can deploy Security Onion from the Google Cloud Marketplace, and the official documentation covers the core steps. The harder parts are usually network design, where mirrored traffic must reach the sensor through an internal load balancer without overlapping address space, and ongoing tuning, detection management and upgrades. Ask yourself whether your team has spare capacity to own those tasks for the life of the platform. A partner can take on design, build, documentation and handover so that your staff learn the system while the work is done. DeployOpen plans, implements, hardens, documents and supports self-hosted platforms in your own cloud accounts, and the division of tasks should be written into the scope.

Do we need Security Onion Pro for SSO and disk encryption?

Yes, if you need these features, because they are part of the Pro edition rather than the free distribution. Security Onion Pro adds OIDC single sign-on to the Console, LUKS data-at-rest encryption, FIPS mode, OS STIG compliance and professional support, among other features. Pro is a paid edition sold on 1 to 5 year terms, so confirm the exact feature list and term length on the Pro page before deciding. Also check how your identity provider connects to OIDC and whether your encryption requirements can be met on Google Cloud disks in your region. The Security Onion repository is licensed under the Elastic License 2.0, which is source-available rather than OSI open source, and your legal team should review that license.

How is a fixed-scope Security Onion engagement agreed?

Most engagements are fixed-scope, meaning the scope, deliverables and timelines are agreed in writing before work starts. A written scope for this topic should name the projects and VPCs in scope, the node layout, the mirroring policy and load balancer design, the verification steps, the handover documents and any retest or support period. Changes that add monitored networks or nodes are handled through a written change to the scope and a revised quote. DeployOpen does not publish a price list, so a quote follows from the agreed scope. Ongoing support, upgrades and continuous testing are available as retainers and are priced separately from the build.

Choosing between Standalone and Distributed on Google Cloud

A standalone deployment runs the Security Onion Console, Elasticsearch, Suricata, Zeek and packet capture on one machine. On Google Cloud that means one virtual machine from the Marketplace image, sized at or above the suggested n2-standard-8 machine type, with the packet mirroring target placed behind the internal load balancer. It is the simplest layout to build and the easiest to troubleshoot, and it suits a small monitored scope, a proof of concept or a test environment.

  • One machine, one failure domain: a single VM handles sensing, indexing and analyst access, so an outage stops all three at once.
  • Local disk limits: the suggested local disks are 375 GB each and not replicated, so retention is bounded by one machine.
  • Less to patch: there is one OS, one set of services and one upgrade path to plan.
  • Limited growth: adding search capacity later means moving to a different deployment type rather than adding nodes to this one.
  • Hardware floor still applies: the standalone minimum is 4 cores, 24 GB RAM, 200 GB storage and 2 NICs.

Before choosing standalone, confirm with your team how long the data must stay searchable and whether a single VM outage is acceptable for your monitoring duties.

Running the cloud grid after go-live

Before go-live, name one owner for the Security Onion grid on Google Cloud. That person, or a small team with a single accountable lead, owns patching, soup upgrades, sensor health checks, backups and node replacement. Without a named owner, the mirroring path can break quietly: the packet mirroring policy keeps selecting the so-mirror tag, the internal load balancer keeps forwarding, and the sensors stop seeing traffic that nobody notices until an investigation needs it. Write the ownership into your runbook and tie each recurring task to a calendar cadence and an alert.

Plan upgrades through soup on the distributed grid rather than rebuilding nodes by hand. Confirm with the Security Onion documentation which release line your grid is on, because 2.4 reached end of life on October 1, 2026 and 2.3 reached end of life on April 6, 2024. Test each patch window in a non-production project that mirrors your VPC layout, and confirm the machine image and OS patch steps for your version before touching the monitoring path. Monitor sensor health and packet loss from the Security Onion Console and from your Google Cloud metrics for the sensor instances, and set a baseline for normal traffic so that a drop in mirrored volume is visible as a finding, not a surprise.

Local disks are 375 GB each and are not replicated, so the data on them does not survive an instance loss. Decide up front what you need to keep, how long, and where it goes. Set retention for Elasticsearch data and PCAP to match your investigation needs, and confirm with Security Onion's backup guidance what can be restored from a manager or search node and what must be rebuilt. Back up configuration and any custom detection content to storage outside the grid, and test a restore before you rely on it. For node replacement, plan a fresh instance from the same image and version, re-join it to the grid, and verify that the manager and search node relationships are healthy before you rely on the replacement for detection.

How DeployOpen scopes and delivers a Security Onion cloud deployment

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own Google Cloud projects. For Security Onion on Google Cloud with Packet Mirroring, we start from the monitored VPC layout and the traffic you need to see, then build the Security Onion grid and mirroring path to match that scope.

How we scope

  • We confirm which monitored VPCs, subnets and workloads the mirroring policy must cover before any build starts.
  • We agree the Security Onion VPC layout, keeping it separate from and non-overlapping with the monitored VPC.
  • We document machine types, persistent or local disk choices and the single-node or distributed design in a written scope.

How we build

  • We deploy the Security Onion nodes from the Google Cloud Marketplace image into your project and configure the internal TCP load balancer.
  • We create the packet mirroring policy using the so-mirror tag and verify that mirrored traffic reaches the sensor.
  • We configure SSO, access control and audit logging for the Security Onion Console as part of the agreed scope.

How we hand over

  • We test ingestion, alert generation and packet capture on the mirrored path and document the results for your team.
  • We deliver architecture notes, network diagrams, firewall and tag settings, and runbooks for node replacement and backups.
  • We walk your engineers through day-two tasks such as rule updates, upgrades and reviewing disk and cost usage in your project.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • We can plan Security Onion upgrades and cloud image changes against the end-of-life dates for your installed version.
  • Each engagement is fixed-scope, with deliverables and timelines agreed in writing before work starts, and a quote follows from that 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.