]> git.ipfire.org Git - people/ms/libloc.git/commit
location-importer: Fix Spamhaus ASN-DROP parsing
authorPeter Müller <peter.mueller@ipfire.org>
Sat, 17 Feb 2024 22:31:00 +0000 (22:31 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 19 Feb 2024 10:14:55 +0000 (10:14 +0000)
commit5c7cfeb21f59d44b2b12bcfdce85b3a61049fb4f
treec3dd0a8c357167b62fea346464d8508900ebc1c9
parent7824521145b42117e3fa9a9cf76cea83a06d4f11
location-importer: Fix Spamhaus ASN-DROP parsing

The format of this list has changed, from a plain text file with a
customer schema to JSON. Adjust our routines accordingly to make use of
this list again.

The second version of this patch incorporates Michael's feedback on the
first version, and adds AS names to the autnums table in case they are
not there already, which closes some gaps on rogue ASNs in the LACNIC
area.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Tested-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/location-importer.in