pfSense Router Guide
Flat isometric illustration of a rack box with glowing pink drive rows and a shield badge on a dark platform.
troubleshooting

pfSense Slow Speeds and Bufferbloat: Find the Bottleneck

A diagnostic order for slow pfSense throughput, from where to measure first to the network buffer, PPPoE and inspection settings that actually cap it.

By pfSense Router Guide Editorial · ·Updated · 14 min read

Slow pfSense throughput is rarely fixed by a faster CPU. Check, in order: packet size against packet rate, interface errors, mbuf exhaustion, a PPPoE WAN, inspection packages and stale limiter values. If the Mbps is fine but calls stall during big transfers, that is bufferbloat, and the fix is FQ_CODEL limiters set to the measured WAN speed.

A pfSense firewall that is slower than the link behind it is almost never slow for the reason people assume. The usual assumption is CPU, the usual first action is buying a faster machine, and the usual outcome is the same number on newer hardware. The documented causes cluster somewhere else entirely: network buffers, driver behaviour, link protocol, inspection settings and the shape of the traffic itself.

What follows is a diagnostic order. It is arranged by cost, cheapest first, and every step is meant to be finished before the next one starts. Skipping to the tuning section is how firewalls end up with a page of loader tunables that fix nothing.

All commands, menu paths, counters, tunables and defaults on this page come from the cited Netgate pfSense, OPNsense, ESnet iperf3, Bufferbloat.net and RFC 8290 documentation, checked on November 25, 2026. None of these procedures were run in a lab.

Decide what number you are trying to reproduce

Before touching a setting, write down three figures: the speed the link is provisioned at, the speed observed, and the traffic that was running when it was observed. If the third one is missing, the first two mean very little.

Netgate’s hardware sizing guidance explains the reason. Forwarding cost is charged per packet, not per bit, so the same hardware at the same packet rate delivers very different bandwidth depending on frame size. At an example rate of 500,000 packets per second, 64-byte frames yield 244 Mbps while 1500-byte frames yield 5.59 Gbps—roughly a 23x spread across the same table. The full four-row conversion is reproduced on the pfSense appliance sizer.

If large transfers reach the expected speed but small-packet traffic falls short, a packet-rate ceiling is one possibility. Compare the achieved packet rate across different frame sizes under comparable conditions. A repeatable plateau is a clue to weigh alongside the interface and resource checks below.

Run a pfSense bandwidth test to the firewall and through it

These are different measurements and they diagnose different things. A test terminating on the firewall exercises the firewall’s own network stack and its CPU as an endpoint. A test passing through the firewall between two other hosts exercises forwarding, filtering and state tracking, which is the path production traffic actually takes.

Run both, and note which one is short. If traffic through the firewall runs slower than traffic to it, check forwarding, filtering, shaping and inspection as possible causes. Check the additional firewall interface, network links and test host used by the through-path test as well. If both are slow, look at the interface, the driver and the link before anything else.

Then take the firewall out of the question entirely by testing the uplink from a host connected directly to it, where the network design allows. Nothing configured on a firewall improves a saturated or lossy upstream link. A surprising share of “pfSense is slow” cases end at a failing cable, a negotiated duplex mismatch or an upstream device doing a second layer of address translation.

Running the through-path test

Netgate’s iperf package documentation states that iperf running on pfSense is not a suitable way of testing firewall throughput, because traffic initiated or terminated on the firewall performs differently from traffic traversing it. Use the package for the to-firewall number, and iperf3 on hosts either side for the through-path:

  1. Start iperf3 -s on one host, such as a server on another VLAN. It listens on TCP 5201 by default, which a filtered segment must temporarily pass.
  2. From the other side, run iperf3 -c <server-ip> -t 30 (the default run is 10 seconds), then repeat with -R so the server sends, and with -P 4 for four parallel streams. Multiple streams can raise measured throughput when the test is CPU-limited, so check CPU load on the test hosts before interpreting the difference.
  3. For a single UDP stream, use -u and set the target bitrate with -b. The default UDP target is 1 Mbit/s per stream, so a default single-stream run does not test throughput above that rate.

For the internet path, use a test that reports latency under load, such as Waveform Bufferbloat Test or Cloudflare Speed Test from bufferbloat.net’s list. It screens for bufferbloat, covered below, in the same run.

Read the interface counters before changing settings

