location-importer.in: delete 6to4 IPv6 space as well

Message ID 0fdbd9d4-83c6-8567-a093-a5c571f55835@ipfire.org
State Accepted
Commit b4d5b2a6e0603db7d264d00cd67d9774b4a66bac
Headers
Series location-importer.in: delete 6to4 IPv6 space as well |

Commit Message

Peter Müller Jan. 16, 2021, 6:05 p.m. UTC
  2002::/16 is an anycast prefix for 6to4 scenarios, as specified in RFC
3068. We currently process an announcement from Hurricane Electric for
it, and since it is an anycast network, multiple entities across the
world announce it as well.

Thereof, it does not make sense to include it in the database - as of
today, we do not have a country for it, either.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
---
 src/python/location-importer.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Comments

Michael Tremer Jan. 25, 2021, 9:30 p.m. UTC | #1
Thank you...

> On 16 Jan 2021, at 18:05, Peter Müller <peter.mueller@ipfire.org> wrote:
> 
> 2002::/16 is an anycast prefix for 6to4 scenarios, as specified in RFC
> 3068. We currently process an announcement from Hurricane Electric for
> it, and since it is an anycast network, multiple entities across the
> world announce it as well.
> 
> Thereof, it does not make sense to include it in the database - as of
> today, we do not have a country for it, either.
> 
> Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
> ---
> src/python/location-importer.in | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/python/location-importer.in b/src/python/location-importer.in
> index a4be445..1a025bb 100644
> --- a/src/python/location-importer.in
> +++ b/src/python/location-importer.in
> @@ -768,8 +768,9 @@ class CLI(object):
> 				-- DELETE link local address space
> 				DELETE FROM announcements WHERE family(network) = 4 AND network <<= '169.254.0.0/16';
> 
> -				-- DELETE IPv6 to IPv4 (6to4) address space
> +				-- DELETE IPv6 to IPv4 (6to4) address space (RFC 3068)
> 				DELETE FROM announcements WHERE family(network) = 4 AND network <<= '192.88.99.0/24';
> +				DELETE FROM announcements WHERE family(network) = 6 AND network <<= '2002::/16';
> 
> 				-- DELETE multicast and reserved address space
> 				DELETE FROM announcements WHERE family(network) = 4 AND network <<= '224.0.0.0/4';
> -- 
> 2.26.2
  

Patch

diff --git a/src/python/location-importer.in b/src/python/location-importer.in
index a4be445..1a025bb 100644
--- a/src/python/location-importer.in
+++ b/src/python/location-importer.in
@@ -768,8 +768,9 @@  class CLI(object):
 				-- DELETE link local address space
 				DELETE FROM announcements WHERE family(network) = 4 AND network <<= '169.254.0.0/16';
 
-				-- DELETE IPv6 to IPv4 (6to4) address space
+				-- DELETE IPv6 to IPv4 (6to4) address space (RFC 3068)
 				DELETE FROM announcements WHERE family(network) = 4 AND network <<= '192.88.99.0/24';
+				DELETE FROM announcements WHERE family(network) = 6 AND network <<= '2002::/16';
 
 				-- DELETE multicast and reserved address space
 				DELETE FROM announcements WHERE family(network) = 4 AND network <<= '224.0.0.0/4';