Model: GL.iNet GL-A1300
Architecture: ARMv7 Processor rev 5 (v7l)
Openwrt Version: 21.02.2 r16495-bf0c965af0
Kernel Version: 5.4.179
Firmware: 4.4.6
Firmware Type: release1
=========
As per the Subject line, I have my WG connection set up to my WG server at home.
Connecting my laptop (wired to LAN through the GL-A1300) the WG connections establishes within seconds of me enabling the VPN tunnel.
Speed and latency is as expected (twice as fast or more than that of OpenVPN).
Then for no reason the I lose the connection.
I look at the âTraffic Statisticsâ under the VPN Dashboard and they show zero and zero (all previous up and download numbers are gone.
During the up time (right after the connection) the Log shows:
Wed Nov 15 17:26:17 2023 daemon.notice netifd: ovpnclient (32749): Warning: Option âwgclientâ.masq6 is unknown
Wed Nov 15 17:26:19 2023 daemon.notice netifd: Interface âwgclientâ is setting up now
Wed Nov 15 17:26:20 2023 daemon.notice netifd: Network device âwgclientâ link is up
Wed Nov 15 17:26:20 2023 daemon.notice netifd: Interface âwgclientâ is now up
Wed Nov 15 17:26:21 2023 user.notice mwan3[1492]: Execute ifup event on interface wgclient (wgclient)
Wed Nov 15 17:26:21 2023 user.notice mwan3[1492]: Starting tracker on interface wgclient (wgclient)
Wed Nov 15 17:26:25 2023 user.notice firewall: Reloading firewall due to ifup of wgclient (wgclient)
Wed Nov 15 17:26:26 2023 user.notice wgclient-up: env value:T_J_V_ifname=string J_V_address_external=1 USER=root ifname=wgclient ACTION=KEYPAIR-CREATED N_J_V_address_external=address-external SHLVL=2 J_V_keep=1 HOME=/ HOTPLUG_TYPE=wireguard T_J_V_interface=string J_V_ifname=wgclient T_J_V_link_up=boolean LOGNAME=root DEVICENAME= T_J_V_action=int TERM=linux SUBSYSTEM=wireguard PATH=/usr/sbin:/usr/bin:/sbin:/bin CONFIG_LIST_STATE= J_V_interface=wgclient K_J_V= action ifname link_up address_external keep interface J_V_link_up=1 J_V_action=0 T_J_V_address_external=boolean N_J_V_link_up=link-up T_J_V_keep=boolean PWD=/ JSON_CUR=J_V CONFIG_SECTIONS=global AzireVPN Mullvad FromApp group_1559 group_4525 group_3844 group_7103 peer_8275 peer_8161 peer_4618 peer_7861 CONFIG_cfg030f15_ports=
Immediately after freezing there is one added line at the end which is:
Wed Nov 15 17:30:00 2023 daemon.notice netifd: Network device âwgclientâ link is down
Why did it go down???
My configuration file is EXACTLY the same format as the one on my Android Phone and iPad - yet they NEVER loose the connection.
That format is:
[Interface]
Address = 192.168.2.7/32
PrivateKey = redacted=
DNS = 192.168.2.1[Peer]
AllowedIPs = 0.0.0.0/0
Endpoint = redacted
PersistentKeepalive = 25
PublicKey = redacted=
PresharedKey = redacted=
If I turn the connection Off and On again, it reconnects fine.
The time to disconnect is not consistent. It might be a minute or two, or up to about 20 minutes. But usually it is around 10 ish minutes.
Iâve done it without the preshared key as well - no difference.
the OpenVPN tunnel Iâve also created works without issue or dropping.
Suggestions?
Thanks
============
Update:
After turning the the tunnel off and on again the log says this:
Wed Nov 15 18:00:32 2023 daemon.notice netifd: wgclient (15109): * Running script â/etc/firewall.vpn_server_policy.shâ
Wed Nov 15 18:00:32 2023 daemon.notice netifd: wgclient (15109): * Running script â/var/etc/gls2s.includeâ
Wed Nov 15 18:00:32 2023 daemon.notice netifd: wgclient (15109): ! Skipping due to path error: No such file or directory
Wed Nov 15 18:00:32 2023 daemon.notice netifd: wgclient (15109): * Running script â/usr/bin/gl_block.shâ
Wed Nov 15 18:00:32 2023 daemon.notice netifd: wgclient (15109): sh: 1: unknown operand
Wed Nov 15 18:00:32 2023 user.notice mwan3[15108]: Execute ifdown event on interface wgclient (unknown)
Wed Nov 15 18:00:33 2023 daemon.notice netifd: wgclient (15109): udhcpc: started, v1.33.2
Wed Nov 15 18:00:33 2023 daemon.notice netifd: wgclient (15109): udhcpc: sending discover
Wed Nov 15 18:00:33 2023 user.notice firewall: Reloading firewall due to ifdown of wgclient ()
Wed Nov 15 18:00:36 2023 daemon.notice netifd: wgclient (15109): udhcpc: no lease, failing
Wed Nov 15 18:00:36 2023 daemon.notice netifd: Interface âwgclientâ is now down
Wed Nov 15 18:00:37 2023 daemon.notice netifd: Interface âwgclientâ is setting up now
Wed Nov 15 18:00:37 2023 user.notice mwan3[15945]: Execute ifdown event on interface wgclient (unknown)
Wed Nov 15 18:00:38 2023 user.notice firewall: Reloading firewall due to ifdown of wgclient ()
Wed Nov 15 18:00:38 2023 daemon.notice netifd: Network device âwgclientâ link is up
Wed Nov 15 18:00:38 2023 daemon.notice netifd: Interface âwgclientâ is now up
Wed Nov 15 18:00:40 2023 user.notice mwan3[16875]: Execute ifup event on interface wgclient (wgclient)
Wed Nov 15 18:00:40 2023 user.notice mwan3[16875]: Starting tracker on interface wgclient (wgclient)
Wed Nov 15 18:00:43 2023 user.notice wgclient-up: env value:T_J_V_ifname=string J_V_address_external=1 USER=root ifname=wgclient ACTION=KEYPAIR-CREATED N_J_V_address_external=address-external SHLVL=2 J_V_keep=1 HOME=/ HOTPLUG_TYPE=wireguard T_J_V_interface=string J_V_ifname=wgclient T_J_V_link_up=boolean LOGNAME=root DEVICENAME= T_J_V_action=int TERM=linux SUBSYSTEM=wireguard PATH=/usr/sbin:/usr/bin:/sbin:/bin CONFIG_LIST_STATE= J_V_interface=wgclient K_J_V= action ifname link_up address_external keep interface J_V_link_up=1 J_V_action=0 T_J_V_address_external=boolean N_J_V_link_up=link-up T_J_V_keep=boolean PWD=/ JSON_CUR=J_V CONFIG_SECTIONS=global AzireVPN Mullvad FromApp group_1559 group_4525 group_3844 group_7103 peer_8275 peer_8161 peer_4618 peer_7861 CONFIG_cfg030f15_ports=
Wed Nov 15 18:00:44 2023 user.notice firewall: Reloading firewall due to ifup of wgclient (wgclient)