Payam Nab
Occasional Visitor
Tried wan-event to trigger start and stop VPN_Failover by @Martineau
wan0-connected script works fine and triggers VPN_Failover start, but wan0-disconnected not triggers and there is no event in syslog as wan0-disconnected.
Also posted my problem on github: No wan-event in syslog as wan-disconnected
syslog after I disconnected wan cable:
syslog after connected wan cable:
Am I miss something to trigger wan0-disconnected event?
Router is AX86U with Merlin 387.6
wan0-connected script works fine and triggers VPN_Failover start, but wan0-disconnected not triggers and there is no event in syslog as wan0-disconnected.
Also posted my problem on github: No wan-event in syslog as wan-disconnected
syslog after I disconnected wan cable:
Code:
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)
syslog after connected wan cable:
Code:
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
Am I miss something to trigger wan0-disconnected event?
Router is AX86U with Merlin 387.6