Networking

Best 5G Failover Routers and Gateways for Dual-WAN Backup

This post contains affiliate links. If you buy through them, we may earn a small commission at no extra cost to you. Learn more.

One cut fiber line takes down a homelab’s VPN, remote Home Assistant and the alert that would have told you about it. A 5G failover router on a second WAN port fixes that. What decides the pick isn’t peak speed: it’s whether the box hands your firewall the carrier IP, whether it takes external antennas, and whether it can run dual WAN on its own when you do not have OPNsense at all.

Original content from computingforgeeks.com - post 176344

We rechecked every pick against maker datasheets, vendor forums and live Amazon US listings on December 1, 2026, after two of our October picks went out of stock, and the failover timings come from the OPNsense 26.7.7 lab we built in October. That gives seven gateways sorted by the job each does best, a comparison table, and the failover and failback times you get with default and tuned monitoring.

The short list by use case

Every 5G pick covers the US low band that rural and indoor coverage depends on (T-Mobile n71), and both LTE picks carry band 71. We sorted them by the job they do best, starting with the box that gets out of the firewall’s way:

  • Backup behind the router you already run, Teltonika RUTM50: dual-SIM 5G with a Passthrough mode in the web UI, four external antenna ports and AT&T, FirstNet, T-Mobile and Verizon certification. About $570 to $630.
  • All-in-one 5G router, D-Link G530: Wi-Fi 6 and built-in failover between a cable or fiber modem and 5G, for a house with no separate firewall. About $370 to $410.
  • Prosumer dual-WAN, Peplink B One 5G: two Ethernet WANs plus 5G in one box, SMA antenna ports and FirstNet certification. About $670 to $730.
  • Travel and RV, GL.iNet Mudi 7 (GL-E5800): a battery 5G hotspot with Wi-Fi 7, a 2.5 GbE port, two SIM slots plus eSIM and two antenna jacks. About $340 to $375.
  • Cheapest reliable backup, Teltonika RUT241: LTE Cat 4 with the same RutOS Passthrough menu as the RUTM50, for a line that only has to carry you through an outage. About $190 to $220.
  • Budget all-in-one LTE, GL.iNet Spitz Plus (GL-X2000): LTE Cat 12, Wi-Fi 6, dual SIM and detachable antennas, with multi-WAN failover in the GL.iNet UI. About $165 to $190.
  • DIY modem, Waveshare RM520N-GL 5G to Gigabit Ethernet kit: a bare 5G modem that dials the carrier itself and passes the IP to OPNsense over Ethernet, set up with AT commands. About $340 to $370.

Prices move weekly, so treat the ranges as where they sat on the check date. Teltonika has no Amazon storefront: the RUTM50 and RUT241 we link are sold by SolidSignal. Amazon itself sells the D-Link and had few left, 5Gstore sells the Peplink, GL Technologies (GL.iNet’s own account) sells both GL.iNet boxes, and Waveshare sells its kit.

Comparing 5G gateways with Ethernet failover and external antennas

These are the columns that change the decision for a backup line. Throughput is not here, because the cellular link is the bottleneck on every box except the RUT241, whose 100 Mbps ports are covered in its section:

RouterBest forRadio and low bandCarrier IP to OPNsenseEthernetExternal antennaPrice band
Teltonika RUTM50WAN2 behind a firewall5G Sub-6, n71Web UI: Mode Passthrough5 x 1 GbE4 x SMA cellular$570 to $630
D-Link G530One box for the whole house5G Sub-6, n71Not documented (DMZ only)1 GbE WAN, 1 GbE LANNone, 4 internal$370 to $410
Peplink B One 5GDual-WAN plus 5G5G Sub-6, n71IP Passthrough on the cellular WAN (documented)2 WAN, 4 LAN, all 1 GbE4 x SMA cellular$670 to $730
GL.iNet Mudi 7Travel, RV, no UPS5G Sub-6, n71Not yet (on GL.iNet’s roadmap)1 x 2.5 GbE2 x TS-9$340 to $375
Teltonika RUT241Cheap OPNsense backupLTE Cat 4, B71Web UI: Mode Passthrough2 x 100 Mbps2 x SMA LTE$190 to $220
GL.iNet Spitz PlusBudget all-in-oneLTE Cat 12, B71No GUI option1 GbE WAN, 1 GbE LAN2 x SMA cellular$165 to $190
Waveshare 5G ETH kitDIY modem5G Sub-6, n71AT commands (Quectel IPPT)1 x RTL8125, sold as Gigabit4 included antennas$340 to $370

