Add opencdn to extra ping Reduce fail counter to 2
|2 years ago|
|LICENSE||2 years ago|
|README.md||2 years ago|
|failover||2 years ago|
|failover.sh||2 years ago|
init.d script for monitoring and adjusting route metrics of 2 WANs in a multi-WAN setup on OpenWRT. Used as a simple alternative to mwan3, where I just want failover and all traffic forwarded through wireguard vpn (mwan3 seems to struggle with this).
cp failover /etc/init.d/failover cp failover.sh /usr/bin/failover.sh chmod +x /etc/init.d/failover chmod +x /usr/bin/failover.sh /etc/init.d/failover enable /etc/init.d/failover start
The script uses logger to write to openwrt system log, which can be monitored using
It will log when it starts, when some pings fail, and when switching between WANs.