More cosmetic stuff to consider
@Ranger802004 when you get around to noodling on the next beta ...
I think this one could well be related to the last bug you squashed for me prior to releasing 1.5.6 maybe?
I did a quick Reboot of my Secondary WAN device, a 4G LTE USB Stick, using it's own GUI, so no Failover/Fallback, just "loss' of backup capability for a minute or so.
All handled properly by wan-failover / vpnmon-r2, but the emails are slightly incorrect as below, it's taking the Active IP and Gateway addresses from the Secondary but gets everything else right.
Let me know if you want logs?
Code:
Received on WAN1 Reboot ...
***WAN Failover Notification***
----------------------------------------------------------------------------------------
Hostname: 16henrystreet.dyndns.org
Event Time: Aug 19 06:33:56
WAN0 Status: CONNECTED
WAN1 Status: DISCONNECTED
Active ISP: Superloop
WAN IPv4 Address: 192.168.2.100 <<= Should be 203.132.93.25
WAN Gateway IP Address: 192.168.2.1 <<= Should be 203.132.93.1
WAN Interface: eth0
DNS: Managed by AdGuardHome
QoS Status: Enabled
QoS Mode: Manual Settings
QoS Download Bandwidth: 100Mbps
QoS Upload Bandwidth: 35Mbps
QoS WAN Packet Overhead: 0
----------------------------------------------------------------------------------------
Received on WAN1 Re-Connect ...
***WAN Failover Notification***
----------------------------------------------------------------------------------------
Hostname: 16henrystreet.dyndns.org
Event Time: Aug 19 06:35:23
WAN0 Status: CONNECTED
WAN1 Status: CONNECTED
Active ISP: Superloop
WAN IPv4 Address: 192.168.2.100 <<= Should be 203.132.93.25
WAN Gateway IP Address: 192.168.2.1 <<= Should be 203.132.93.1
WAN Interface: eth0
DNS: Managed by AdGuardHome
QoS Status: Enabled
QoS Mode: Manual Settings
QoS Download Bandwidth: 100Mbps
QoS Upload Bandwidth: 35Mbps
QoS WAN Packet Overhead: 0
----------------------------------------------------------------------------------------
Also, the reason I was rebooting the USB stick was that this morning when I was checking I couldn't get to it's web interface on 192.168.2.1, even though I could ping it.
Had to connect separately to it on its own Wifi in order to login and reboot it.
Was definitely working yesterday via the Asus router and suddenly stopped for some reason - maybe not related at all to wan-failover.
I assume the reboot of USB stick makes your script re-impose the routes? Don't know if there is something else going on ... will monitor for a repeat.