I’m not sure why I’m getting this weird behavior.
I set up the Wireguard on my Synology NAS (following this tutorial.) So now I want to connect to it from the GL-MT3000 (Beryl AX) as a VPN client. And I’m doing some tests.
I am testing it in our apartment complex reception area’s public Wi-Fi area. The Beryl AX is in the “repeater” mode. For that, I logged in to the Beryl AX, and went to the Internet tab and set up the free Wi-Fi connection (by specifying the SSID and the free WiFi password.) The UI shows that it is connected. (If at this point I connect to my WiFi SSID from the Beryl AX, I have the internet connection. So this part works.)
Then I enable the Wireguard from the VPN settings in Beryl AX. (I previously set up Wireguard from the Synology NAS by scanning the QR code.)
At this point the internet connection disappears if I connect to my WiFi SSID from the Beryl AX. I can see on the Synology server side, or from the Wireguard server UI, that there’s some small activity:
but the client has no internet connection (in case of a “repeater” setting on the Beryl AX.)
But then, if I plug in my Android phone and use it as “USB tethering” in Beryl AX to get the internet connection, the same Wireguard settings for the Beryl AX seem to work and I get an internet connection through Wireguard.
What am I doing wrong there?
PS. Here’s the log from the Beryl AX:
Sat Dec 2 15:39:36 2023 daemon.notice netifd: wgclient (15748): * Set tcp_window_scaling to on
Sat Dec 2 15:39:36 2023 daemon.notice netifd: wgclient (15748): * Running script '/etc/firewall.nat6'
Sat Dec 2 15:39:36 2023 daemon.notice netifd: wgclient (15748): * Running script '/etc/[firewall.vpn_server_policy.sh](http://firewall.vpn_server_policy.sh/)'
Sat Dec 2 15:39:36 2023 daemon.notice netifd: wgclient (15748): * Running script '/var/etc/gls2s.include'
Sat Dec 2 15:39:36 2023 daemon.notice netifd: wgclient (15748): ! Skipping due to path error: No such file or directory
Sat Dec 2 15:39:36 2023 daemon.notice netifd: wgclient (15748): * Running script '/usr/bin/gl_block.sh'
Sat Dec 2 15:39:36 2023 daemon.notice netifd: wgclient (15748): Failed to parse json data: unexpected character
Sat Dec 2 15:39:36 2023 daemon.notice netifd: wgclient (15748): uci: Entry not found
Sat Dec 2 15:39:36 2023 daemon.notice netifd: Network device 'wgclient' link is down
Sat Dec 2 15:39:36 2023 user.notice mwan3[15747]: Execute ifdown event on interface wgclient (unknown)
Sat Dec 2 15:39:36 2023 daemon.notice netifd: wgclient (15748): sh: 1: unknown operand
Sat Dec 2 15:39:37 2023 user.notice firewall: Reloading firewall due to ifdown of wgclient ()
Sat Dec 2 15:39:37 2023 daemon.notice netifd: Interface 'wgclient' is now down
Sat Dec 2 15:40:55 2023 daemon.notice netifd: Interface 'wgclient' is setting up now
Sat Dec 2 15:40:55 2023 daemon.notice netifd: Network device 'wgclient' link is up
Sat Dec 2 15:40:55 2023 daemon.notice netifd: Interface 'wgclient' is now up
Sat Dec 2 15:40:56 2023 user.notice mwan3[20252]: Execute ifup event on interface wgclient (wgclient)
Sat Dec 2 15:40:56 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_2723 group_5690 group_5008 group_7081 peer_4956 CONFIG_cfg030f15_ports=
Sat Dec 2 15:40:56 2023 user.notice mwan3[20252]: Starting tracker on interface wgclient (wgclient)
Sat Dec 2 15:40:59 2023 user.notice firewall: Reloading firewall due to ifup of wgclient (wgclient)