Open Status > Interfaces before changing any tuning setting. Netgate’s Interface Status documentation lists In/Out Packets, In/Out Packets (Pass), In/Out Packets (Block), In/Out Errors, Collisions and the negotiated Media speed and duplex (for example, 1000baseT <full-duplex>).

Interpret In/Out Errors carefully. Netgate notes that occasional errors are often not indicative of a problem, whereas a large or rapidly increasing count is cause for concern. Those errors can stem from physical hardware faults—most commonly cabling or port issues—or from packets lost because they could not be processed under high load. On supported cards, sysctl exposes finer error breakdowns, such as sysctl dev.ix.0.mac_stats on ix0.

Non-zero Collisions point more directly at the link layer. Netgate notes that collisions normally happen only on half-duplex networks (hubs rather than switches), so a non-zero count can mean the interface did not link at the proper duplex. Confirm the Media speed and duplex on both ends of the link, and replace suspect cables before tuning healthy drivers.

Check for network buffer exhaustion

Netgate’s hardware tuning guide calls mbuf exhaustion a common problem on commodity hardware, and its symptoms are easy to misread. mbufs are memory buffers reserved for moving network data. When the firewall runs out of them, heavy network loads can cause a kernel panic and reboot, and in some cases interfaces are not initialised or made available by the operating system at all.

The active count appears on the dashboard and is graphed under Status > Monitoring. From the shell, netstat -m shows whether any pool is near exhaustion. Netgate notes that this condition is more common with multi-queue NICs or cards optimised for performance over resource usage. Usage also increases when features such as Limiters are active.

The documented remedy is a loader tunable raising the cluster count:

kern.ipc.nmbclusters="1000000"

Netgate describes one million clusters as a safe starting point on 64-bit systems with several gigabytes of RAM. Netgate estimates that the pool would consume about 2.3 GB of physical memory at full allocation. Some cards also need a related value such as kern.ipc.nmbjumbop raised. Systems with little RAM should use a lower figure, and the value must not exceed available kernel memory.

Two operational notes apply. Loader tunable changes require a reboot to take effect. A firewall with 2 GB of RAM cannot accommodate the fully allocated one-million-cluster pool. The memory arithmetic behind that is in pfSense workload sizing for VPN, IDS and state tables.

If the WAN is PPPoE, this is probably the answer

PPPoE deserves its own check because the failure is structural rather than incidental. As Netgate explains in its hardware tuning documentation, multi-queue NICs assign traffic to queues by hashing. That hashing works well for IPv4 and IPv6 TCP and UDP traffic and fails for other protocols, PPPoE among them. The result is a card that under-performs with default settings, primarily affecting multi-core systems—precisely the machines bought to be fast.

Netgate’s first recommendation is not a tunable. It is to try the if_pppoe kernel module backend for PPPoE WANs, which Netgate describes as much faster and more efficient and capable of eliminating the need for further tuning. Try that before anything else.

Where tuning is still needed, the documented entry point is a System Tunable or Loader Tunable setting net.isr.dispatch=deferred, with net.isr.maxthreads and net.isr.numthreads as secondary adjustments. Those two are generally best left at their defaults, which match the CPU core count, though some workloads do better at lower values. Netgate warns that deferred dispatch has historically caused crashes and panics on 32-bit platforms, especially with ALTQ, while noting no recent reports.

Bisect the packages

Netgate’s hardware sizing guidance states plainly that features, services and packages lower total potential throughput because they consume resources that would otherwise transfer traffic. It singles out packages that intercept or inspect traffic, such as Snort and Suricata. How the two engines differ in what they cost is covered in Snort vs Suricata on pfSense.

So bisect. Disable inspection on one interface and repeat the through-path measurement from earlier. If the number moves, the question is no longer “why is the firewall slow” but “which rule categories and which interfaces are worth their cost”. Enabling every category on every interface is the configuration most likely to produce a firewall that was fast on the day it was built.

Traffic shaping belongs in the same check. Because pfSense limiters enforce a hard upper limit and cannot borrow bandwidth from other pipes, a stale bandwidth figure caps throughput silently. Confirm configured shaper and limiter numbers against the current link speed rather than the speed when the rules were written. The bufferbloat limiters below act as this kind of cap, so an ISP speed upgrade means remeasuring and updating both values.

Fix bufferbloat on pfSense with FQ_CODEL limiters

