Community discussions

MikroTik App
 
User avatar
Splash
Member Candidate
Member Candidate
Topic Author
Posts: 206
Joined: Fri Oct 16, 2015 10:09 am
Location: Johannesburg, South Africa

V7: Route Filters Assist

Tue Dec 07, 2021 9:37 am

Could someone point me in the right direction regarding the conversion of V6 route filters to V7.

Through the upgrade process this is not automatically done and requires me to rebuild my full rule set.
I tested the route filter conversion from V6 to V7 but it doesn't work even though it is marked as completed.
The filters are removed from the V7 config after an upgrade.
https://help.mikrotik.com/docs/pages/vi ... Operators

Would anyone know what the syntax is to mark a route as unreachable based on a matcher.
I have used a basic bgp-communities as an example

example:
add action=accept bgp-communities=no-export chain=BGP-IN set-type=unreachable
becomes
if (bgp-communities equal no-export) {set xxxxxxx; accept}
gw only works with an IP
gw-interface only works with a interface

https://help.mikrotik.com/docs/pages/vi ... yOperators

I don't see an operator for type unreachable in V7...

*note in the docs "bgp-communites" is incorrectly spelt in the docs.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7042
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: V7: Route Filters Assist

Tue Dec 07, 2021 11:04 am

There is no such thing as type unreachable in v7.
You should set "blackhole".
Should be something like
if (bgp-communities equal no-export) {set blackhole yes; accept}
 
User avatar
Splash
Member Candidate
Member Candidate
Topic Author
Posts: 206
Joined: Fri Oct 16, 2015 10:09 am
Location: Johannesburg, South Africa

Re: V7: Route Filters Assist

Tue Dec 07, 2021 11:20 am

ah! I tried to blackhole, but didn't try the "yes" option. appreciate the help.

Who is online

Users browsing this forum: No registered users and 12 guests