firehol / blocklist-ipsets

ipsets dynamically updated with firehol's update-ipsets.sh script
https://iplists.firehol.org
3.2k stars 386 forks source link

Normshield crashes update, creates junk ipsets #296

Open Shellcat-Zero opened 7 months ago

Shellcat-Zero commented 7 months ago

There appears to be some really bad parsing problem, update-ipsets crashes at:

            normshield_all_"><input| creating lib directory for tracking it
                                   | entries: 0, unique IPs: 0
/usr/sbin/update-ipsets: line 1990: IPSET_MINS[normshield_all_"><input] : bad array subscript (error token is "IPSET_MINS[normshield_all_"><input] ")

Files in the /etc/firehol/ipsets directory look like:

 normshield_high_s.ipset
 normshield_high_site-header__col.ipset
 normshield_high_site-header__col.source
'normshield_high_sizes="192x192".ipset'
'normshield_high_sizes="192x192".source'
'normshield_high_sizes="32x32".ipset'
'normshield_high_sizes="32x32".source'
'normshield_high_">.source'
'normshield_high_(.source'
'normshield_high_)-(.source'
'normshield_high_);.source'
 normshield_high_-.source
'normshield_high_=.source'
'normshield_high_[];.source'
 normshield_high_{.source
'normshield_high_||.source'
...
Shellcat-Zero commented 7 months ago

This was encountered with update-ipsets --enable-all if that helps.