Route users on defined WAN
Posted: Mon Nov 20, 2017 1:27 pm
On my ruter I have Load Balancing in two WAN ports - WAN1 WAN2
In my network hava a six computers that choice the best way(WAN1, WAN2) to connect to defined target in web!
I want preroute one of the computers to use only WAN2.
I think I managed to do it success, but I'm not sure that it's right?
In my way I try with two computers in diferent networks!

This is the mangle rules on the top of mangle table that preroute the computers:
1 chain=prerouting action=mark-routing new-routing-mark=TO_WAN2
passthrough=no protocol=tcp src-address=192.168.0.2 log=no log-prefix=""
2 chain=prerouting action=mark-routing new-routing-mark=TO_WAN2
passthrough=no protocol=tcp src-address=192.168.1.111 log=no
log-prefix=""
In my network hava a six computers that choice the best way(WAN1, WAN2) to connect to defined target in web!
I want preroute one of the computers to use only WAN2.
I think I managed to do it success, but I'm not sure that it's right?
In my way I try with two computers in diferent networks!
This is the mangle rules on the top of mangle table that preroute the computers:
1 chain=prerouting action=mark-routing new-routing-mark=TO_WAN2
passthrough=no protocol=tcp src-address=192.168.0.2 log=no log-prefix=""
2 chain=prerouting action=mark-routing new-routing-mark=TO_WAN2
passthrough=no protocol=tcp src-address=192.168.1.111 log=no
log-prefix=""