Hi all,
thank you for reading.
This is my first time posting here.
Got 2x RB1100x4 (both firmware 7.13.4) serving 2 different sites with 2 different networks.
Site-to-Site Wireguard between the 2 sites is working perfectly.
Also I’m able to connect from the outside with my PC / Smartphone using WireGuard to each of the 2 site.
But …
… when I’m connected to 1 of the sites (doesn’t matter which one) from my device [outside of both networks] using WireGuard I’m just able to connect to the addresses of the site I’m connected to and not to the addresses of the other site.
I’m wondering if it’s possible to connect to 1 of the site being able to connect also with addresse of the other site that is site-to-site Wireguarded with the 1 I’m connected to.
Where, the wireguard address on R1 is 172.16.16.1/24 and the SUBNETs refer to the remote subnets on R2 that
a. need to be reached by local R1 users or incoming remote warriors
b. are coming in via wireguard to visit local R1 subnets.
(or both a. and b.)
R1 Should have routes for any such SUBNETS /ip route
add dst-address=SUBNET1 gateway=wireguard-name routing-table=main
add dst-address=SUBNET2 gateway=wireguard-name routing-table=main
R1 Firewall rules
-allow remote wireguard users to local subnets if applicable, can use src-address-lists or src-address to narrow down to specific users, if required.
-allow local users to enter wireguard tunnel
@anav: I was missing relay forward chain rule on R1.
Then I added it (also on R2, even if this last is probably unuseful) and also I modified allowed addresses on R1 peer, limiting IP to nnn.nnn.nnn.2/32 (previously I wrote there the entire subnet nnn.nnn.nnn.0/24) and instead, as you described, I left the entire subnet into allowed addresses on R2.
Finally I think routes, fw rules and peers are ok on both R1 and R2.
Anyway still can’t reach R2 subnets when connected to R1 via WireGuard RoadWarrior [and also can’t reach R1 subnets when connected to R2 via WireGuard RoadWarrior].
My advice is to only use one Router as server, for the Router to Router Traffic.
The second wireguard interface I would just use for external road warrior traffic to R2, directly.
The reason being, practically speaking if R1 is not working R1-R2 connectivity is zilch and you cannot use R1 to reach R2 and so you simply need an admin backup to reach R2.
…
With that in mind.
R1 # model = RB1100x4
/interface list add name=WAN
add name=LAN
/ip neighbor discovery-settings set discover-interface-list=LAN
Thank you @anav!
I really appreciate your prompt help!
I think I follow all steps you post but unfortunately I’m still not able to connect to addresses of R2 LAN while connected to R1 via WireGuard RoadWarrior.
WireGuard-BKP for R2 is working (and, as expected, I’m not able to connect to R1 LAN devices in this case … just to R2 LAN devices). .
I’m attaching here modified confs of both R1 and R2. R2conf.rsc (8.7 KB) R1conf.rsc (8.75 KB)
Could you please take a look at them and see if I miss something? (I already did it twice).