I am trying to do something that seems fairly simple but I am not quite sure how to do it. I am using winbox v 4.13. There are two WAN connections. All traffic from the network is currently going out via WAN 1. However there is one machine with an IP address of 192.168.100.140, that I would like all Internet traffic to go out via WAN 2. Can someone guide me on how to accomplish this please?
Assuming WAN 2 has an Internet gateway of 2.2.2.2 and WAN 1 has an Internet gateway of 1.1.1.1:
/ip firewall mangle
add chain=prerouting src-address=192.168.100.140 action=mark-routing new-routing-mark=WAN2
/ip route
add dst-address=0.0.0.0/0 gateway=2.2.2.2 routing-mark=WAN2 distance=1
Then set the distance on your existing default route to 2.
Traffic from 192.168.100.140 will be marked as “WAN2”, there’ll be a lower distance default route for traffic with that mark out via 2.2.2.2, all other traffic won’t have that mark and fall through to the higher distance default route via 1.1.1.1.
Thank you very much. That worked