I need to separate my Wireguard clients into groups/subnets, but I need one "master-group" (subnet) that can reach all clients.
10.11.2.0/24 BestPizzaShop-Town1
10.11.3.0/24 PepperoniPizzaShop-Town2
...
10.11.133.0/24 xxxxShop-Town133
10.11.1.0/16 MASTER group for my own PCs << to rule them all ;-)
The problem:
- Can not ping/reach any other groups from
10.11.1.x
except it's own subnet.
Question:
- How do I configure that on a Debian 11 VPS using Wireguard-UI?
(And webmin for iptables firewall configuration.) - Is
10.11.252.0/16
better for the "master-group" than10.11.1.0/16
? - Or should I list all subnet on server side one by one and create some routes manually?
Plus Requirements:
- None of the peers should be able to reach internet through the Wireguard server!
- Peers should be able to reach only each other in the same subnet, no others. (Even if the peer is editing it's own .conf file.)
- Peers should be able to reach SQL on the server on a localhost port.
- If possible: the sub-clients should not be able to connect to my master-PCs, only I should be able to start connecting to them.