Community discussions

MikroTik App
 
mihailJl
newbie
Topic Author
Posts: 38
Joined: Thu Jun 22, 2017 9:06 am

Route users on defined WAN

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!
Image

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=""
 
User avatar
CZFan
Forum Guru
Forum Guru
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

Re: Route users on defined WAN

Wed Nov 22, 2017 5:20 pm

I would suggest create an address list and add the 2 src IP's in that, then only one mangle rule required by using source address list
You will also need an additional route via WAN2 using the routing mark from the mangle rule