Hi Mikrotik folks,
with great joy i saw ROS v7.6 brought back displaying route advertisements - awesome!
This way i could see an, from my point of view, unexpected behavior of a route filter.
According to the documentation of (BGP) route filters
Prefix Operators
IN - Return true if the prefix is the subnet of the provided network. If an operator is used to match prefixes from the address list (e.g "dst in list_name"), then it will match only the exact prefix.
I am using the following rule:
chain=ipv4-ebgp-provider-out rule="if (afi ipv4 && dst in ipv4-subnets-own-remote) {set bgp-path-prepend 2;accept}"
And i have the following entry in the list "ipv4-subnets-own-remote":
list=ipv4-subnets-own-remote address=123.87.184.0/24
For my understanding according to the documentation, the rule should only accept exactly "123.87.184.0/24"
Not 123.87.184.0/25, not 123.87.184.123/32 or anything else, only the exactly prefix match.
Looking at the advertisements, i see
peer=ipv4-ebgp-provider-1 dst=123.87.184.16 nexthop=99.115.135.123 origin=2
When i disable the rule above, the IP is not advertised - so i can be sure it's this rule which is accepting.
Is my understanding of the documentation wrong
(If an operator is used to match prefixes from the address list (e.g "dst in list_name"), then it will match only the exact prefix)
or is there a difference between the implementation and the documentation?
Do you have any other hint how i can make sure only the exact prefix of the address is accepted?
Thanks and best regards,
Stephan