Spitz AX - WireGuard client doesn't work

Hey all,

I got my Spitz AX recently, and all seems to be well, BUT…

WireGuard flat out does not work!!

I’ve set up Wireguard, synced the router time, triple checked the configuration, all looks good, but the client doesn’t even start!

Logs:

Wed May 31 19:22:58 2023 daemon.notice netifd: Interface 'wgclient' is now down
Wed May 31 19:22:58 2023 daemon.notice netifd: Interface 'wgclient' is setting up now
Wed May 31 19:22:58 2023 user.notice mwan3[8338]: Execute ifdown event on interface wgclient (unknown)
Wed May 31 19:22:59 2023 user.notice firewall: Reloading firewall due to ifdown of wgclient ()
Wed May 31 19:23:37 2023 daemon.notice netifd: wgclient (11074): cat: can't open '/tmp/run/wg_resolved_ip': No such file or directory
Wed May 31 19:23:37 2023 daemon.notice netifd: Interface 'wgclient' is now down
Wed May 31 19:23:38 2023 user.notice mwan3[11177]: Execute ifdown event on interface wgclient (unknown)
Wed May 31 19:23:38 2023 user.notice firewall: Reloading firewall due to ifdown of wgclient ()
Wed May 31 19:29:20 2023 daemon.notice netifd: Interface 'wgclient' is setting up now
Wed May 31 19:31:06 2023 user.notice wireguard-debug: USER=root ifname=wgclient ACTION=REKEY-GIVEUP SHLVL=1 HOME=/ HOTPLUG_TYPE=wireguard LOGNAME=root DEVICENAME= TERM=linux SUBSYSTEM=wireguard PATH=/usr/sbin:/usr/bin:/sbin:/bin PWD=/
Wed May 31 19:31:06 2023 daemon.notice netifd: wgclient (2187): cat: can't open '/tmp/run/wg_resolved_ip': No such file or directory
Wed May 31 19:31:06 2023 daemon.notice netifd: Interface 'wgclient' is now down
Wed May 31 19:31:06 2023 daemon.notice netifd: Interface 'wgclient' is setting up now
Wed May 31 19:31:07 2023 user.notice mwan3[2217]: Execute ifdown event on interface wgclient (unknown)
Wed May 31 19:31:07 2023 user.notice firewall: Reloading firewall due to ifdown of wgclient ()
Wed May 31 19:31:48 2023 daemon.notice netifd: wgclient (5039): cat: can't open '/tmp/run/wg_resolved_ip': No such file or directory
Wed May 31 19:31:48 2023 daemon.notice netifd: Interface 'wgclient' is now down
Wed May 31 19:31:48 2023 user.notice mwan3[5127]: Execute ifdown event on interface wgclient (unknown)
Wed May 31 19:31:49 2023 user.notice firewall: Reloading firewall due to ifdown of wgclient ()
Wed May 31 19:37:16 2023 daemon.notice netifd: Interface 'wgclient' is setting up now"

It’ll do that infinitely. Never starts, never connects, doesn’t matter what configuration I throw at it.

Help!

Firmware version is 4.3.1

It’s hard to determine why since we can’t see your config, but from the logs, it looks like it never resolved your wireguard peer’s IP address. If it’s a hostname, make sure there’s no typo and that you can actually resolve it from the router (or your connected client).

From a command line:
# nslookup peer.host.name

Then, it’s mwan3 that’s turning the process down. I’ve found mwan3 to be a bit on the aggressive side (especially for “mobile” network connection monitoring), Try disabling that until you have your connectivity figured out:
From the shell:
# /etc/init.d/mwan3 stop && /etc/init.d/mwan3 disable

If you can’t or don’t want to use the shell, you’ll have to do this through the LuCI UI (http://192.168.8.1/cgi-bin/luci/). Log in there, select system → startup → mwan3 → Stop/Disable. It’s also possible to do this per-interface in GL’s UI (Network → MultiWAN), but it doesn’t survive a reboot. There’s a thread about this particular bug

Once everything’s resolved, you can re-enable mwan3 if you want/need it. Disabling mwan3 seems to mess with the UI’s internet reporting and the LED’s strength meter. It will falsely report there’s no connection or signal strength

I am getting the similar error, all of a sudden the Client is giving. And I have also stopped the mwan3 on the Luci interface…

“Mon Feb 19 12:53:48 2024 daemon.notice netifd: Interface ‘wgclient’ is setting up now\nMon Feb 19 12:55:17 2024 daemon.notice netifd: wgclient (11118): cat: can’t open ‘/tmp/run/wg_resolved_ip’: No such file or directory\nMon Feb 19 12:55:17 2024 daemon.notice netifd: Interface ‘wgclient’ is now down\nMon Feb 19 12:55:17 2024 user.notice mwan3[11360]: Execute ifdown event on interface wgclient (unknown)\nMon Feb 19 12:55:18 2024 user.notice firewall: Reloading firewall due to ifdown of wgclient ()\nMon Feb 19 12:56:19 2024 daemon.notice netifd: Interface ‘wgclient’ is setting up now\n”