Hello,
I found a scenario when my WAN disconnects and reconnects, but the wan_event script is not called, although according to the description it should be called "Called when a WAN interface related event occurs".
Is there any reason why the script is not being called ? I have enabled JFFS custom scripts and configs in the settings.
WAN disconnected
WAN connected
Script path
There are scenarious where wan_event is called for instance during router reboot
I found a scenario when my WAN disconnects and reconnects, but the wan_event script is not called, although according to the description it should be called "Called when a WAN interface related event occurs".
Is there any reason why the script is not being called ? I have enabled JFFS custom scripts and configs in the settings.
WAN disconnected
Code:
Aug 11 00:12:10 dnsmasq[24989]: using only locally-known addresses for RT-AX86U-3E18
Aug 11 00:12:54 acsd: eth6: COEX: downgraded chanspec 0x1909 (11) to 0x100b (11): channel 4 used by exiting BSSs
Aug 11 00:33:30 WAN_Connection: WAN was exceptionally disconnected.
Aug 11 00:34:03 rc_service: service 2141:notify_rc stop_vpnclient1
Aug 11 00:34:03 custom_script: Running /jffs/scripts/service-event (args: stop vpnclient1)
Aug 11 00:34:03 rc_service: service 2145:notify_rc stop_vpnclient2
Aug 11 00:34:03 rc_service: waitting "stop_vpnclient1" via ...
WAN connected
Code:
Aug 11 00:39:38 custom_script: Running /jffs/scripts/service-event (args: stop vpnclient5)
Aug 11 00:39:38 openvpn-routing: Clearing routing table for VPN client 5
Aug 11 00:39:39 WAN_Connection: WAN was restored.
Aug 11 00:39:39 dnsmasq[24989]: read /etc/hosts - 24 names
Aug 11 00:39:39 dnsmasq[24989]: read /jffs/addons/YazDHCP.d/.hostnames - 102 names
Aug 11 00:39:39 dnsmasq-dhcp[24989]: read /jffs/addons/YazDHCP.d/.staticlist
Aug 11 00:39:39 dnsmasq-dhcp[24989]: read /jffs/addons/YazDHCP.d/.optionslist
Aug 11 00:39:39 dnsmasq[24989]: using nameserver 93.93.32.32#53
Aug 11 00:39:39 dnsmasq[24989]: using nameserver 93.93.33.33#53
Aug 11 00:39:39 dnsmasq[24989]: using only locally-known addresses for RT-AX86U-3E18
Aug 11 00:39:39 dnsmasq[24989]: using nameserver 93.93.32.32#53
Aug 11 00:39:39 dnsmasq[24989]: using nameserver 93.93.33.33#53
Aug 11 00:39:39 dnsmasq[24989]: using only locally-known addresses for RT-AX86U-3E18
Script path
Code:
linke@RT-AX86U-3E18:/jffs/scripts# ls -ll /jffs/scripts/wan-event
-rwxr-xr-x 1 linke root 1114 Aug 10 11:02 /jffs/scripts/wan-event
linke@RT-AX86U-3E18:/jffs/scripts#
There are scenarious where wan_event is called for instance during router reboot
Code:
May 5 07:05:13 kernel: init (1): drop_caches: 1
May 5 07:05:13 custom_script: Running /jffs/scripts/service-event (args: restart firewall)
May 5 07:05:14 kernel: usb 1-1: new high-speed USB device number 2 using ehci-platform
May 5 07:05:14 lldpd[1634]: removal request for address of XXXXXX, but no knowledge of it
May 5 07:05:14 custom_script: Running /jffs/scripts/wan-event (args: 0 connected)
May 5 07:05:14 kernel: usb-storage 1-1:1.0: USB Mass Storage device detected
May 5 07:05:14 kernel: scsi host0: usb-storage 1-1:1.0
May 5 07:05:14 acsd: eth6: COEX: downgraded chanspec 0x1909 (11) to 0x100b (11): channel 4 used by exiting BSSs
May 5 07:05:14 acsd: eth6: selected channel spec: 0x100b (11)
Last edited: