Hello,
I’m really stuck about policy routing in linux.
Hope you can help me figure out.
So, my server have 2 WAN, first is default WAN A with public IP that directly connect to modem and second is WAN B that is connected to mikrotik router.
The problem is that connected to mikrotik router, I had dst-nat in mikrotik router that forward the connection to server but it’s not working as I know this is because the dual WAN in server.
Topology:
In mikrotik the default WAN is ISP A.
I had dst-nat that redirect connection to server from IP A that is not working.
This is ip route in server:
for now I just add 192.168.0.0/16 so subnet 192.168.10.0 can access the server and server can access the subnet. but outside router still can’t access using dst-nat via 31.32.33.10
default via 31.32.33.9 dev eno4 proto static metric 102
default via 192.168.10.1 dev br0 proto static metric 425
31.32.33.8/29 dev eno4 proto kernel scope link src 31.32.33.11 metric 102
192.168.0.0/16 dev br0 scope link
192.168.10.0/24 dev br0 proto kernel scope link src 192.168.10.10 metric 425
dst-nat in mikrotik:
add action=dst-nat chain=dstnat dst-address=
!192.168.10.0/24 dst-address-type=local dst-port=8765 protocol=tcp
to-addresses=192.168.10.10 to-ports=8765
What do I need in routing so dst-nat will work?
Thank you