Community discussions

MikroTik App
 
reza.mnp
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Mon Jun 11, 2007 9:44 am
Location: ilam - iran
Contact:

address-lists and ip routes

Mon Nov 29, 2010 10:01 pm

There is an address-lists with name "IR".
i want route traffic to gateway x.x.x.x if destination address is "IR"
and other "0.0.0.0/0" route to y.y.y.y gateway.
thanks allot.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: address-lists and ip routes

Mon Nov 29, 2010 10:48 pm

http://wiki.mikrotik.com/wiki/Policy_Ro ... erOS_2.9.x
Adjust the mangle rule to not look for TCP/80 traffic, but for traffic destined to the address list. Also adjust the mark names as required.
 
reza.mnp
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Mon Jun 11, 2007 9:44 am
Location: ilam - iran
Contact:

Re: address-lists and ip routes

Tue Nov 30, 2010 5:32 am

Where is the address-list ?
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: address-lists and ip routes

Tue Nov 30, 2010 6:19 am

I said you have to adjust it. dst-address-lists work in mangle like they do in all other firewall sections, and the manual applies.
/ip firewall mangle add chain=prerouting protocol=tcp dst-port=80 action=mark-routing new-routing-mark=HTTP passthrough=yes comment="" disabled=no
becomes
/ip firewall mangle add chain=prerouting dst-address-list=IR action=mark-routing new-routing-mark=IR passthrough=yes comment="" disabled=no
Replace all references to "HTTP" with "IR" in the other commands.

Who is online

Users browsing this forum: No registered users and 43 guests