Scenario
You are operating an OPNsense edge with traffic anomalies on one interface. The following symptoms appear:
- Throughput on one interface is below expected; latency is high
netstat -I <iface>shows a growing input error or drop counter- Ping works but bulk transfers are slow
Available evidence:
netstat -I ix0:input errors 12480, drops 3200ifconfig ix0media: 1000baseT full-duplex(but peer reports1000baseT half-duplex)tcpdump -ni ix0shows fragmented or undersized frames
Your task
Determine the cause, recover, document, and validate.
Investigation
The investigation follows the discipline taught in Part XXXVI:
- Form hypothesis, find evidence, test, validate.
- Use the available evidence above to bound the search.
- Reach one of the likely root causes.
Recovery procedure
(Do not reveal until you have reasoned through the problem.)
- Identify the failing component.
- Apply the remediation pathway.
- Validate with the verification step.
- Document the incident.
Remediation
- On the firewall:
ifconfig <iface> media 1000baseT mediaopt full-duplexto force full-duplex, or hard-set the peer switch port to match. 2. Replace the cable or SFP and re-test. 3. If the driver supports it, raise the ring buffer (e.g.hw.ix.max_rx_ring=4096vialoader.conf.local). 4. Capture on the interface to look for CRC errors and runt frames.
Verification
netstat -I <iface> shows zero input errors and drops under load; throughput matches the expected budget; ping latency is stable.
Rollback
Restore auto-negotiation if needed; revert ring-buffer changes via loader.
Prevention
Disable auto-negotiation on firewall-facing switch ports and hard-set 1000/full or 10000/full. Document the agreed media/speed/duplex per port. Monitor per-interface input errors and drops in your observability stack — even a small CRC rate is the early signal of a failing cable or SFP.