None of the seven does mmWave, which does not matter for a fixed backup line indoors. Two columns matter more. Passthrough decides whether OPNsense sees the real carrier link or sits behind a second NAT, and only the two Teltonika routers and the Peplink document it as a setting. External antenna ports decide whether a gateway in a basement rack can reach a tower at all, and that’s where the D-Link loses to everything else here.

How we picked and what we tested

Our failover numbers come from a lab, and the product specs come from paper. We never had a SIM in any of these routers, so radio behaviour, cell handover and carrier idle timers are outside what we measured. What we did measure is identical whichever box you buy. That covers how OPNsense notices the fiber is gone, how long new connections take to reach the 5G WAN, and what happens to sessions already open.

  • Firewall: OPNsense in a nested VM with three virtio NICs (LAN, fiber WAN, 5G WAN), started on the release image and updated to the current point release halfway through, with no change in the timings. The screenshots are from the release image, before that update.
  • Fiber ISP: a Linux network namespace with a static RFC 5737 address and about 10 ms to the monitor IP.
  • 5G link: a second namespace handing out a 100.64.10.x address by DHCP, the way a router in passthrough mode hands out a carrier CGNAT address, with 45 ms of netem delay and 10 ms of jitter, which put the monitor at 52 to 60 ms.
  • Client: a LAN host firing a fresh HTTP request every 0.25 s with a 1 s timeout, holding an SSH session, a 200 ms ping and a fixed-port UDP flow, so new and existing connections could be timed separately.

Every router spec comes from the maker’s datasheet or wiki, checked against the carrier certification page where one exists, and seller, stock and price come from the live Amazon listing. Some candidates did not make it. The GL.iNet Spitz AX (GL-X3000), our October value pick, was out of stock on Amazon on the check date. The only UniFi 5G Max listing was a used unit. The Teltonika RUTX50 has no n71 on the US codes, and the Netgear Nighthawk M7 has no built-in Ethernet port.

The failover layout with OPNsense in charge

With a firewall in the rack, OPNsense stays the router for the whole house and the cellular box is demoted to a modem. In passthrough mode the 5G router gives its carrier address to the device on its LAN port by DHCP. OPNsense then sees a plain DHCP WAN and owns NAT, firewall rules and VPNs on both lines:

Diagram of OPNsense with a fiber ONT on Tier 1 and a 5G router in passthrough on Tier 2 of one gateway group, both reaching the internet
One gateway group sends LAN traffic to fiber and moves new connections to the 5G router when the fiber monitor fails.

The alternative is router mode, where the 5G box runs its own NAT and OPNsense sits behind it. Outbound failover still works that way, and GL.iNet staff say as much for their routers. You pay with double NAT on the backup line, though: inbound port forwards stop working and anything that needs a reachable address on WAN2 breaks. Most carriers put you behind CGNAT anyway, so the bigger win from passthrough is a firewall that sees the real link state and one NAT layer to debug at 2 a.m.

Without a firewall, the cellular box becomes the router and does the failover itself. The D-Link, the Peplink and both GL.iNet boxes take the cable or fiber modem on their Ethernet WAN and move to cellular when it fails. That’s simpler to run, and the lab half of this guide then becomes a checklist for what to look for in their failover settings.

Teltonika RUTM50 for a 5G line you can trust

The RUTM50 is the pick when the cellular line has to carry real traffic behind a firewall you already run.

Teltonika RUTM50 dual SIM 5G router
Teltonika RUTM50, North America code RUTM50000000. About $570 to $630. Image: Teltonika.

Check the RUTM50 price on Amazon

We’d put the RUTM50 in a rack and stop thinking about it. It runs a Quectel RG520N-NA on a Qualcomm SDX62 and covers n41, n71 and n77 on the North America code. Teltonika lists AT&T, FirstNet, T-Mobile and Verizon certification, and T-Mobile’s IoT page rates it 3 of 3. Passthrough lives under Network, WAN, the mobile interface, General Settings, Mode. A MAC field there pins the carrier address to the OPNsense WAN port, as the Teltonika WAN page shows.

  • Two SIM slots: a second carrier for a failover inside the failover, which is the only way to survive one carrier’s regional outage.
  • Antennas: four SMA cellular connectors, two RP-SMA Wi-Fi and one GNSS, so a roof or window antenna is a cable swap away.
  • Five gigabit ports: one WAN, which can become a LAN port, and four LAN, so the router can also sit on a management VLAN without a switch.
  • Power: 9 to 50 V DC plus passive PoE in on LAN1, 5 W idle and 18 W maximum by the datasheet. The PoE is not 802.3af or at, so a standard PoE switch will not power it.

