fix: replace dead firehol feeds, fix arithmetic under set -e

Replace bruteforcelogin and bi_any_2_30d (404) with dshield and
spamhaus_drop. Guard ((var++)) with || true to prevent set -e from
killing the script when the pre-increment value is 0.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
user
2026-02-15 02:41:32 +01:00
parent 23b4d6f2a4
commit 19f54da3cf
2 changed files with 13 additions and 13 deletions

View File

@@ -24,12 +24,12 @@ _FEEDS = [
("et_compromised.ipset",
"https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/et_compromised.ipset",
"ET Compromised"),
("bruteforcelogin.ipset",
"https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/bruteforcelogin.ipset",
"BruteForce"),
("bi_any_2_30d.ipset",
"https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/bi_any_2_30d.ipset",
"Badips 30d"),
("dshield.netset",
"https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/dshield.netset",
"DShield"),
("spamhaus_drop.netset",
"https://raw.githubusercontent.com/firehol/blocklist-ipsets/master/spamhaus_drop.netset",
"Spamhaus DROP"),
]
_MAX_AGE = 86400 # Refresh cache after 24h