Wireguard how to make routing betwin ppers

Also... you really should upgrade...

This can be upgraded to 22.03.7. That version is also EOL and unsupported, and may have security vulnerabilities that won't be patched, but at least it was released relatively recently.

This one can be upgraded to 23.05.5

The server appears to be the same model as Peer 1.... that should also be upgraded.

1 Like

Right...
I'm asking you to try setting that device's forward rule to accept.

1 Like

lets forget about upgrades all works perfectly and version is not that old , just tell me you have no idea how to set up this kind of configuaration and i will wait who knows exactly how to config wireguard for clien to clien porpose

why shoud i forward if i dont want forward anytthing from that other wireguard network ?

oh waIt... a bit OMG it cant be i feel so stupid....io am so sorry i just spent night doing that and no result hundrest rebooting changing ips etc ..

21.02 has been officially unsupported since May 2023 -- so about 18 months. It was last updated for 21.02.7 at that time. But you've got 21.02.3 installed on one of your devices -- that version was released 2.5 years ago.

22.03 officially went EOL with its last release (22.03.7) in July 2024.

For all of those versions, there are probably security vulnerabilities discovered since their last release (certainly for 21.02) and they will never be patched. And, they're also officially unsupported at this point anyway.

...

Yeah... I do know what I'm talking about.

1 Like

For the record:

WireGuard Multi-site setup

Hub and spoke

You can use a hub and spoke setup where site 1 is the hub and site 2 and 3 are the spokes, connection from 2 to 3 is routed via site 1.

Site 1 is a classic server setup (wg interface added to the LAN zone, so no MASQUERADE and allowing incoming WG port).

Site 1 has two peers , site 2 and site 3. Each peer has the subnet and wg address of the respective router as allowed ips.

Sites 2 and 3 are setup as a client with respect to that they have one peer (site 1) and endpoint set to site 1 but they are servers in the sense that they should allow incoming traffic basically as a site-to-site setup, so WG interface added to the LAN zone.

Furthermore site 2 has the subnet of site 1 and site 3 as Allowed IPs and site 3 has as Allowed IPs the subnet of site 1 and 2.

Both site 2 and 3 also have the whole wg subnet as allowed IPs.

Mesh

Alternative is a mesh setup where all sites connect to all other sites, of course each site must be reachable via the internet.

Basically all sites are setup as a server with peers to all other sites, but these peers have an endpoint and make a connection, you use PBR on each site to do the routing.

Again each site has just one tunnel.

Note both for this mesh setup and hub and spoke use as WG address a unique address in the same subnet and make sure all subnets are different.

1 Like

yes you do! :+1:
i am so thankfull to you , for some reason i thought that creating interface and new firewall rule will create firewall rulees the same as for LAN like all accepted and didnt thought about didnt even check.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.