Skip it if the line will only ever be a slow emergency path, because LTE does that job at a third of the price. If you want an eSIM as well, the Teltonika RUTM54 adds one beside two SIM slots, swaps the modem for a Telit FN990A28 and keeps the same RutOS Passthrough menu, at about $730 to $790 from a third-party seller.

The G530 is for a house that wants 5G failover without a separate firewall.

D-Link G530 5G NR AX3000 Wi-Fi 6 router
D-Link G530 5G NR AX3000 router, US model. About $370 to $410. Image: D-Link.

Check the G530 price on Amazon

D-Link’s North America datasheet lists 5G NR in SA and NSA modes with n41, n71 and n77, Wi-Fi 6 at AX3000, and one gigabit WAN plus one gigabit LAN. Its failover page checks the wired line with ICMP and DNS probes against target hosts you choose, with timeout, retry and interval fields, and moves to 5G when they fail. The datasheet lists AT&T and Verizon certification, T-Mobile’s IoT page rates it 3 of 3, and Amazon sells it directly.

That’s the right shape for a family that wants one router with a SIM slot. It is the wrong shape for OPNsense, because the manual shows only Router and Mobile Router modes plus a DMZ host, with no passthrough or bridge. Behind it, OPNsense gets a private address and double NAT on the backup line. The four antennas are internal, there’s one SIM slot and no eSIM, so a weak indoor signal stays a weak signal.

The B One 5G is the dual-WAN router with 5G built in for anyone who already pays for two wired lines.

Peplink B One 5G dual-WAN router front panel
Peplink B One 5G with Wi-Fi 6 and SMA antenna ports. About $670 to $730. Image: Peplink.

Check the B One 5G price on Amazon

Peplink’s datasheet gives it two gigabit WANs, four gigabit LANs, a USB-C port that works as a third WAN, and a Sub-6 5G modem with n41, n71 and n77. It has four SMA cellular connectors with antennas in the box, two nano-SIM slots plus an eSIM with one active at a time, and AT&T, T-Mobile, Verizon and FirstNet certification. Draw is 7 W nominal and 19 W maximum from a 12 V adapter.

  • Licensing: the first year of PrimeCare is included, and Peplink’s FAQ ties hot failover, smoothing and bonding to it. Budget for the renewal or you are left with plain failover.
  • Passthrough: Peplink’s spec sheet lists IP Passthrough, and the B One manual puts the option on the cellular WAN connection, where the router hands the carrier address to one LAN device over DHCP with a short lease. Point that device at the OPNsense WAN port and pull a cable once to watch it renew.

Buy it when the B One itself will be the edge router and you want load balancing across a fiber line, a cable line and 5G without building anything. If OPNsense already owns the edge, you’re paying for a second dual-WAN engine you will not use, and the RUTM50 is the cleaner modem for less.

GL.iNet Mudi 7 for travel and the RV

The Mudi 7 is the portable pick, and the one to buy when the backup cannot sit on a UPS.

GL.iNet GL-E5800 Mudi 7 portable 5G router with touchscreen
GL.iNet GL-E5800 Mudi 7, North America version. About $340 to $375. Image: GL.iNet.

Check the Mudi 7 price on Amazon

GL.iNet’s spec page lists a Qualcomm X72 platform with n41, n71 and n77 on the NA model, tri-band Wi-Fi 7, one 2.5 GbE port that works as WAN or LAN, two nano-SIM slots plus an eSIM, and a 5150 mAh battery rated for 13.5 hours. Two TS-9 jacks take an external antenna, which is rare on a hotspot this size. The multi-WAN page fails over between cellular, Ethernet, a Wi-Fi repeater and two kinds of USB link.

It will not hand OPNsense the carrier IP yet. GL.iNet staff said in April that passthrough was not supported, and in July said they plan to add it in a later firmware, with no date. One owner also found IKEv2 clients behind it could not connect over the cellular WAN until they set Network, Network Acceleration, Mode to Software, because the hardware offload was dropping the replies. Use it as a router in the RV, or as a double-NAT WAN2 at home.

Teltonika RUT241 as the cheap LTE backup

The RUT241 is the budget route behind a firewall when LTE speed is enough for a backup path.

