Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No wan-event in syslog as wan-disconnected #11

Open
papampi opened this issue Jul 14, 2022 · 0 comments
Open

No wan-event in syslog as wan-disconnected #11

papampi opened this issue Jul 14, 2022 · 0 comments

Comments

@papampi
Copy link

papampi commented Jul 14, 2022

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
@papampi papampi changed the title wan-event no event in syslog as wan-disconnected No wan-event in syslog as wan-disconnected Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant