I'm playing around with Wireguard and can't seem to get it to work. I know it has to be something simple, but I'm not sure what it could be. The two devices are normally connected via OpenVPN tunnel in their local routers. I've disabled the tunnel. Here's the configuration:
Server (ubuntu 20.04):
The server's router has UDP 41410 open and NATted to this server at port 41410.
Client (raspbian buster):
Using wg-quick up wg0 at both ends seems to work. On each device, when I issue the wg command I see the Endpoint populated with the IP of the remote. But I can't ping across the tunnel - can't even ping 172.16.1.1 or 172.16.1.2 from either end.
On both machines I have set
What am I doing wrong here?
Server (ubuntu 20.04):
Code:
[Interface]
Address = 172.16.1.1/24
PrivateKey = <key>=
ListenPort = 41410
[Peer]
#parents pi
PublicKey = l1ITI4wPi+TsMwZzJ5ns9TsUI8z7V7guSErPSuFgKX8=
AllowedIPs = 172.16.1.2/32, 192.168.50.0/24
The server's router has UDP 41410 open and NATted to this server at port 41410.
Client (raspbian buster):
Code:
[Interface]
Address = 172.16.1.2/24
PrivateKey = <key>=
[Peer]
PublicKey = mFiOSnaxtG7x+9aeu5NhtsHo4NjPADiC7EX8orxgHQM=
AllowedIPs = 192.168.4.0/24, 172.16.1.1/32
EndPoint = WAN-IP:41410
Using wg-quick up wg0 at both ends seems to work. On each device, when I issue the wg command I see the Endpoint populated with the IP of the remote. But I can't ping across the tunnel - can't even ping 172.16.1.1 or 172.16.1.2 from either end.
On both machines I have set
Code:
net.ipv4.ip_forward=1
net.ipv4.conf.all.proxy_arp = 1
What am I doing wrong here?