Any plans "discard" action to be implemented soon ?
Any plans "numbering order" to be fixed via winbox ?
More details in help.mikrotik.com for filtering will be nice
Look like filtering is not fully completed yet.
1 chain=ospf-out prefix=10.10.0.0/16 prefix-length=0-32 invert-match=no action=discard set-bgp-prepend-path=""
2 chain=ospf-in prefix=10.10.0.0/16 prefix-length=0-32 invert-match=no action=discard set-bgp-prepend-path=""
/routing/filter/rule/add chain=ospf-in rule="if (dst in 10.10.0.0/16 && dst-len in [0-32]) { reject}"
Ok I'm little confused .. sorry@jspool, there is no dynamic-in chain in ROSv7
@dakobg
something likeCode: Select all/routing/filter/rule/add chain=ospf-in rule="if (dst in 10.10.0.0/16 && dst-len in [0-32]) { accept}"
chain=ospf-out rule="if (dst in 10.10.0.0/16 && dst-len > 24) { reject }"
Ohh ok so no way to remove them from MAIN, I have only ~40 routes in MAIN and is not a big issue, however for some users with more entries this can be somehow frustrating.Yes sorry type, it was meant to be reject.
As was mentioned previously there is no "discard". Those routes will appear in the routing table as "filtered" and by default will not be redistributed further.
If it's used to change parameters of default route from dhcp, you can add static one (1.1.1.1 is any random address, it won't be used):Is there a way to get the below filter to work on 7.1+
/routing filter
add action=accept chain=dynamic-in distance=18 prefix=0.0.0.0/0 prefix-length=0 set-distance=1 set-routing-mark=Starlink
/ip route add dst-address=0.0.0.0/0 gateway=1.1.1.1 comment=dhcp1 routing-table=Starlink disabled=yes
:if ($bound=1) do={
/ip route set [find where comment="dhcp1"] gateway=$"gateway-address" disabled=no
} else={
/ip route set [find where comment="dhcp1"] disabled=yes
}
If you have a lot of OSPF routes that you need to drop then possibly right way is to rethink your network design, but do not drop routes by filters. Possibly use multiple areas and area ranges.