Community discussions

 
rodolfo
Long time Member
Long time Member
Topic Author
Posts: 543
Joined: Sat Jul 05, 2008 11:50 am

problem route fitering a subnet

Tue Jan 15, 2013 7:04 pm

Hi all.
I have some routes coming from bgp like:
10.83.1.0/24
...
10.83.200.0/24

If I apply to ebgp connection this filter:
/chain=drop10 prefix=10.83.1.0/24 action=discard

it correctly remove the corresponding route.

If I apply this filter
/chain=drop10 prefix=10.0.0.0/8 action=discard
or
/chain=drop10 prefix=10.0.0.0 prefix-len=0..8 action=discard
or
/chain=drop10 prefix=10.0.0.0 prefix-len=9..32 action=discard

it drop nothing.

How it is possibile to write a rule which drops a set of routes?

Thanks
rodolfo
IZ0UQV
 
cupis
Frequent Visitor
Frequent Visitor
Posts: 74
Joined: Sun Apr 10, 2011 1:25 am

Re: problem route fitering a subnet

Tue Jan 15, 2013 11:10 pm

If you expand the filters you have above, none of them will match the routes you've listed above.

Can you try the following and see if it matches, please?
/chain=drop10 prefix=10.0.0.0/8 prefix-len=24 action=discard
http://wiki.mikrotik.com/wiki/Manual:Ro ... ng_filters
If network mask is not set, /32 is assumed
Regards,
 
rodolfo
Long time Member
Long time Member
Topic Author
Posts: 543
Joined: Sat Jul 05, 2008 11:50 am

Re: problem route fitering a subnet

Wed Jan 16, 2013 10:28 pm

thanks cupis,
/chain=drop10 prefix=10.0.0.0/8 prefix-len=24 action=discard

works correctly.

now it remains some subnets to filter:
- 10.245.1.0/29
- 10 250.1.0/30
....

is it possible to filter all subnets 10.x.x.x/x ?
rodolfo
IZ0UQV
 
cupis
Frequent Visitor
Frequent Visitor
Posts: 74
Joined: Sun Apr 10, 2011 1:25 am

Re: problem route fitering a subnet

Wed Jan 16, 2013 10:35 pm

is it possible to filter all subnets 10.x.x.x/x ?
Yes, use something like:
/chain=drop10 prefix=10.0.0.0/8 prefix-len=8-32 action=discard
This will filter all routes in 10.0.0.0/8, with any prefix from /8 down to /32.

Regards,
 
rodolfo
Long time Member
Long time Member
Topic Author
Posts: 543
Joined: Sat Jul 05, 2008 11:50 am

Re: problem route fitering a subnet

Wed Jan 16, 2013 11:07 pm

it works!
thanks
rodolfo
IZ0UQV

Who is online

Users browsing this forum: No registered users and 8 guests