robzr / sub2rbl

OpenWRT utility that syncs online RBLs to iptables via ipset sets.
26 stars 5 forks source link

Improve sed IPv4 regex for loading plain lists #12

Open ProBackup-nl opened 2 years ago

ProBackup-nl commented 2 years ago

0.0.0.0/8 is reserved according to IANA since 1981. 0.x.x.x IPv4 addresses shouldn't be routable and not end up in an RBL.

Though https://sigs.interserver.net/iprbl.txt contains 0.0.0.0 resulting in "ipset v6.29: Error in line 1: Null-valued element, cannot be stored in a hash type of set".

This fix excludes 0.x.x.x addresses to end up in ipset lists.