Teltonika RUT241 LTE router
Teltonika RUT241 (render shows the eSIM label; the RUT241098000 sold here is the physical-SIM North America code). About $190 to $220. Image: Teltonika.

Check the RUT241 price on Amazon

A backup line has one job, and the RUT241 does it for a third of the RUTM50’s price. It is LTE Cat 4, rated 150 Mbps down and 50 Mbps up, on the North America code RUT241098000 with bands 2, 4, 5, 12, 13, 14, 66 and 71. It shares the RUTM50’s Passthrough menu, so OPNsense gets the carrier address the same way. Its two Ethernet ports are 100 Mbps, so on a strong signal the port caps the line before the radio does.

Two SMA connectors take external LTE antennas, and power is 9 to 30 V DC or passive PoE on LAN1, again not 802.3af. One owner on the Teltonika forum reported heavy ICMP loss on the gateway monitor while the RUT241 sat idle in passthrough as a backup WAN, with no public fix. Watch the Loss column on the OPNsense gateway page for a day after setup, because a monitor that reads loss on an idle LTE line will flap your failover.

GL.iNet Spitz Plus as the budget all-in-one

The Spitz Plus is the cheapest box here that’s a whole router, not a modem.

GL.iNet GL-X2000 Spitz Plus LTE router with four external antennas
GL.iNet GL-X2000 Spitz Plus, North America version. About $165 to $190. Image: GL.iNet.

Check the Spitz Plus price on Amazon

GL.iNet’s page lists a Quectel EG120K-NA, LTE Cat 12, with bands 71 and 41, Wi-Fi 6, a gigabit WAN and LAN, two nano-SIM slots and T-Mobile and AT&T IoT certification. Two SMA cellular connectors take detachable antennas, and the 12 V input accepts anything from 9 to 36 V. Its multi-WAN page fails over or load-balances between Ethernet, a repeater, cellular and tethering, which is all a small house needs.

We found no GUI passthrough for it, so treat it as a router, not an OPNsense modem. One owner on GL.iNet’s forum reported the modem never redialing after the carrier dropped the bearer, on the non-US EA module with Telstra in Australia, so watch it after the first outage. GL.iNet also disclosed malware on some routers enrolled in GoodCloud remote management on November 20, 2026. Leave GoodCloud off on both GL.iNet picks unless you need it.

Waveshare RM520N-GL kit for a DIY modem

Waveshare’s kit is the bare-bones route for anyone who wants only the modem.

Waveshare RM520N-GL 5G M.2 to Gigabit Ethernet kit
Waveshare RM520N-GL 5G M.2 to Gigabit Ethernet kit with four antennas. About $340 to $370. Image: Waveshare.

Check the Waveshare kit price on Amazon

Waveshare’s kit is a Quectel RM520N-GL on a carrier board with a Realtek RTL8125 Ethernet chip, a metal case and four antennas. There is no web interface. The modem dials the carrier itself and, once set to Quectel’s IP passthrough mode, hands the carrier IP to whatever plugs into the RJ45 port. You send AT commands from a PC over the kit’s USB 3.1 port. Waveshare’s wiki sets up passthrough with these commands, which we took from the wiki and did not run ourselves:

AT+QCFG="data_interface",1,0
AT+QCFG="pcie/mode",1
AT+QETH="eth_driver","r8125"
AT+QMAPWAC=1
at+qmap="mpdn_rule",0,1,0,1,1,"FF:FF:FF:FF:FF:FF"
AT+CFUN=1,1

The last command reboots the modem, after which OPNsense should pull an address by DHCP on the port facing the kit. If your SIM needs an APN, the wiki sets it first with AT+CGDCONT. RM520N-GL owners on the Quectel forum run IP passthrough behind pfSense, and one reported “duplicate echo reply received” messages from the gateway monitor, which is worth recognising before you go chasing it.

  • One port at a time: the modem serves either Ethernet or USB, not both.
  • Power: 9 to 12 V through the DC jack with a 12 V adapter in the box, or 5 V over USB. Order the listing with the RM520N-GL in the title, because Waveshare also sells the bare carrier board without a modem.
  • Certification: the module carries Verizon and AT&T approval, but the assembled kit is not certified as a unit, which matters if a carrier ever asks what is on its network.

It is the wrong box if you want dual SIM or a UI you can hand to someone else at the house. Buy it if you’d rather own every layer and do not mind a serial terminal. Inseego’s Wavemaker FX3100 also has a passthrough toggle under Advanced, LAN, IP Passthrough, but its only Amazon listing is still a third-party seller that does not name the carrier SKU, and the SKU decides the band set.

