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?