Hi all, I'm attempting to use a BerylAX as a Wireguard server and another BerylAX as Wireguard client. Doing this, I will be able to always have my home IP anywhere.
However, when I try to connect clie it gets stuck in "The client is starting, please wait…"
These are the logs I get on repeat:
Sun Jul 21 19:17:30 2024 user.notice firewall: Reloading firewall due to ifdown of wgclient ()
Sun Jul 21 19:19:17 2024 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=/
Sun Jul 21 19:19:17 2024 daemon.notice netifd: Interface 'wgclient' is now down
Sun Jul 21 19:19:17 2024 daemon.notice netifd: Interface 'wgclient' is setting up now
Sun Jul 21 19:19:17 2024 user.notice firewall: Reloading firewall due to ifdown of wgclient ()
These logs show on repeat.
These are the steps I followed:
Connect BerylAX 1 to my home router via ethernet cable. Internet works.
Turned on dynamic DNS
Start WireGuard Server
Go to my home router config 192.168.1.1 -> firewall -> port forwarding. Here I have multiple fields:
Protocol: UDP
Wan Host IP Address: 0.0.0.0
LAN Host: the "Ethernet" IP Address from the BerylAX Dashboard
WAN Port: 51820
LAN Host Port: 51820
Added a new user to the WireGuard Server. Copied the config (with the endpoint changed to the DNS+port)
Connect BerylAX 2 to my phone internet (making sure it only has data enabled, no wifi). Internet works
Go to WireGuard Client and paste the config of the user created in the BerylAX server
Then, it seems I don't have it cause they don't match. Would I need to "enable" my main router to have public IP address so the connection between client and server VPN work?
I called my ISP and asked for a static IPv4 and now it works!
I'll try it again later on a different Wifi (I used my phone hotspot) and set this thread as solved if it works