Hi there,
i have 2 IP Nets..Net A is @ home and has an Internet connection
Net B is Hamnet completly isolated from the internet..
NET A and B connected through a Wireguard tunnel Net A initiated the connection to Net B
the internal WG IP`s are 192.168.2.1@ NET B and 192.168.2.2 @Net A
i set up srcnat with masquerading on each device that i can reach all ip`s of Net B behind the Router and vice versa and that i can reach the internet from Net B via Net A
In the Wireguard config (peers) of allowed Adresses i have to put 0.0.0.0/0 that every adress is allowed to get access to the internet from a device from Net B via Net A
i had to do the same 0.0.0.0/0 on the device @ Net A to get access to devices behind the router of Net B
if i put a single ip into allowed adresses @ Router on Net B and try to get a connection to the internet via the Tunnel that doesn`t work i always have to put 0.0.0.0/0 into allowed adresses
the problem is that every device can use the internet when i allow everything but i only want that 4 devices can use the internet over that tunnel
is this a bug in implementation of wg ?!