Hey all,
for testing Purposes I setup a private WireGuard-Tunnel between two private DSL-Networks.
Both Home-Networks should share a common network (best case) or a private network on each site made accessible to the other.
The setup which is WORKING as following:
Site 1:
RB941-2nd (hAP-lite) - Local LAN (Internet-Gateway) 192.168.178.0/24 - WireGuard-Interface 10.10.10.1/24
Site 2:
RB941-2nd (hAP-lite) - Local LAN (Internet Gateway) 192.168.178.0/24 - WireGuard-Interface 10.10.10.2/24
WireGuard is Setup on both sites, is connecting and handshaking.
Allowed IPs for the peers are:
Site1: 10.10.10.2/24, 10.10.10.0/24
Site2: 10.10.10.1/24, 10.10.10.0/24
One can ping each other’s Interface from the other site. Now the addition:
Site 1:
Additional Subnet: 10.10.20.0/24 (LAN-Ports and WLAN with DHCP), BridgePort: 10.10.20.1
Site 2:
Additional Subnet 10.10.30.0/24 (LAN-Ports and WLAN with DHCP), BridgePort: 10.10.30.1
IP-Routes are set for each other:
Site1 is routing to site2’s additional subnet and vice-versa via Gateway “wireguard1”
BOTH wireguard-peers have the OWN and the OTHER site’s additional subnet ADDED in list of allowed IPs (as /24):
PING is working
One can access the routers web-Interface of the other site via HTTP-Request of the other LAN (e.g.: Access http://10.10.30.1 from site1 (192.168.178.xxx)
Now I’m stuck.
In order to get above working, I setup NAT MASQUERADE (srcnat) from each WIREGUARD-INTERFACE to the OTHER’S SITE additional Subnet.
(e.g. on Site 1: Dst.Address 10.10.30.0/24, OUT. Interface “wireguard1” → masquerade)
Without masquerading, the other site’s subnet is not reachable.
But: No Other hosts are reachable than the other’s gateway.
If I setup another service (e.g. a webserver) on site1 (10.10.20.2 - Port80, working for site1, reachable),
site2 is not able to connect the webserver on port80 (Site2 - 192.168.178.xxx → WG 10.10.10.2 → WG 10.10.10.1 → 10.10.20.1 → 10.10.20.2:80).
Also: No PING from Router’s Terminal to this host on the other site (Site2 - hAP-Lite Terminal - 10.10.10.2 → WG 10.10.10.1 → 10.10.20.1 → 10.10.20.2 ICMP timeout)
The other way round, same. Only the gateway of this subnet is reachable (10.10.xx.1) from the other site.
Am I stuck in a NAT (masquerading) clusterf…ck?
Why is it not possible (or just beyond my knowledge) of reaching the other’s subnet without NAT masquerading?
NO Firewall-Rules (except NAT masquerade) are in place at the moment. Just to eliminate errors on that side.
Somehow got lost in understanding what is happening, I fear.
ANY help appreciated in this case - I owe you a beer afterwards!
Best regards,
Martin!
EDIT: The connection I try to establish is listed in both routers as “TCP SYN” - so i guess it’s “halfway there”, but the way back is missing?
