Some time ago i had the same issue, but i am unable to find my old topic, so i have to reopen it.
I got two different locations shown here.
On location A i got my OpenWRT device, set up as Wireguard server, and it works fine. In location B i got a Raspberry Pi 4 device, running Wireguard, and connected as peer to the Wireguard server.
Some special thing to keep attention on, on location B, the Wireguard peer is not the router. It's a client connected to a router.
I want to access the 192.168.165.0/24 subnet in location B, from location A.
Vice versa i want to do the same for 192.168.200.0/24 in location A, from location B.
Unfortunately none of them works, i am only able to establish a connection between server and peer, and they can only ping each other (So Wireguard connection works).
Is there something i am doing wrong? To which firewall zone do i have to assign the wireguard interface? And how can i establish working routing between both networks? (In location B i have also set up a static route to the Raspberry Pi 4 network in order to reach 192.168.200.0/24).
Here i got my Wireguard config, from my Raspberry Pi 4 on location B
[Interface] Address = 10.0.0.3/24 ListenPort = 51820 PrivateKey = xxxxxxxxxxxxx [Peer] PublicKey = xxxxxxxxxxxxx AllowedIPs = 10.0.0.3/24,192.168.200.0/24 Endpoint = myserver.dyndns.org:51820
And my Wireguard config on my OpenWRT Router, which is the Wireguard server.
config interface wg0 option proto 'wireguard' option listen_port '51820' list addresses '10.0.0.1/24' option private_key 'xxxxxxxxxxxxxxxxxxxxxxxx' config wireguard_wg0 option public_key 'xxxxxxxxxxxxxxxxxxxxxxx' option preshared_key 'xxxxxxxxxxxxxxxxxxxxxxx' option route_allowed_ips '1' option description 'Remote' option endpoint_host 'remote.location' list allowed_ips '10.0.0.3/32' list allowed_ips '192.168.165.0/24'
Thanks in advance, i hope someone could help!!