How fast OPNsense fails over to the 5G line

With default gateway monitoring, new connections reached the 5G WAN 15 to 20 seconds after the fiber died, and traffic went back to fiber about 49 seconds after it recovered. Five upstream-outage runs on two point releases landed in that window every time, and the tuned and loss runs moved it in predictable ways:

SetupFailureNew connections on 5GFailed 1 s requestsBack on fiber
Defaults, Member Down (5 runs)ISP outage, link up, 65 to 99 s15.4 to 19.5 s12 to 1548.7 to 49.4 s
Defaults, Member DownCable pulled, 70 s17.8 s133.8 s
Tuned fiber monitor: Time Period 10 s, Loss Interval 2 sISP outage, link up, 74 s5.4 s49.2 s
Member Down15% random loss, 110 sNever43n/a
Packet Loss trigger25% random loss, 148 s32.7 s, stayed on 5G1640.8 s
Member Down25% random loss, 151 s48.3 s, flapped 4 times450.3 s

Switching itself is not the slow part. OPNsense compiles the gateway group into a pf rule with route-to pointing at the active tier, so failing over means reloading the ruleset. The wait is dpinger, the monitor, which averages packet loss over a 60 second window and calls a gateway down when that average crosses 20% or latency passes the 500 ms high threshold. In the default run, the fiber went from Online to loss 11 seconds into the outage and to down at 16 seconds, at 21% averaged loss.

OPNsense System Gateways Configuration page showing WAN1_GW at 45 percent loss and WAN2_DHCP online at 57.9 ms
Mid-outage: the fiber gateway at 45% loss and marked down, the 5G gateway online at 57.9 ms.

Failback is slower for the same reason. After the fiber came back, the 60 second window still held the outage, so the gateway sat in down until the average drained below 20% at about 48 seconds. The cable-pull run is the exception. When the port lost carrier, OPNsense restarted dpinger on link up with an empty window, so fiber was back in 3.8 seconds. Real outages usually look like the first row, with the ONT still lit and the ISP dead behind it.

Tuning the gateway monitor

Shortening the window on the fiber gateway is the one change that matters. We set Time Period to 10 seconds and Loss Interval to 2 seconds on the fiber gateway only and left the 5G gateway at defaults. Failover dropped to 5.4 seconds with 4 failed requests, and failback to 9.2 seconds:

OPNsense Edit Gateway dialog for WAN1_GW with priority 10, Failover States ticked and Monitor IP 9.9.9.9
The fiber gateway: priority 10, Failover States ticked and a dedicated monitor IP. The monitor timing fields are further down in advanced mode.

You can confirm the new values took effect by reading the dpinger command lines from the OPNsense shell:

ps ax | grep [d]pinger

The fiber monitor now runs with -l 2s -t 10s, while the 5G monitor keeps the default -l 4s -t 60s:

75612  -  Is    0:00.01 /usr/local/bin/dpinger -f -S -r 0 -i WAN1_GW -B 198.51.100.2 -p /var/run/dpinger_WAN1_GW.pid -u /var/run/dpinger_WAN1_GW.sock -s 1s -l 2s -t 10s -d 1 9.9.9.9
76504  -  Is    0:00.01 /usr/local/bin/dpinger -f -S -r 0 -i WAN2_DHCP -B 100.64.10.58 -p /var/run/dpinger_WAN2_DHCP.pid -u /var/run/dpinger_WAN2_DHCP.sock -s 1s -l 4s -t 60s -d 1 1.0.0.1

A 10 second window reacts to a short burst of loss as readily as to a real outage, so it fits a primary line that is normally clean. On a fiber or cable line that drops a few percent at peak hours, keep a longer window and accept the slower switch, because every flap moves traffic onto a metered SIM and back.

Member Down or Packet Loss for a cellular backup

The Trigger Level on the group decides what counts as failure, and it is really a cost decision. In the current release the options read Member Down, Packet Loss, High Latency, and Packet Loss and High Latency, which is not quite what the docs list. The two we tested behaved like this on a degraded fiber line rather than a dead one:

  • Member Down at 15% loss: never failed over. The fiber sat in the loss state for about 65 seconds of the 110 second impairment, never reached down, and the LAN lived with it.
  • Member Down at 25% loss: failed over after 48 seconds, then flapped between fiber and 5G four times during the 151 second impairment as the average crossed 20% in both directions.
  • Packet Loss at 25% loss: moved to 5G after 32.7 seconds once the average passed the 10% low threshold, and stayed there for the whole impairment.
  • Packet Loss at 15% loss: took almost two minutes and flapped, because the measured loss wandered between 3% and 16% around the threshold.

