Asuswrt-Merlin-Linux-Shell-Scripts
Asuswrt-Merlin-Linux-Shell-Scripts copied to clipboard
No wan-event in syslog as wan-disconnected
I wrote 2 scripts to start and stop VPN_Failover.sh by @MartineauUK on wan-connected and wan-disconnected events. It starts with wan-connected event but when removed wan cable there is no wan-disconnected event shows in syslog and VPN_Failover kept trying to change the vpn. Router is RT-AX86u with merlin 386.7
syslog after removed wan cable:
Jul 14 19:12:46 kernel: eth0 (Int switch port: 3) (Logical Port: 3) (phyId: c) Link DOWN.
Jul 14 19:13:05 (VPN_Failover.sh): 2621 VPN Client Monitor: Checking VPN Client 2 connection status....
Jul 14 19:13:20 (VPN_Failover.sh): 2621 **VPN Client Monitor: Switching VPN Client 2 to VPN Client 3 (Reason: VPN Client 2 STATE=2;Connected but tunnel DOWN; Unsuccessful PING or cURL data transfer)
Jul 14 19:13:20 (VPN_Failover.sh): 2621 **VPN Client Monitor: Terminating VPN Client 2
Jul 14 19:13:20 ovpn-client2[4375]: event_wait : Interrupted system call (code=4)
Then after connect wan cable again:
Jul 14 19:13:55 kernel: eth0 (Int switch port: 3) (Logical Port: 3) (phyId: c) Link Up at 100 mbps full duplex
Jul 14 19:13:57 (wan-event): 16438 Script not defined for wan-event: wan0-stopping
Jul 14 19:13:57 ovpn-client2[16163]: event_wait : Interrupted system call (code=4)
Jul 14 19:13:58 (wan-event): 16531 Script not defined for wan-event: wan0-stopped
Jul 14 19:13:58 kernel: D8:D8:66:09:85:EB not exist in UDB, can't delete it
Jul 14 19:13:58 (wan-event): 16548 Script not defined for wan-event: wan0-init
Jul 14 19:13:58 (wan-event): 16553 Script not defined for wan-event: wan0-connecting
Jul 14 19:13:58 (wan-event): 16559 Script executing.. for wan-event: wan0-connected