Travel Routers, OpenWrt & Captive Portal Bypass

Setting Up an Automated Cellular Failover on OpenWrt Travel Routers

Use mwan3 to prefer campground Wi-Fi or Starlink and fall back to a USB or built-in modem automatically when the primary link stops answering pings.

mwan3 failover decision pathmwan3 failover decision pathPrimary WANStarlink / campWi-FiHealth checkping every 5 s3 failures?mark interfacedownBackup WANLTE modemRecoveryswitch backautomaticallyTrack two independent IPs so one blocked DNS server does not cause false failovers.
Schematic #11 — Setting Up an Automated Cellular Failover on OpenWrt Travel Routers

Manual switching between connections breaks calls and forgets itself at 2 a.m. OpenWrt's mwan3 package watches each WAN interface and reroutes traffic in seconds when the preferred one fails — exactly what a van with Starlink, campground Wi-Fi and an LTE modem needs.

Install the packages

opkg update
opkg install mwan3 luci-app-mwan3

On GL.iNet firmware, the built-in Multi-WAN page wraps the same logic; the steps below apply to stock OpenWrt LuCI.

Give each WAN a distinct metric

In Network → Interfaces, edit each WAN and set a gateway metric under Advanced Settings: 10 for the primary, 20 for the backup. Different metrics let both default routes exist at once, which mwan3 needs.

Configure interfaces and tracking

  1. In Network → MultiWAN Manager → Interfaces, enable each WAN.
  2. Track two independent IPs, for example 1.1.1.1 and 9.9.9.9, and require one reply.
  3. Interval 5 s, down after 3 failures, up after 3 successes. Shorter intervals on cellular waste data.

Members, policies and rules

  • Members: create primary_m1 (metric 1) and lte_m2 (metric 2).
  • Policy: failover uses both members; the lower metric wins while online.
  • Rule: default rule sends all traffic to the failover policy.

Test it

Start a continuous ping from your laptop, then unplug the Starlink cable. You should see three or four lost replies, then traffic resumes over LTE. Reconnect and watch it return to the primary. Run mwan3 status over SSH to confirm interface states.

Practical tips

  • Exclude the LTE modem from heavy rules — for example, block OS update hosts while on backup.
  • Captive-portal Wi-Fi can look "up" while blocking traffic; ping-based tracking catches that.
  • Keep sticky sessions enabled for VPN endpoints so tunnels are not split across links.

Safety note: figures are typical planning values. Confirm ratings on your hardware labels and follow local electrical and radio regulations. When in doubt, have DC installations checked by a qualified auto-electrician.