Multi-WAN with automatic VPN when Cellular kicks in

Hi,

TL;DR:
How can I automatically start a VPN when the backup cellular connection is activated in a Multi-WAN setup?

Details:
I have a remote site ("Castillo" - 192.168.157.0/24) connected to the internet via a GL.iNet GL-X300B (NOR) router. The primary connection is a point-to-point link using a Ubiquiti Nano Station M5 to the main network ("Control" - 192.168.0.0/24). The router is configured for Multi-WAN failover, so if the M5 link goes down, it switches to a cellular backup.

The issue:
Devices in Castillo rely on local IPs to access resources in Control (e.g., a Barix streamer pulling audio from 192.168.0.23). When the M5 link is down, the cellular connection activates, but since it doesn't provide direct local access, these connections fail.

I have a WireGuard VPN that re-establishes internal connectivity when manually started. However, I need a way to automate VPN activation whenever the backup cellular connection takes over. How can I achieve this?

1 Like

There's no topology, I'm getting a little dizzy.

Is X300B active as a WG VPN server and X300B has two WAN sources (Multi-WAN mode is failover), one is M5(with public IP) and one is cellular (not sure if there is a public IP)?

If so, after the X300B switches to the cellular, the WG VPN server can not be connected, possibly because the cellular does not have a public IP and the VPN client can not access and connect to the VPN server, cannot create the tunnel.

1 Like