Scenario
You operate an OPNsense firewall with two WAN links. ISP-A goes down (upstream confirmed). Users on the LAN report they cannot reach the Internet. The OPNsense GUI shows ISP-A’s gateway as down in the gateway group, but traffic is still being sent out the ISP-A interface.
Available evidence:
- ISP-A physical link is down (cable unplugged or upstream router down).
- apinger output: 100% loss to ISP-A’s gateway monitor IP.
- pfctl -s state: states are still being created on the WAN-A interface.
- Gateway group status: ISP-A gateway marked down, ISP-B gateway up.
- The gateway group policy should be: traffic goes to ISP-B when ISP-A is down.
Multi-WAN failover does not occur
Symptoms
- One WAN link is down (physical or upstream)
- Gateway monitor reports the failed WAN as down
- Firewall does NOT fail over to the other WAN
- LAN hosts cannot reach the Internet
Available evidence
- apinger output: 100% packet loss to the failed gateway monitor IP
- pfctl -s state: traffic still on the failed WAN interface
- Gateway group status: failed gateway is down
- No failover-related events in firewall logs
Show diagnosis & remediation
Root cause
The firewall rules on the LAN interface (and any other interface that should use multi-WAN) do not reference the gateway group. Without the gateway group reference, the firewall uses the default gateway, which is the failed WAN.
Safe remediation
Edit the rules to reference the gateway group as the gateway. Apply. Validate. Audit other rules.
Verification
When the failed WAN is unplugged, traffic flows over the healthy WAN. The gateway group policy applies.
Prevention
Audit every rule that should use the gateway group. Document the reference in the rule description. Quarterly review.