Is there such a thing as interface order of preference routing?

I’d like to have all traffic from a remote site come back to the mothership over VPN and then exit to the internet. The concern is what happens if for whatever reason the VPN tunnel dies and in that case I’d like let the traffic exit to the internet from the remote site until the VPN tunnel is restored. VPN is Wireguard.

This is what "metric" is for in routing. Whatever has the lowest metric will be used. when the VPN goes down, then the regular internet exit is used.


There's no built-in failover for WireGuard.
So you need to use external tools such as mwan3 or custom scripts.