Every device is tested before it ships · Free pre-configuration · Free shipping on hardware over $199
Wrtora
Menu
Cart

Dual WAN: Load Balancing and Failover

With two internet lines — fibre plus 5G, or two ISPs — OpenWrt's mwan3 package shares traffic between them and moves everything to the working line when one fails.

Fibre and 5G into one OpenWrt router: traffic shared 3:2, automatic failover
Fibre and 5G into one OpenWrt router: traffic shared 3:2, automatic failover

Load balancing works per connection: a single download still uses one line, but many devices and connections spread over both. Failover is the part most homes and shops need.

1. Install mwan3

System → Software → install luci-app-mwan3 (it pulls in mwan3). Or over SSH: apk add luci-app-mwan3

2. Two WAN interfaces with different metrics

  • Keep wan on the first line and add wan2 for the second (DHCP client on its port, or a 5G modem)
  • Edit each WAN → Advanced Settings → Use gateway metric: 10 for wan, 20 for wan2. mwan3 needs a unique metric per interface
  • Put both in the wan firewall zone

3. Health checks

Network → MultiWAN Manager → Interface: enable both interfaces and give each two track IPs that answer ping, such as 1.1.1.1 and 8.8.8.8. When pings stop, mwan3 marks the line offline.

MultiWAN Manager → Interfaces: wan and wan2 with ping tracking and metrics
MultiWAN Manager → Interfaces: wan and wan2 with ping tracking and metrics

4. Members

A member is an interface with a metric (priority) and a weight (share). Same metric = used together; lower metric = used first.

MultiWAN Manager → Members: wan weight 3 and wan2 weight 2 at metric 1; failover members at metric 1 and 2
MultiWAN Manager → Members: wan weight 3 and wan2 weight 2 at metric 1; failover members at metric 1 and 2

5. Policies

  • balanced: wan_m1_w3 + wan2_m1_w2 — both lines at once, 60 % / 40 %
  • wan_failover: wan_m1_w1 + wan2_m2_w1 — fibre only, 5G only when fibre is down
MultiWAN Manager → Policies: balanced and wan_failover
MultiWAN Manager → Policies: balanced and wan_failover

6. Rules

Rules pick a policy for traffic. Make HTTPS sticky so a banking session stays on one line, then send everything else to your policy. Choose wan_failover instead of balanced if the second line is metered 5G.

MultiWAN Manager → Rules: sticky HTTPS and a default rule
MultiWAN Manager → Rules: sticky HTTPS and a default rule

7. Check it

Status → MultiWAN Manager shows each line online or offline. Unplug the first line: within about a minute traffic moves to the second, and back when it returns.

Status → MultiWAN Manager: both lines online
Status → MultiWAN Manager: both lines online

Hardware