Community discussions

MikroTik App
 
millenium7
Long time Member
Long time Member
Topic Author
Posts: 538
Joined: Wed Mar 16, 2016 6:12 am

ROSv7 routing filter make an accept all rule?

Wed Aug 31, 2022 3:27 pm

I understand that the default behavior now in ROSv7 is the opposite of v6 and it will reject all routes unless a match is found
Thats fine (and probably should have been the default) however........ how exactly do I flip this behavior? or rather how do I add an 'accept all' rule to the bottom of the list. I can't find any mention of this in the help, as all my rules are written to filter out what I don't want, then allow everything else

Additionally. Is there a website or a tool that can convert v6 rules to v7? I believe this can happen if upgrading from v6 to v7? however if i'm using a brand new router I want to apply my templates
For now I just want to be able to take existing v6 rules i've written and make them work in v7, not spend half a day figuring out the syntax to convert across
 
aleksis
newbie
Posts: 25
Joined: Wed Apr 30, 2014 12:13 pm

Re: ROSv7 routing filter make an accept all rule?

Wed Aug 31, 2022 9:09 pm

Add 'accept' as the last statement.
For example:
/routing/filter/rule add rule="if (dst == 1.1.1.0/24 || dst == 2.2.2.0/24 ) { reject } if ( dst-len > 28) { reject } accept"

Who is online

Users browsing this forum: No registered users and 14 guests