Community discussions

MikroTik App
 
rxrxrx
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 95
Joined: Fri Mar 13, 2009 4:45 pm

help about mark routing

Sun May 02, 2010 1:47 am

hi,
ive about 20 different subnets,all in
192.168.5.0/24
192.168.6.0/24
...
...
...
192.168.19.0/24

and 192.168.200.0/24

now there is a need for mark routing,all of those except one (192.168.19.0/24) , so i cant basicly do 192.168.0.0/16

is there an easy way for a such situation, so i wont need to add a rule for each.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: help about mark routing

Mon May 03, 2010 12:34 am

src-address=!192.168.19.0/24
 
rxrxrx
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 95
Joined: Fri Mar 13, 2009 4:45 pm

Re: help about mark routing

Mon May 03, 2010 12:13 pm

src-address=!192.168.19.0/24
this is not a solution in my case,because there are other subnets that i dont want to mark too, ie 178.X.X.X
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: help about mark routing

Mon May 03, 2010 2:53 pm

/ip firewall address-list add address=192.168.19.0/24 list=exclude
/ip firewall mangle src-address=192.168.0.0/16 src-address-list=!exclude
 
rxrxrx
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 95
Joined: Fri Mar 13, 2009 4:45 pm

Re: help about mark routing

Tue May 04, 2010 3:32 pm

/ip firewall address-list add address=192.168.19.0/24 list=exclude
/ip firewall mangle src-address=192.168.0.0/16 src-address-list=!exclude
perfect

Who is online

Users browsing this forum: Amaan, Google [Bot] and 156 guests