This should never appear in public BGP data, but since people tend to do really strange things on the interent, it's better to delete 127.0.0.0/8 data, just in case.
Signed-off-by: Peter Müller peter.mueller@ipfire.org --- src/python/location-importer.in | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/src/python/location-importer.in b/src/python/location-importer.in index 08c9ed7..c751332 100644 --- a/src/python/location-importer.in +++ b/src/python/location-importer.in @@ -512,6 +512,9 @@ class CLI(object): -- Delete anything that is not global unicast address space DELETE FROM announcements WHERE family(network) = 6 AND NOT network <<= '2000::/3';
+ -- DELETE local loopback address space + DELETE FROM announcements WHERE family(network) = 4 AND network <<= '127.0.0.0/8'; + -- DELETE RFC1918 address space DELETE FROM announcements WHERE family(network) = 4 AND network <<= '10.0.0.0/8'; DELETE FROM announcements WHERE family(network) = 4 AND network <<= '172.16.0.0/12';
Signed-off-by: Peter Müller peter.mueller@ipfire.org --- src/python/location-importer.in | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
diff --git a/src/python/location-importer.in b/src/python/location-importer.in index c751332..91abf3e 100644 --- a/src/python/location-importer.in +++ b/src/python/location-importer.in @@ -520,6 +520,22 @@ class CLI(object): DELETE FROM announcements WHERE family(network) = 4 AND network <<= '172.16.0.0/12'; DELETE FROM announcements WHERE family(network) = 4 AND network <<= '192.168.0.0/16';
+ -- DELETE test, benchmark and documentation address space + DELETE FROM announcements WHERE family(network) = 4 AND network <<= '192.0.0.0/24'; + DELETE FROM announcements WHERE family(network) = 4 AND network <<= '192.0.2.0/24'; + DELETE FROM announcements WHERE family(network) = 4 AND network <<= '198.18.0.0/15'; + DELETE FROM announcements WHERE family(network) = 4 AND network <<= '198.51.100.0/24'; + DELETE FROM announcements WHERE family(network) = 4 AND network <<= '203.0.113.0/24'; + + -- DELETE CGNAT address space (RFC 6598) + DELETE FROM announcements WHERE family(network) = 4 AND network <<= '100.64.0.0/10'; + + -- 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 FROM announcements WHERE family(network) = 4 AND network <<= '192.88.99.0/24'; + -- Delete networks that are too small to be in the global routing table DELETE FROM announcements WHERE family(network) = 6 AND masklen(network) > 48; DELETE FROM announcements WHERE family(network) = 4 AND masklen(network) > 24;
Signed-off-by: Peter Müller peter.mueller@ipfire.org --- src/python/location-importer.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/python/location-importer.in b/src/python/location-importer.in index 91abf3e..53c5cfe 100644 --- a/src/python/location-importer.in +++ b/src/python/location-importer.in @@ -512,10 +512,13 @@ class CLI(object): -- Delete anything that is not global unicast address space DELETE FROM announcements WHERE family(network) = 6 AND NOT network <<= '2000::/3';
+ -- DELETE "current network" address space + DELETE FROM announcements WHERE family(network) = 4 AND network <<= '0.0.0.0/8'; + -- DELETE local loopback address space DELETE FROM announcements WHERE family(network) = 4 AND network <<= '127.0.0.0/8';
- -- DELETE RFC1918 address space + -- DELETE RFC 1918 address space DELETE FROM announcements WHERE family(network) = 4 AND network <<= '10.0.0.0/8'; DELETE FROM announcements WHERE family(network) = 4 AND network <<= '172.16.0.0/12'; DELETE FROM announcements WHERE family(network) = 4 AND network <<= '192.168.0.0/16';
Signed-off-by: Peter Müller peter.mueller@ipfire.org --- src/python/location-importer.in | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/src/python/location-importer.in b/src/python/location-importer.in index 53c5cfe..79a024c 100644 --- a/src/python/location-importer.in +++ b/src/python/location-importer.in @@ -539,6 +539,10 @@ class CLI(object): -- DELETE IPv6 to IPv4 (6to4) address space DELETE FROM announcements WHERE family(network) = 4 AND network <<= '192.88.99.0/24';
+ -- DELETE multicast and reserved address space + DELETE FROM announcements WHERE family(network) = 4 AND network <<= '224.0.0.0/4'; + DELETE FROM announcements WHERE family(network) = 4 AND network <<= '240.0.0.0/4'; + -- Delete networks that are too small to be in the global routing table DELETE FROM announcements WHERE family(network) = 6 AND masklen(network) > 48; DELETE FROM announcements WHERE family(network) = 4 AND masklen(network) > 24;