RB with two uplinks

Hi

I have a Mikrotik router that is configured with two uplinks

I need to be able to contact the router via the second (backup) uplink

But if I connect to the router via the second uplink the response will go through the default route: the first uplink

Is there a way to force responses to to go back out the second uplink ?
Do I need a postrouting mangle rule ?

thanks
yann

Try this:

/ip firewall mangle
add chain=input in-interface=WAN1 action=mark-connection new-connection-mark=wan1
add chain=input in-interface=WAN2 action=mark-connection new-connection-mark=wan2
add chain=postrouting connection-mark=wan1 action=mark-routing new-routing-mark=wan1 passthrough=no
add chain=postrouting connection-mark=wan2 action=mark-routing new-routing-mark=wan2 passthrough=no
/ip route
add dst-address=0.0.0.0/0 gateway=wan1 routing-mark=wan1
add dst-address=0.0.0.0/0 gateway=wan2 routing-mark=wan2

Thanks Caci, I’ll give that a try