GL-X3000: WireGuard tunnel stuck after brief cellular disconnect

Hello everyone,

I am using the GL-X3000 (Spitz AX) in my motorhome. During long drives, I frequently experience brief cellular disconnects. The router status changes to offline for a moment, and shortly after, the GL.iNet app shows it is back online.

Since my entire smart home setup in the motorhome relies on my home network, I need a continuous and stable VPN tunnel – including DNS routing through my home domain. This setup works perfectly when connected!

However, the problem occurs after these short cellular drops: The WireGuard status on the GL-X3000 still shows as "Online/Connected", but no traffic passes through the tunnel anymore.

To fix it, I either have to wait ages, or manually deactivate and reactivate the WireGuard client in the app. Once restarted, the tunnel comes back up instantly. Doing this constantly while traveling is quite annoying.

My setup details:

  • Home Peer: MikroTik Router (no action required on this side during drops).

  • Client: GL-X3000.

  • Fix: Manually toggling the tunnel off and on in the GL.iNet UI immediately restores traffic.

Has anyone encountered this issue or found a working solution (e.g., a watchdog script or specific keepalive settings) to make the tunnel reconnect automatically after a cellular drop?

Thanks in advance for your help!

Hi,

To help us investigate this issue further, could you please help us collect some information when the problem happens again?

When the issue occurs, please do not restart WireGuard or reboot the router.
Could you please run the following commands before taking any recovery actions and share the output with us?

ifstatus wgclient1
ip link show wgclient1
cat /tmp/wireguard/wgclient1_state
ubus call gl-session call \
'{"module":"vpn-client","func":"get_status"}'

wg show wgclient1

Please also run the following ping tests:

ping -I wgclient1 -c 4 8.8.8.8

ping -c 4 8.8.8.8

After collecting the information, please export the system log from the router and send the log file together with the command outputs to us via private message for further analysis.

Thank you for your understanding and support.

Hello, so far I haven't been able to reproduce the issue. I suspect it occurs when the provider changes during roaming, which always causes long outages.

Since my router connected to "Free" and their network quality is quite poor, I used an AT command to lock it to "Bouygues". Now the internet is significantly more stable; outages while driving last only a few seconds to a maximum of 2 minutes, and the tunnel reconnects immediately.

It would be a great feature if you could select a preferred provider per country to avoid these constant network changes. You can easily set this manually on a smartphone, but on the GL.iNet device, it's currently only possible via AT command. In my case: AT+COPS=1,2,"20820"

Since I am currently using Google Maps for navigation, it is better for me not to try and reproduce the error right now by letting the router choose the network automatically, as this might cause my navigation to drop out completely.