OPNsense Router
Router & Firewall Hardware Engineering

OPNsense State Table Sizer

Calculate pf state table RAM allocation, Suricata threat detection overhead, and WAN interface throughput for OPNsense appliances.

State Table RAM Usage
488 MB
Recommended System RAM
8 GB
Min CPU Cores Required
4 Cores

How this is calculated

  • State table memory uses the figure published in the OPNsense hardware sizing documentation: roughly 1 kB per state entry, so 1,000 tracked connections occupy about 1 MB.
  • A 2 GB allowance is added for the base system, and the ruleset selector adds the approximate resident footprint of an intrusion detection engine at that scale.
  • The total gets 25% headroom and is rounded up to a standard memory size of 4, 8, 16, 32 or 64 GB. The smallest step, 4 GB, is the tier the documentation describes as reasonable for every standard feature to be functional.
  • Core count steps up with WAN speed, active tunnel count and ruleset size, because those are the three workloads that scale past a single core. Any enabled ruleset at 1,000 Mbps or more calls for four cores: the hardware guide's 4-core Deciso DEC697 is rated at about 541 Mbps with intrusion prevention.

This is a planning estimate built from published sizing guidance, not a measurement of a specific machine. Size with headroom.

Read next