So Packet Loss gives the better experience on a sick primary line, at the price of sending more of your traffic over the SIM. On an unlimited plan we’d pick Packet Loss. On a capped data plan we’d keep Member Down and accept a bad hour on degraded fiber over a surprise bill. Either way, do not set the thresholds right at the loss level you expect, because that’s where both triggers flap.

What happens to SSH, VPNs and long-lived flows

Failover only moves new connections. A connection that already has a pf state stays on the gateway it started on, which is why the ping in our lab got zero replies through every default outage. Two per-gateway options change that, and both did exactly what their help text says:

  • Failover States, on the fiber gateway: kills that gateway’s states when it goes down so clients reconnect over 5G. Without it, an SSH session with no client keepalive froze for the whole 93 second outage and resumed when fiber returned; with it, the session was cut and had to reconnect. A client with ServerAliveInterval 5 gave up after about 20 seconds (we tested it without Failover States).
  • Failback States, on the 5G gateway: kills its states when a gateway with a better priority comes back. An SSH session opened over 5G during the outage was cut about one second after the fiber left the down state, so nothing lingers on the metered line.

Failback States keys off the gateway Priority number, not the group tier, so give the 5G gateway the higher number (we used 10 for fiber and 20 for 5G). Whether you want Failover States depends on what runs on the LAN. An SSH session or a database connection that would rather wait out a short outage is better off without it. A stream that reconnects on error recovers faster with it.

The surprise was continuous flows. A fixed-port UDP flow sending every 200 ms, the same pattern as a WireGuard keepalive from a LAN host, lost 199 of 199 packets during a 40 second outage even with Failover States on. OPNsense’s recovery script kills the states before it reloads the ruleset. A flow that sends five times a second re-creates its state through the old route-to in that gap, so it stays pinned to the dead WAN until fiber returns. We did not test a real WireGuard peer, but plan for a LAN-side tunnel to stay down during the outage and restart it from a script if it has to move.

Building the gateway group

Setup takes about ten minutes once the 5G box is in passthrough and plugged into a spare OPNsense port. If you’re starting from scratch, our guide to installing OPNsense on Proxmox gets you to a working LAN first. The OPNsense multi-WAN how-to is the upstream reference:

  1. Assign the port facing the 5G router as a new interface and set IPv4 to DHCP, since passthrough hands out the carrier address that way.
  2. Under System, Gateways, Configuration, give the fiber gateway priority 10 and the 5G gateway priority 20, tick Upstream Gateway on both so either can become the default gateway, and set a monitor IP on each that no gateway hands out as DNS. We used 9.9.9.9 for fiber and 1.0.0.1 for 5G.
  3. Tick Failover States on the fiber gateway and Failback States on the 5G gateway if you want sessions moved, as the last section explains.
  4. Under System, Gateways, Group, create a group with fiber on Tier 1, 5G on Tier 2 and the Trigger Level you chose.
  5. Edit the LAN pass rule and set its Gateway to the group. Add a rule above it that passes DNS to the firewall itself with the default gateway, or a gateway-bound rule sends LAN DNS out a WAN instead of to Unbound. Do the same for your other private networks (VLANs, VPN subnets, static routes), or traffic between your own subnets follows the group out a WAN.
  6. Under System, Settings, General, tick Allow default gateway switching so traffic from the firewall itself (Unbound, updates, a WireGuard endpoint on the firewall) also moves.

The current release rebuilt the group page on the new MVC framework. The menu path is the same, but the form is now a dialog, so screenshots in older guides no longer match it:

OPNsense Edit Gateway Group dialog with WAN1_GW on Tier 1, WAN2_DHCP on Tier 2 and Trigger Level Packet Loss
The FAILOVER group: fiber on Tier 1, 5G on Tier 2. Gateways in the same tier load-balance instead of failing over.

Once saved, the group list shows each tier with a live status icon, which is the fastest place to confirm the group is wired the way you meant. This capture is from mid-outage, with the fiber gateway red on Tier 1 and the 5G gateway green on Tier 2:

