Community discussions

MikroTik App
 
User avatar
savagedavid
Trainer
Trainer
Topic Author
Posts: 320
Joined: Thu Aug 25, 2005 12:58 pm
Location: Cape Town, South Africa
Contact:

Routing Filter conversion v6 to v7

Wed Dec 15, 2021 11:46 am

I have noticed when migrating from v6 filters to v7 filter the prefix length 0-32 does not seem to translate properly.

For example this
prefix-length=0-32
translates to
 dst-len > 32 

where is my mind it should be
dst-len <= 32
 
User avatar
Splash
Member Candidate
Member Candidate
Posts: 206
Joined: Fri Oct 16, 2015 10:09 am
Location: Johannesburg, South Africa

Re: Routing Filter conversion v6 to v7

Wed Dec 15, 2021 3:02 pm

I picked up the same, and ended up rewriting all filters...
I'd say the conversion rate is probably close to 20% successful so far.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7038
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Routing Filter conversion v6 to v7

Wed Dec 15, 2021 3:18 pm

Please list all 80% things that did not convert properly.
 
User avatar
Splash
Member Candidate
Member Candidate
Posts: 206
Joined: Fri Oct 16, 2015 10:09 am
Location: Johannesburg, South Africa

Re: Routing Filter conversion v6 to v7

Wed Dec 15, 2021 6:32 pm

Here are a few examples. If you would like me to provide you with the full before and after, please let me know how I can send it to you?
  • prefix-length=0-32 changes to dst-len > 32
  • all IPv4 transit routes, ie 0.0.0.0/0 were marked as invalid
  • all IPV6 outbound routes were not advertised

Example1
add action=discard chain=V4-BLOCK-RFC1918 prefix=192.168.0.0/16 prefix-length=0-32
--->
add chain=V4-BLOCK-RFC1918 disabled=no rule="if (dst in 192.168.0.0/16 && dst-len > 32) { reject; }"

Example2
add action=accept chain=V4-IPT-BGP-IN-AS000000 prefix=0.0.0.0/0 set-bgp-communities="" set-bgp-local-pref=110 set-route-targets=000000:110
add action=discard chain=V4-IPT-BGP-IN-AS000000
--->
add chain=V4-IPT-BGP-IN-AS000000 disabled=no rule="reject;"

Example3
add action=accept chain=V6-IPT-BGP-OUT-AS000000 prefix=2000:0000::/32 set-bgp-communities=""
add action=accept chain=V6-IPT-BGP-OUT-AS000000 prefix=2000:0000::/48 set-bgp-communities=""
add action=discard chain=V6-IPT-BGP-OUT-AS000000
--->
add chain=V6-IPT-BGP-OUT-AS000000 disabled=no rule="reject;"
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7038
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Routing Filter conversion v6 to v7

Wed Dec 15, 2021 8:20 pm

What was the first ROSv7 version you upgraded to?
Your examples that supposedly should disappear upgrades correctly
81  chain=test-set rule="if (dst == 2000::/32) { accept; }" 

82  chain=test-set rule="if (dst == 2000::/48) { accept; }" 

83  chain=test-set rule="set bgp-local-pref 110; delete bgp-ext-communities rt; append bgp-ext-communities rt:0:110; accept;" 
 
User avatar
Splash
Member Candidate
Member Candidate
Posts: 206
Joined: Fri Oct 16, 2015 10:09 am
Location: Johannesburg, South Africa

Re: Routing Filter conversion v6 to v7

Wed Dec 15, 2021 9:16 pm

This was from version 6.49.2 (stable) to 7.1 (stable)
 
uenderson
just joined
Posts: 13
Joined: Mon Dec 26, 2011 2:57 pm
Location: Brasil
Contact:

Re: Routing Filter conversion v6 to v7

Mon May 30, 2022 8:50 pm

any list of all filter changes?

Who is online

Users browsing this forum: No registered users and 20 guests