i have 2 sites,
A - netgear wax206, openwrt (domain .lan)
B - gl.inet mt-6000, openwrt (domain .lan)
i need to access some servers from site B to site A (not so much the other way around)
i have wireguard set up on both routers, and wg clients on some machines i use on site B to access site A
one of the use cases for site A is it runs a storage backup server, so i want to rsync data there periodically
if i turn on wg on a laptop on site B, i can access servers on site A, but can no longer see servers on site B, which is understandable, but how can i solve it ?
id start by changing the domain on one of the 2 sites
site A - domain .lan
site B - domain ???
is there a way to setup router to router wireguard, and make dns resolve through wireguard when using a specific domain ?
As @egc explained, there is no reason to use wg on the devices. I have two separate sites, with several networks inside each site, and any device on a site can reach any server on any site.
Start with configuring different network segments and domains on each site. Then configure a router-to-router link using wg. Finally, open the traffic on the firewall, and configure DNSs to ask each other for the relevant domains.
Step 1:
Configure different network segments on each site. For example, site A should only have networks in the 192.168.0.0/17 range (from 192.168.0.0/24 to 192.168.128.0/24) and B should only have networks in the 192.168.129.0/17 range (from 192.168.129.0/24 to 192.168.254.0/24).
Step 2:
Configure different domains on each site. From example, use ".sitea.lan" for site A and ".siteb.lan" for site B.
Step 3:
Configure a site-to-site wireguard tunnel, using a different network segment. In site A:
On thing I had to do for DNSMasq is to instruct DNSMasq to also listen on non local IP addresses but I use site B's routers address as DNS server instead of the WG address in this example (list server '/siteb.lan/172.16.0.2'), so probably not necessary here as the WG subnet is local
Disable Local Service only (DNSMasq: -local-service):
Luci DNS-DHCP > Filter > Local service only : untick/disable
Why would you involve a third party if you can do it yourself ?
If the OP ever wants to access devices in Site A and/or Site B from another location then using Tailscale Mesh VPN makes more sense.
Setting up a Site to Site VPN and then having a setup a Remote Access VPN to Site A and Site B is clunky. Not to mention more resources on the Routers.
You can have a site-to-site setup and also have other peers connected to the same WireGuard instances, it is even possible to connect to one site with another peer and then have access to the other site as well, not really rocket science, no third party necessary