I tried to find some solutions on existing posts here and on google related to my issue, but I couldn’t find one.
I have setup a WireGuard server on a dedicated Ubuntu 18.04 server on which I want to connect from my GL.iNet AR750 with latest snapshot for this device from GL.iNet.
When I click connect, the gray spot next to WireGuard in the UI becomes yellow after some time and remains this way. I can ping and ssh my machines in my lan, but I cannot ping anything on the internet. I’ve tried to set
188.8.131.52 onto the DNS field, disabling VPN policies, … with no luck.
After quite some time, the yellow spot remains but:
VPN client failed to connect, this may be because wrong configuration, unsupported parameters or terminated by the server
Here is the server configuration (
enp0s20 is my public interface name on my Ubuntu server):
[Interface] Address = 10.0.0.1/24 SaveConfig = true PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o enp0s20 -j MASQUERADE PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o enp0s20 -j MASQUERADE ListenPort = 51820 PrivateKey = xxx [Peer] PublicKey = xxx AllowedIPs = 10.0.0.2/32
And here is the configuration on my GL.iNet router:
On the WireGuard server side, here is what I get with
interface: wg0 public key: xxx private key: (hidden) listening port: 51820 peer: xxx endpoint: my-glinet-router-public-ip:5740 allowed ips: 10.0.0.2/32 latest handshake: 53 seconds ago transfer: 79.94 KiB received, 3.36 KiB sent
and here is what I get on my GL.iNet router for the same command:
interface: wg0 public key: xxx private key: (hidden) listening port: 5740 peer: xxx endpoint: my-ubuntu-server-public-ip:51820 allowed ips: 0.0.0.0/0 transfer: 92 B received, 340 B sent persistent keepalive: every 25 seconds
I’d be pleased if anyone could help me, or at least tell me in which direction I should drive my investigations. I’m far from being an expert in networking…
Thanks in advance