Page 1 of 1

p2p & well known ports & 2 gateways.....

Posted: Fri Aug 11, 2006 7:04 am
by drnicolau
hello, i have 2 adsl lines one with 2,5mbps and the other with 640kbps, i want to mark packets that are well known ports like tcp 80, 110, 25, 20, 1863, etc and send this packets through 2,5 adsl line , and the others packets that goes for the other one adsl,
i think that its the way to battle de p2p traffic, game traffic, etc.

but i have a problem, i wold like to recieve the code about doing this in my mikrotik,, becouse i tried to do it, but i couldn't it was too much for me,

sorry for my english!!!!

the adsls lines are in different interfaces, i dont want to do load blance!!! i want to select the well known traffic, and pass through to a selected adsl line- thanks.

Posted: Fri Aug 11, 2006 8:16 am
by sergejs
You have to use policy-routing.
- create mangle rules, that will assign routing-mark (action=mark-routing) to 80,110,25,20,1863.
- redirect them over second gateway, 'ip route add gateway=second_gateway routing-mark=from_mangle'.
- traffic not affected by routing-mark rules will be passed over default gateway (ip route add gateway=default_gateway).

P.S. p2p traffic should be passed over default gateway.

Posted: Sun Aug 13, 2006 3:19 am
by drnicolau
thanks sergjs it worked perfectly as you said me ..... :P