]> git.ipfire.org Git - people/ms/libloc.git/commitdiff
location-importer: DELETE local loopback address space
authorPeter Müller <peter.mueller@ipfire.org>
Wed, 13 May 2020 19:32:51 +0000 (19:32 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 13 May 2020 20:46:15 +0000 (20:46 +0000)
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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/location-importer.in

index afd8f4a79589c371775899fe02b646f47831018f..f9f436fe2add20d7cd113ed0c49c403c6a2c4c94 100644 (file)
@@ -516,6 +516,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';