Community discussions

MikroTik App
 
jaredharet
newbie
Topic Author
Posts: 31
Joined: Fri Feb 23, 2007 11:25 pm
Location: Bulgarian

Please help with routing

Fri Feb 23, 2007 11:32 pm

I have 2 ISP
And i wont
1 ISP for - ftp, http, skype, icq, game traffic
2 ISP for p2p traffic
 
User avatar
maximan
Trainer
Trainer
Posts: 543
Joined: Sat May 29, 2004 12:10 am
Location: Rio Cuarto, Argentina
Contact:

Fri Feb 23, 2007 11:35 pm

check policy routing on manual

Maximiliano
 
jaredharet
newbie
Topic Author
Posts: 31
Joined: Fri Feb 23, 2007 11:25 pm
Location: Bulgarian

Fri Feb 23, 2007 11:53 pm

I add 2 isp and i have internet but i have to add priority for other port.
Exemple.

I want all request for port 80 -------> ISP1


And sorry for my bad English.
 
User avatar
mneumark
Member
Member
Posts: 370
Joined: Thu Jun 08, 2006 7:20 am
Location: Escalon, CA
Contact:

Sat Feb 24, 2007 9:16 am

Rough example,

See manual for more details http://www.mikrotik.com/testdocs/ros/2.9/ip/route.php

*** Replace x.x.x.x with your gateway to the ISP of your choice... ***

/ip firewall mangle add chain=prerouting protocol=tcp dst-port=80 action=mark-routing new-routing-mark=HTTPForward passthrough=yes comment="" disabled=yes

Then add a route for the new marked routing...

/ip route add gateway=x.x.x.x routing-mark=HTTPForward comment="HTTP Traffic" disabled=no

Then add a route rule for the new routing...

/ip route rule add src-address=0.0.0.0/0 table=HTTPForward action=lookup
 
jaredharet
newbie
Topic Author
Posts: 31
Joined: Fri Feb 23, 2007 11:25 pm
Location: Bulgarian

Sat Feb 24, 2007 11:57 am

ISP gateway is 192.168.2.1

When i add
/ip route add gateway=192.168.2.1 routing-mark=HTTPForward comment="HTTP Traffic" disabled=no
And i haven`t ping to mikrotik and i haven`t internet
 
User avatar
mneumark
Member
Member
Posts: 370
Joined: Thu Jun 08, 2006 7:20 am
Location: Escalon, CA
Contact:

Sun Feb 25, 2007 9:11 am

If you are unable to ping your MT you might have a firewall or something else going on... This rule shouldn't effect icmp packets.
 
jaredharet
newbie
Topic Author
Posts: 31
Joined: Fri Feb 23, 2007 11:25 pm
Location: Bulgarian

Mon Feb 26, 2007 11:18 pm

How to disable uploud traffic through ISP1
 
User avatar
jwcn
Forum Guru
Forum Guru
Posts: 1495
Joined: Sun Aug 27, 2006 6:49 am
Location: Maryland, USA
Contact:

Tue Feb 27, 2007 2:09 pm

Check out the load balancing section in the Wiki