OPNsense System Gateways Group list with the FAILOVER group, WAN1_GW down on Tier 1 and WAN2_DHCP up on Tier 2, trigger Packet Loss
The FAILOVER group during an outage: WAN1_GW down on Tier 1, WAN2_DHCP carrying traffic on Tier 2.

Step 6 is easy to skip because LAN failover works without it. In every run without it, requests from the firewall itself failed for the whole outage. The OPNsense docs make the same point about Unbound, whose lookups are traffic from the firewall:

OPNsense System Settings General page showing Allow DNS server list to be overridden by DHCP/PPP on WAN ticked and Allow default gateway switching unticked
Allow default gateway switching is off by default. The DNS override option above it is the one behind the monitor IP trap.

That DNS override option caused the one real trap in the lab. The 5G link offered 1.1.1.1 as its DNS server, and with the override ticked OPNsense added a host route for 1.1.1.1 through the 5G gateway. If 1.1.1.1 had been the fiber monitor IP, the routing table would no longer have matched the intent. Pick monitor IPs the carrier does not hand out, or exclude the 5G interface from the override. Changing a monitor IP later also left the old host route in the table until a reboot.

Three more multi-WAN switches live under Firewall, Settings, Advanced, buried below the NAT and bogon options. On the factory image we left all three as shipped:

OPNsense Firewall Settings Advanced page with Skip rules unticked, Use sticky connections ticked and Disable force gateway unticked
  1. 1Skip rules
  2. 2Sticky connections
  3. 3Disable force gateway
The multi-WAN switches under Firewall, Settings, Advanced, as the factory image ships them.
  • Skip rules: unticked by default. The OPNsense docs say a rule with a down gateway is then still created and its traffic goes to the default gateway. Ticking it drops the rule instead, which you’d only want for traffic that must never leave by another WAN.
  • Sticky connections: already ticked on our image. It keeps a source address on the same gateway while it has active states, which matters when the group load-balances and is harmless for a plain failover pair.
  • Disable force gateway: leave it unticked, so the automatic rules that send local services out the interface they belong to stay in place.

If an older guide told you to change any of these for failover, check what your image ships first, because none of them needed touching for the timings above.

Reading gateway state from the shell

OPNsense’s web UI refreshes slowly during an outage, so we watched the gateways from the OPNsense console instead. Enable SSH first if you haven’t (how to start the SSH server on OPNsense), then ask the gateway plugin for its status:

pluginctl -r return_gateways_status

A healthy pair shows status none on both, with the kill-states flags matching what you ticked:

{
    "dpinger": {
        "WAN1_GW": {
            "status": "none",
            "monitor": "9.9.9.9",
            "gateway": "198.51.100.1",
            "monitor_killstates": "1",
            "monitor_killstates_priority": "0",
            "priority": "10",
            "ipprotocol": "inet",
            "name": "WAN1_GW",
            "stddev": "0.4 ms",
            "delay": "10.6 ms",
            "loss": "0.0 %"
        },
        "WAN2_DHCP": {
            "status": "none",
            "monitor": "1.0.0.1",
            "gateway": "100.64.10.1",
            "monitor_killstates": "0",
            "monitor_killstates_priority": "1",
            "priority": "20",
            "ipprotocol": "inet",
            "name": "WAN2_DHCP",
            "stddev": "23.6 ms",
            "delay": "58.4 ms",
            "loss": "0.0 %"
        }
    }
}

Alarm history lives in the gateway log, and it’s the quickest way to see when each threshold tripped:

grep Alarm /var/log/gateways/latest.log

These four lines from one outage of about 99 seconds show the sequence behind the failover table, from loss at 12% to down at 21%, then back through loss to online:

<165>1 2026-10-21T07:42:47+00:00 fw-lab-01.internal dpinger 7192 - [meta sequenceId="1"] MONITOR: WAN1_GW (Addr: 9.9.9.9 Alarm: none -> loss RTT: 11.2 ms RTTd: 1.6 ms Loss: 12.0 %)
<165>1 2026-10-21T07:42:52+00:00 fw-lab-01.internal dpinger 7192 - [meta sequenceId="2"] ALERT: WAN1_GW (Addr: 9.9.9.9 Alarm: loss -> down RTT: 11.2 ms RTTd: 1.7 ms Loss: 21.0 %)
<165>1 2026-10-21T07:45:02+00:00 fw-lab-01.internal dpinger 7192 - [meta sequenceId="1"] ALERT: WAN1_GW (Addr: 9.9.9.9 Alarm: down -> loss RTT: 10.9 ms RTTd: 1.2 ms Loss: 20.0 %)
<165>1 2026-10-21T07:45:13+00:00 fw-lab-01.internal dpinger 7192 - [meta sequenceId="2"] MONITOR: WAN1_GW (Addr: 9.9.9.9 Alarm: loss -> none RTT: 10.9 ms RTTd: 1.1 ms Loss: 1.0 %)

