Community discussions

MikroTik App
 
MrIC
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Tue Jan 13, 2009 11:34 pm

messenger mark routing script .

Tue Apr 21, 2009 11:22 am

i have 2 wans and i'm using ECMP to load balance betwen them but this way has some probs so messengers dissconect and reconect every 10-30 min .
i tried to mark routing both of yahoo & hotmail to use 1 wan
this is my config :

/ip firewall mangle
add action=mark-routing chain=prerouting comment="Y! routing mark" disabled=\
no dst-port=5050 new-routing-mark=Yahoo passthrough=no protocol=tcp
add action=mark-routing chain=prerouting comment="MSN routing mark" disabled=\
no dst-port=1863 new-routing-mark=MSN passthrough=no protocol=tcp
/ip route
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.0.1 routing-mark=MSN scope=30 target-scope=10
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.0.1 routing-mark=Yahoo scope=30 target-scope=10


but i think that it doesn't work .
So this script is right or can someone tell me the right one .
 
MrIC
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 66
Joined: Tue Jan 13, 2009 11:34 pm

Re: messenger mark routing script .

Thu Apr 23, 2009 1:35 am

any replay ?
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: messenger mark routing script .

Thu Apr 23, 2009 1:01 pm

i would do this like that:
1) in mange add connection mark
2) in mange relying on connection mark only mark routing for know marked connections
3) in ip route add default route, that works
4) in ip route add route for marked traffic