Lets say I have host A with Wireguard internal IP address of 10.77.77.1
and host B with Wireguard internal IP address of 10.77.77.2
I set up a route on host B:
Code: Select all
/ip route add dst-address=1.1.1.1 gateway=10.77.77.1
So I looked up and found that apparently I need to create a route that has a routing mark with it, which identifies the packets that are originated from within the LAN and destined for 1.1.1.1.
According to this thread viewtopic.php?t=162471 , I ran
Code: Select all
/routing table add name=abc fib
/routing rule add dst-address=1.1.1.1 action=lookup-only-in-table table=abc
/ip route add dst-address=1.1.1.1 gateway=10.77.77.1@main routing-table=abc