A gateway that drifts between none and loss on an idle line, with no outage behind it, is the flapping case from the RUT241 section. Give it a longer window or a different monitor IP before you trust the group.

Why not a 5G modem inside OPNsense

Plugging an M.2 or USB 5G modem straight into the firewall looks cheaper and tidier, and on Linux it would be. The FreeBSD base under current OPNsense has no QMI driver and no MHI driver, so an M.2 modem in PCIe mode will not attach at all. The USB options that do exist each come with a limit:

  • MBIM through umb(4): in FreeBSD since 15.0 and shipped in OPNsense’s base, but IPv4 only and with no interface type for it in the OPNsense GUI, which still offers PPP, PPPoE, PPTP and L2TP. Netgate staff saw about 15 Mbit/s at best on a Sierra EM7455 with MBIM or PPP.
  • Serial PPP through u3g(4): works with Quectel and Sierra modules, at the same low speed in that test.
  • ECM or RNDIS: the drivers exist, but the one report we found of an RM520N in RNDIS mode on OPNsense came up behind the modem’s own NAT.

That’s why the Waveshare pick is the Ethernet board and not the USB dongle Waveshare also sells: the modem does the data call itself, and OPNsense needs no cellular driver at all. A Pi-based alternative is a modem HAT on a Raspberry Pi acting as the carrier router, and our guide to Raspberry Pi 4G and 5G HATs compares the boards. If the firewall box is still undecided, our pfSense and OPNsense hardware guide lists boxes with the spare port this needs. Read the Intel i226 drop fix before you trust any 2.5 GbE port as a WAN.

Carrier home internet gateways are a different trade. T-Mobile’s support pages say its gateways cannot enable bridge mode, so OPNsense would sit behind double NAT. Verizon documents IP Passthrough on its Internet Gateway (ARC-XCI55AX), using the LAN2 port and switching off the Wi-Fi radios. A data SIM in one of the routers above is still the cleaner WAN2, because the plan and the hardware are not tied together. If you’d rather stay on OpenWrt end to end, our OpenWrt router guide covers the routers that pair with a cellular WAN.

A failover drill before you trust it

A gateway group that has never failed over has not been tested. The cheapest time to find a wrong monitor IP is a quiet evening, not the night the fiber gets cut. We’d run this drill once after setup and again after every OPNsense upgrade or cellular router firmware update:

  1. Pull the optical fiber out of the ONT and leave the Ethernet cable between ONT and firewall connected, so the firewall port keeps its link the way it does in a real ISP outage, and time how long a browser takes to load a fresh page.
  2. Run the shell status command during the outage and confirm the fiber reads down and the 5G gateway none.
  3. Check that the firewall itself can resolve names, which proves Allow default gateway switching is on.
  4. Restore the fiber and confirm new connections and any metered-line sessions come back within the window you expect, about 49 seconds on defaults and about 9 with the tuned monitor.
  5. Look at the data counter on the cellular router afterwards, so you know what an outage costs on your plan.

Put the cellular router on the same UPS as the firewall and the ONT, because a power cut is the outage people forget to test. Our homelab UPS guide sizes one for exactly this load. If the backup line will also carry remote access, Tailscale on OPNsense reconnects over whichever WAN is up and copes with the carrier’s CGNAT.

Keep reading

Free CCNA Practice Test: 600+ Questions for 200-301 v2.0 Networking Free CCNA Practice Test: 600+ Questions for 200-301 v2.0 Install Samba on Debian 13 / 12 and Create a File Share Debian Install Samba on Debian 13 / 12 and Create a File Share Configure Samba File Sharing on Linux Mint 22 Networking Configure Samba File Sharing on Linux Mint 22 Agentic AI in Network Operations: Tested on Cisco IOS Networking Agentic AI in Network Operations: Tested on Cisco IOS Cisco Switch Port Configuration for Phones, APs and Servers Networking Cisco Switch Port Configuration for Phones, APs and Servers Install Kamailio SIP Server on Rocky Linux 10 / AlmaLinux AlmaLinux Install Kamailio SIP Server on Rocky Linux 10 / AlmaLinux

Leave a Comment

Press ESC to close