I'm trying to write a filter chain while will act as an inbound policy for BGP peers to only accept routes in RFC 1918 space.
I tried the following
add action=accept chain=RFC1918 comment="10.0.0.0 - 10.255.255.255" disabled=no invert-match=no prefix=\
add action=accept chain=RFC1918 comment="172.16.0.0 - 172.31.255.255 " disabled=no invert-match=no prefix=\
172.16.0.0 prefix-length=12 set-bgp-prepend-path=""
add action=accept chain=RFC1918 comment="192.168.0.0 - 192.168.255.255" disabled=no invert-match=no prefix=\
add action=discard chain=RFC1918 comment="Discard All Routes Not In RFC1918" disabled=no invert-match=no \
and advertised 192.168.1.0/24 thinking it would be accepted by the rule matching 192.168.0.0/16 however the /24 route was never installed in the main routing table.
Can anyone please advise what I'm doing wrong or if I'm going about this all wrong?
I've tested this with RouterOS 5.22 running on I386 hardware
Thanks you for your help and taking the time to read this post