Community discussions

MikroTik App
 
benw
just joined
Topic Author
Posts: 4
Joined: Sun Oct 08, 2023 6:25 pm

processing of route filter scripts

Sun Feb 11, 2024 12:49 pm

Good morning,
I am in the process of migrating our BGP router to v7. I have a very basic question for which I could not find an answer in the documentation, regarding the processing of the route filter rules.
My assumption is that the rules are processed from top to bottom and that, if no rule results in accept, the route will be discarded.
So to reject only a few routes, I expect the following script should work:

/routing filter rule
add chain=ipv4_in rule="if (dst in127.0.0.0/8) {reject}"
add chain=ipv4_in rule="if (dst in 192.0.0.0/24) {reject}"
add chain=ipv4_in rule="if (dst in 10.0.0.0/8) {reject} else {accept}"


Is that correct?

Who is online

Users browsing this forum: Buckeye, Kanzler, pexxie, rplant and 10 guests