[1/4] location-importer: DELETE local loopback address space

Message ID ee568fba-7c8e-6e0f-4194-c2f4669382eb@ipfire.org
State Accepted
Commit cedee656ab1bfa16080f5fde7f3270091125fa6a
Headers
Series [1/4] location-importer: DELETE local loopback address space |

Commit Message

Peter Müller May 13, 2020, 7:32 p.m. UTC
  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(+)
  

Patch

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';