Hello All
My lan its 193.190.15.0/24
My comptuer 193.190.15.9
GW1 1.1.1.1
GW2 1.1.2.2
all my network computers using the GW1
want to know how to make the 193.190.15.9 uses GW2
Thanks
Hello All
My lan its 193.190.15.0/24
My comptuer 193.190.15.9
GW1 1.1.1.1
GW2 1.1.2.2
all my network computers using the GW1
want to know how to make the 193.190.15.9 uses GW2
Thanks
You need to use IP firewall mangle rule to add a route mark to packets from the IP you want to leave via the different gateway and add a default rule specifying the gateway and the packet mark.
I don’t have a router board to hand right now, but the script it along these lines:
/ip firewall mangle add chain=forward src-address=193.190.15.9 action=mark-routing new-routing-mark=via-gw2
/ip route add dst-address=0.0.0.0/0 gateway=1.1.2.2 routing-mark=via-gw2
Hope this helps.
Ade
chain forward is not working
My bad, it should be prerouting chain