I have 2 MT-routers (local and remote) at different locations which are connected with a WireGuard virtual network. To access the network behind the remote router (192.168.1.0/24) I cannot use the ip range in the local router as this subnet is also locally present. I thought to use another (unused) ip-range which is locally routed towards the WireGuard ip address of the remote router, where it is natted into the 192.168.1.0/24 subnet.
In the local router I added to the routing table:
Code: Select all
/ip route
add dst-address=192.168.6.0/24 gateway=wireguard_remote_ip
Code: Select all
/ip firewall nat
add action=dst-nat chain=dstnat dst-address=192.168.6.254 to-addresses=192.168.1.254
Code: Select all
/ip firewall nat
add action=dst-nat chain=dstnat dst-address=192.168.6.0/24 to-addresses=192.168.1.0/24
What is the concept I'm missing?