WAN Failover using metric

I need to do simple failover between my 'primary' WAN and a backup WWAN. I've been looking at MWAN3 for doing this but it seems a bit heavyweight for my needs.

Is there a simpler way of doing this by just creating a simple script that will change the interface metric on the default routing table to trigger the failover instead of all this messing about with multiple route tables and packet marking?

Anything I'm overlooking by doing it this way?

Sounds good to me :slight_smile:

You can also check out Keepalived

I use a simple script for a WireGuard watchdog, if one tunnel is down it starts the next maybe that will give you some inspiration :slight_smile:

1 Like

It appears someone already made it so:

1 Like