UPGRD
← Home

Networking

Building a Multi-Gigabit Firewall: Why CPU Specifications Are Not Enough

A firewall’s advertised gigabits per second say little about what it can inspect. Packet rate, drivers, queue handling and enabled security features all matter.

Home · · 5 min read · Updated November 26, 2026
  • OPNsense
  • Firewall
  • Suricata
  • IDS
  • IPS
  • NIC
  • Networking
Firewall packet-processing diagram with NIC queues, inspection stages and a security boundary.

Quick summary

A firewall’s advertised gigabits per second say little about what it can inspect. Packet rate, drivers, queue handling and enabled security features all matter.

A CPU datasheet is not a firewall benchmark. At multi-gigabit rates, the appliance must receive packets, classify connections, apply rules, maintain state, route or translate traffic, and possibly inspect payloads. Whether it does so at line rate depends on packet size and mix, NIC behavior, driver support, queue distribution, enabled features and the latency you consider acceptable.

Bandwidth hides packet rate

Large frames make a given bit rate easier to process than a stream of minimum-sized Ethernet frames. As a theoretical illustration, 10 Gb/s divided by 84 bytes per minimum Ethernet frame time yields about 14.88 million packets per second. The 84-byte wire-time accounting includes the 64-byte minimum Ethernet frame, 8 bytes of preamble/SFD, and 12 bytes of inter-frame gap. This is a line-rate arithmetic ceiling, not a prediction for a particular firewall: packet format, link encapsulation, full-duplex direction, measurement point and implementation matter.

Small packets increase per-packet work: state lookups, rule evaluation, interrupts or polling, and transitions through the network stack. A firewall that handles high throughput on large transfers may struggle with many short packets or new connections. Record both bit rate and packets per second, plus connection churn, concurrent states and latency percentiles.

The path through the hardware matters

NIC model and driver support are operational requirements, not peripheral trivia. Check OPNsense’s supported platform guidance and the actual FreeBSD driver behavior for the NIC and release you plan to run. Advertised hardware offloads can reduce CPU load in some paths, but inspect their support and interactions with firewalling, capture and intrusion prevention rather than assuming that every offload should be enabled. RSS can distribute receive processing across cores when supported and configured, but distribution and workload parallelism determine whether extra cores help.

Inspect PCIe link width and generation, slot wiring, shared lanes and bus topology. Multiple ports can contend for an uplink or chipset path; a fast NIC in a constrained slot is not necessarily capable of sustained aggregate traffic. Queue counts and interrupt affinity matter too. More cores do not automatically help a packet-processing path that is serialized, poorly distributed or limited by a single queue.

Inspection changes the sizing problem

Routing and stateful firewalling alone are not equivalent to IDS/IPS inspection. Suricata’s enabled rules, protocol parsing, stream reassembly, logging and inline blocking impose work beyond basic forwarding. OPNsense documents IPS setup and performance considerations; Suricata’s own high-performance guidance discusses NICs, drivers and tuning. The practical outcome depends on rule set, traffic mix, encryption visibility and the specific software versions. Do not transfer a vendor’s simple routing result to an inspected traffic path. Operating-system boundaries matter too: Linux PSI can describe contention on Linux hosts or adjacent services, but it is not an OPNsense/FreeBSD firewall metric; see how Linux PSI measures resource stalls.

Encryption also bounds what payload inspection can see. A firewall without decryption cannot inspect the plaintext contents of encrypted sessions, though it may still analyze metadata and protocol behavior. Decryption changes the architecture, trust model and resource requirements substantially; it should not be silently assumed in a performance estimate.

Benchmark the intended job

Build a test matrix around the actual deployment: realistic packet sizes, directions, VLANs, NAT, rules, state table, connection rates and enabled IDS/IPS policy. Measure throughput, packet loss, CPU per core, memory, interface errors and latency under load. Include latency at low load and saturation; a high throughput number obtained with unacceptable tail latency is not an operational success. Separate established flows from new-connection tests and document whether results include logging or inspection.

Use a traffic generator and a second endpoint capable of sustaining the test. Verify both sides are not the bottleneck. Test the exact NICs, firmware, OPNsense/FreeBSD version and configuration intended for production. Repeat with one variable changed at a time, preserve the same rules and datasets, and monitor queues, interrupts and packet drops. A generic online benchmark without methodology cannot answer whether a particular appliance will meet a specific site’s demand.

Start with OPNsense hardware sizing and setup, its performance notes on topics such as RSS, and its intrusion-prevention documentation. Pair them with Suricata high-performance configuration guidance. Choose a CPU after defining the packet-processing job; the model name alone cannot represent the whole system path.

Know what your test excludes

A throughput test that bypasses Suricata, omits production rules or uses one established flow measures a narrower task than an operating security gateway. IDS-mode capture is not interchangeable with inline IPS, where packets pass through inspection and can be dropped. Record mode, rule set, logging volume, interface layout and traffic generator settings. Rule updates can change processing cost, so repeat measurements after material policy changes rather than treating capacity as permanent.

Offload settings deserve controlled experiments. Checksum and segmentation offloads can alter where work occurs and how packets appear to capture tools; disabling an offload may help diagnose capture behavior but also increase CPU load. Examine per-interface errors, drops and queue statistics beside total CPU. A low average can conceal one saturated core or an overloaded receive queue.

Plan reserve capacity for bursts, updates, logging and future policy, not just average traffic. Redundant links, VPN encryption, shaping, DNS filtering and large state tables may add work. Failover can concentrate traffic on one unit. Document features enabled during acceptance testing so administrators can compare the live configuration with the tested one; otherwise later changes can invalidate the original result.

References

OPNsense: Hardware sizing & setup
OPNsense: Performance
OPNsense: Intrusion Prevention System
Suricata: High Performance Configuration