Page 1 of 1
configure users use internet from specific connection.
Posted: Fri Jul 19, 2013 8:57 am
by Riajul74
Hello ,
i just want to make a simple rule on my router rb450. i have two ISP on my router and i made load balancing. now i want to define some user will use specific connection like below.
ISPS are : A and B
192.168.2.2-192.168.2.20 will use ISP A
192.168.2.21-192.168.2.40 will use ISP B
please help me with this.
Re: configure users use internet from specific connection.
Posted: Sat Jul 20, 2013 6:32 am
by joshaven
You need to identify the traffic with the ip firewall mangle feature and add a routing mark to the traffic. Then you need that connectons route to have the matching routing mark.
Re: configure users use internet from specific connection.
Posted: Sat Jul 20, 2013 7:22 am
by Riajul74
You need to identify the traffic with the ip firewall mangle feature and add a routing mark to the traffic. Then you need that connectons route to have the matching routing mark.
Can you please give me example with code please ?
Re: configure users use internet from specific connection.
Posted: Tue Jul 23, 2013 10:45 pm
by Riajul74
You need to identify the traffic with the ip firewall mangle feature and add a routing mark to the traffic. Then you need that connectons route to have the matching routing mark.
hello again, i tried myself many times. but i am not successes . please help me to configure with this. i want to keep my load balancing and fail over for all user. only specific user will go through my mentioned isp.
Re: configure users use internet from specific connection.
Posted: Wed Jul 24, 2013 3:59 pm
by joshaven
/ip firewall mangle
add action=mark-routing chain=prerouting new-routing-mark=ISP_A passthrough=no src-address=192.168.2.2-192.168.2.20
add action=mark-routing chain=prerouting new-routing-mark=ISP_B passthrough=no src-address=192.168.2.21-192.168.2.40
/ip route add distance=1 gateway=ether1-ISP_A routing-mark=ISP_A
/ip route add distance=1 gateway=ether2-ISP_B routing-mark=ISP_B
You'll have to adjust the IP route statements to match the correct gateways.
Re: configure users use internet from specific connection.
Posted: Wed Jul 24, 2013 5:24 pm
by Riajul74
thanks a lot brother. it helped me a lot.
Re: configure users use internet from specific connection.
Posted: Wed Jul 24, 2013 8:46 pm
by Riajul74
Re: configure users use internet from specific connection.
Posted: Wed Jul 24, 2013 8:50 pm
by joshaven
Sorry, the hotspot feature is my biggest MikroTik weakness and cannot tell from what you posted what the solution would be.
Re: configure users use internet from specific connection.
Posted: Wed Jul 24, 2013 8:53 pm
by Riajul74
thanks. already you helped me lot. i have increased your karma
i am waiting if anyone can give me solve.