I have a server running Wireguard, and I have multiple clients (peers) connected to it up and running. Te server is an RUTXR1 and the clients are some RUT950 and a PC.
This is the configuration:
- Server
[Interface]
Address = 172.16.0.10/32
ListenPort = 51820
PrivateKey = XXX
[Peer]
PublicKey = XXX
AllowedIPs = 172.16.0.12/32, 192.168.12.0/24
Route allowed IPs: On
[Peer]
PublicKey = XXX
AllowedIPs = 172.16.0.13/32, 192.168.13.0/24
Route allowed IPs: On
- Client
[Interface]
PrivateKey = XXX
Address = 172.16.0.x/32
[Peer]
PublicKey = XXX
AllowedIPs = 172.16.0.10/32, 192.168.10.0/24
Route allowed IPs: On
Endpoint host: xxx.dyndns.org
Persistent keep alive: 25
With everything up and running, from my client with IP address 172.16.0.12, I am able to ping the server 172.16.0.10. I am able to do the same from my other client with 172.16.0.13, I can ping the server 172.16.0.10.
From my server, 172.16.0.10, I can ping both 172.16.0.12 and 172.16.0.13.
Now, I want my peers to talk to each other, that is, I would like to be able to ping 172.16.0.12 from my other peer 172.16.0.13 and vice-versa, but this is not working.
The idea is, I want it to work like a LAN server, where one server that acts as a gateway, and multiple peers/clients that can talk to each other, and also talk to the server.
Is this possible? If yes, what am I missing?