Community discussions

MikroTik App
 
drnicolau
just joined
Topic Author
Posts: 19
Joined: Thu Jun 29, 2006 8:38 pm
Location: Villa Carlos Paz

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

Fri Aug 11, 2006 7:04 am

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.
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Fri Aug 11, 2006 8:16 am

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.
 
drnicolau
just joined
Topic Author
Posts: 19
Joined: Thu Jun 29, 2006 8:38 pm
Location: Villa Carlos Paz

Sun Aug 13, 2006 3:19 am

thanks sergjs it worked perfectly as you said me ..... :P