File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 14
14
IPTABLES=" /sbin/iptables"
15
15
16
16
# list of known spammers
17
- URLS=" https://www.spamhaus.org/drop/drop.lasso https://www.spamhaus.org/drop/edrop.lasso "
17
+ URLS=" https://www.spamhaus.org/drop/drop.txt https://www.spamhaus.org/drop/edrop.txt "
18
18
19
19
# local cache copy
20
- CACHE_FILE=" /tmp/drop.lasso "
20
+ CACHE_FILE=" /tmp/drop.txt "
21
21
22
22
# iptables custom chain name
23
23
CHAIN=" Spamhaus"
@@ -130,8 +130,8 @@ update_iptables() {
130
130
fi ;
131
131
132
132
# iterate through all known spamming hosts
133
- LASSOIP =" $( cut -d ' ' -f1 " $CACHE_FILE " | tr -d ' ;' | awk ' NF > 0' ) "
134
- for IP in $LASSOIP ; do
133
+ SPAMIP =" $( cut -d ' ' -f1 " $CACHE_FILE " | tr -d ' ;' | awk ' NF > 0' ) "
134
+ for IP in $SPAMIP ; do
135
135
if [ $LOG_BLOCKLIST_HITS -eq 1 ]; then
136
136
# add the ip address log rule to the chain
137
137
$IPTABLES -A " $CHAIN " -p 0 -s " $IP " -j LOG --log-prefix " [SPAMHAUS BLOCK]" -m limit --limit 3/min --limit-burst 10
You can’t perform that action at this time.
0 commit comments