If the speed test passes but latency climbs whenever the line is busy, configure two limiters using the FQ_CODEL scheduler, set them to the measured WAN download and upload, and apply them with a floating WAN rule. Netgate’s recipe uses Tail Drop and ECN. It suggests 1000 as a starting queue length for most high-speed WANs. For very fast WANs, such as 1 Gbit/s or faster, consider increasing it to 3000–5000.

Bufferbloat is the undesirable latency that comes from network equipment buffering too much data, so it can hide behind a good Mbps figure. Bufferbloat.net’s remediation guide treats loaded latency below 15 to 25 ms as under control. pfSense limiters use dummynet rather than ALTQ, and FQ_CODEL pairs flow queueing with CoDel’s delay control. RFC 8290 sets its default target at 5 ms and interval at 100 ms; Netgate says to leave the FQ_CODEL options at their defaults.

The procedure, condensed from Netgate’s CoDel limiter recipe:

  1. Run a bufferbloat test from a LAN client on an otherwise idle line and record download, upload and grade. A circuit that already scores well may not need limiters.
  2. Under Firewall > Traffic Shaper, Limiters tab, click New Limiter and create WANDown with Enable checked, Bandwidth at the measured download, and Mask set to None. Set Queue Management Algorithm to Tail Drop and Scheduler to FQ_CODEL, and check ECN. Start with Queue Length 1000 for most high-speed WANs and consider raising it to 3000–5000 on very fast WANs. Save, then click Add New Queue under WANDown to create WANDownQ with Enable checked, Mask None and Tail Drop, and click Save.
  3. Repeat with WANUp at the measured upload and a WANUpQ queue, then click Apply Changes.
  4. Under Firewall > Rules, Floating tab, click Add (at the bottom) for a Pass rule: Quick checked, Interface WAN, Direction Out, Address Family IPv4, Protocol Any, Source WAN Address, Destination Any. Set Gateway to this WAN’s gateway and In / Out Pipe to WANUpQ / WANDownQ, then click Save.
  5. If the WAN carries IPv6, add a matching rule with Address Family IPv6 and LAN subnets as the Source, or the post-NAT address or prefix where the firewall performs NPt or outbound NAT.
  6. Click Apply Changes, reset states so existing traffic uses the new limiters, and retest. Netgate expects an A or higher in most cases.

Where the bufferbloat fix goes wrong

The pipe order looks inverted on purpose: pfSense names In and Out from the firewall’s own perspective, so on an outbound WAN floating rule In carries client uploads and Out carries downloads. Swapped pipes queue downloads at the upload rate, turning a latency fix into a slow-speed complaint.

If the grade does not improve, compare the settings with Netgate’s recipe. If they match, possible adjustments include lowering bandwidth values that exceed the circuit’s capacity, increasing queue sizes or adjusting CoDel parameters. Bufferbloat.net advises adjusting from the measured speeds until latency stays low while speed stays good. A multi-WAN firewall needs limiters and a floating rule per WAN, with sources that cannot match another WAN’s address, or traffic bound for a non-default WAN can be dropped. Limiters also add a small processing overhead and raise mbuf usage, and Netgate’s ALTQ scheduler notes say CoDel does not work well at 1 Mbit/s or less.

Driver-level tuning, last

Only when the checks above are clean is card-specific tuning worth the reboot. Netgate’s hardware tuning guide lists interrupt handling among the main candidates: a card selects MSI-X, then MSI, then classic interrupts, and either MSI-X or MSI can be disabled through loader tunables:

hw.pci.enable_msix="0"
hw.pci.enable_msi="0"

Disabling only MSI-X nudges the card toward MSI; disabling both nudges it toward classic interrupts. Netgate also documents TSO/LRO hardware offload settings, flow control behaviour and card-specific issues covering Broadcom, Chelsio, Intel and VMware interfaces, each with its own recommended values.

Change one thing, reboot, measure, and record the result. Tuning applied in batches cannot be attributed and cannot be undone with any confidence.

Where the tunables go on pfSense and OPNsense

On pfSense, runtime values go under System > Advanced, System Tunables tab. Loader tunables such as kern.ipc.nmbclusters and the MSI-X switches go in /boot/loader.conf.local, need a reboot, and are not saved in config.xml, so back that file up separately.

OPNsense keeps both kinds under System > Settings > Tunables, writing them to loader.conf and sysctl.conf; sysctl -a lists valid names. Its performance documentation also documents receive-side scaling (RSS) for testing throughput gains under high load:

TunableValueEffect
net.isr.bindthreads1Binds netisr threads to a CPU
net.isr.maxthreads-1Assigns a workstream to each available core
net.inet.rss.enabled1Enables RSS; boot-time only, reboot after changing
net.inet.rss.bits2, 3 or 4For 4-, 8- and 16-core systems

RSS is off by default to avoid regressions on NICs that implement it badly, and gives no benefit to Suricata in IPS mode, whose re-injection is limited to one thread. These RSS tunables come from OPNsense’s documentation; Netgate’s pfSense PPPoE guidance above leaves the net.isr thread counts at their defaults, so do not copy one list to the other wholesale.

When the answer is that the hardware is the answer

Some slow firewalls are correctly diagnosed as undersized. The tells are consistent: the through-path number tracks packet rate rather than bandwidth, the CPU is saturated during the test, and the shortfall scales with inspection or encryption load rather than appearing at idle.

Netgate’s hardware sizing guidance on where to spend is unambiguous. Inexpensive, low-end cards consume significantly more CPU than better-quality cards such as Intel, and the first bottleneck is the CPU. Throughput improves significantly when a better card is paired with a slower processor, while a faster processor paired with a low-quality card does not deliver a proportional gain.

Which component each workload actually stresses is covered in pfSense workload sizing for routing, VPN and IDS. The pfSense throughput and state-table sizer converts a target link speed, state count and inspection level into memory estimates and planning tiers.

If replacement hardware is on the table, the edition running on it is a separate and much smaller question, covered in pfSense CE versus pfSense Plus.

The checklist, in order

Establish the target number and the traffic shape. Measure to the firewall and through it. Check Status > Interfaces for high or rising In/Out Errors, non-zero Collisions and duplex mismatches. Check mbuf usage and raise the cluster count if it is near exhaustion, within the memory available. Switch a PPPoE WAN to the if_pppoe backend before tuning anything. Disable inspection on one interface and re-measure. Verify shaper and limiter values against the current link speed. If latency rather than Mbps is the complaint, add FQ_CODEL limiters at the measured WAN rates. Only then change driver tunables, one at a time, with a reboot and a measurement between each.

FAQ

What bufferbloat grade should pfSense get?

Netgate expects a grade of A or higher in most cases after configuring the download and upload limiters and the floating WAN rule. If the grade does not improve, check the settings against the recipe. Then consider lowering bandwidth values that exceed the circuit’s capacity, increasing queue sizes or adjusting CoDel parameters.

How do you run a bandwidth test on pfSense?

Run iperf3 between two hosts on opposite sides of the firewall, not on the firewall itself. Netgate says iperf running on pfSense is not a suitable way of testing firewall throughput, so keep its iperf package for host-to-firewall checks and use a latency-aware speed test such as Waveform’s for the internet path.

What is the default pfSense console speed?

The default pfSense serial console speed is 115200 bps, and Netgate’s Admin Access documentation says almost all hardware works well at that rate. It is set under System > Advanced, Admin Access tab, under Serial Communications, where upgrades from older versions may still show 9600 or 38400 to match an older BIOS. A serial console speed change takes effect after reboot.

Where are tunables in OPNsense?

OPNsense tunables live under System > Settings > Tunables, where new entries can be created, and OPNsense writes them to loader.conf and sysctl.conf. Run sysctl -a in a shell to list valid names. Boot-time values such as net.inet.rss.enabled only take effect after a reboot, so schedule the change for a maintenance window.

Sources

  1. Hardware Tuning and Troubleshooting - pfSense Documentation
  2. Hardware Sizing Guidance - pfSense Documentation
  3. Interface Status - pfSense Documentation
  4. Configuring CoDel Limiters for Bufferbloat - pfSense Documentation
  5. Limiters - pfSense Documentation
  6. ALTQ Scheduler Types - pfSense Documentation
  7. iperf package - pfSense Documentation
  8. System Tunables - pfSense Documentation
  9. Admin Access - pfSense Documentation
  10. Invoking iperf3 - ESnet
  11. Introduction - Bufferbloat.net
  12. What Can I Do About Bufferbloat? - Bufferbloat.net
  13. RFC 8290: The Flow Queue CoDel Packet Scheduler and Active Queue Management Algorithm
  14. Settings - OPNsense Documentation
  15. Performance - OPNsense Documentation

Related