Community discussions

MikroTik App
 
RMaxwell110
just joined
Topic Author
Posts: 1
Joined: Thu Nov 09, 2023 8:35 pm

ROS v7 Route Filter Question

Thu Nov 09, 2023 8:43 pm

I've got a blacklist/blackhole router that is running running on ROS v6. I'm looking to migrate it to ROS v7, but I'm having trouble with the new route filter methodology and honestly the documentation is lacking. In ROS v6, I've got a series of filters that distribute via BGP both whitelists and blacklists based on matching route comments in the blacklist router:

add action=accept chain=BGP-MANAGED-OUT comment="Distribute Whitelist Routes to Managed Clients/Routers" route-comment=\
dswhitelist set-bgp-communities=65505:7777
add action=accept chain=BGP-MANAGED-OUT comment="Default - SpamHaus DROP" route-comment=SpamHaus set-bgp-communities=\
65505:6661

I'm not able to determine in ROS v7 how to match the route-comment in the new filter methodology. Has anyone done this yet?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: ROS v7 Route Filter Question  [SOLVED]

Fri Nov 10, 2023 12:58 am

"if ( comment text xxx ) { do_some_stuff }"
All available properties are listed in the manual:
https://help.mikrotik.com/docs/display/ ... lterSyntax

And by pressing tab while typing autocompletion will suggest supported properties/commands.

Who is online

Users browsing this forum: No registered users and 3 guests