FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
3,547 views 0 comments
by anonymous
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?

1 Answer

0 votes
by anonymous

Hello,

For the peers to talk to each other you must include the destination IP addresses/nets to the Allowed IPs list:

  • on the peer 172.16.0.12 set AllowedIPs to  172.16.0.0/24 + 192.168.10.0/24 + 192.168.13.0/24,
  • on the peer 172.16.0.13 set AllowedIPs to  172.16.0.0/24  + 192.168.10.0/24 + 192.168.12.0/24

Regards.