Community discussions

MikroTik App
 
Riajul74
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 68
Joined: Sun Feb 10, 2013 12:01 am

configure users use internet from specific connection.

Fri Jul 19, 2013 8:57 am

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.
 
User avatar
joshaven
Member
Member
Posts: 438
Joined: Fri May 06, 2011 1:50 am
Location: USA
Contact:

Re: configure users use internet from specific connection.

Sat Jul 20, 2013 6:32 am

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.
 
Riajul74
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 68
Joined: Sun Feb 10, 2013 12:01 am

Re: configure users use internet from specific connection.

Sat Jul 20, 2013 7:22 am

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 ?
 
Riajul74
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 68
Joined: Sun Feb 10, 2013 12:01 am

Re: configure users use internet from specific connection.

Tue Jul 23, 2013 10:45 pm

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.
 
User avatar
joshaven
Member
Member
Posts: 438
Joined: Fri May 06, 2011 1:50 am
Location: USA
Contact:

Re: configure users use internet from specific connection.

Wed Jul 24, 2013 3:59 pm

/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.
 
Riajul74
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 68
Joined: Sun Feb 10, 2013 12:01 am

Re: configure users use internet from specific connection.

Wed Jul 24, 2013 5:24 pm

thanks a lot brother. it helped me a lot.
 
Riajul74
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 68
Joined: Sun Feb 10, 2013 12:01 am

Re: configure users use internet from specific connection.

Wed Jul 24, 2013 8:46 pm

can you please help me with this ?

http://forum.mikrotik.com/viewtopic.php?f=2&t=75086
 
User avatar
joshaven
Member
Member
Posts: 438
Joined: Fri May 06, 2011 1:50 am
Location: USA
Contact:

Re: configure users use internet from specific connection.

Wed Jul 24, 2013 8:50 pm

can you please help me with this ?

http://forum.mikrotik.com/viewtopic.php?f=2&t=75086
Sorry, the hotspot feature is my biggest MikroTik weakness and cannot tell from what you posted what the solution would be.
 
Riajul74
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 68
Joined: Sun Feb 10, 2013 12:01 am

Re: configure users use internet from specific connection.

Wed Jul 24, 2013 8:53 pm

thanks. already you helped me lot. i have increased your karma :) i am waiting if anyone can give me solve.

Who is online

Users browsing this forum: mike7 and 50 guests