mirror of
https://github.com/borekon/Blocklists.git
synced 2025-06-08 06:24:27 +02:00
Update blocklist-update.sh
Added statement to return if there's no matching ip. We should not accept non-matching ip; returning to keep beíng proccessed (ie fail2ban).
This commit is contained in:
parent
a0e9c6c7c3
commit
8348448448
|
@ -97,6 +97,8 @@ then
|
||||||
# Create the one and only firewall rule
|
# Create the one and only firewall rule
|
||||||
$IPTABLES_PATH -I $CHAINNAME -m set --match-set $CHAINNAME src -j $ACTION >>$MAILLOG 2>&1
|
$IPTABLES_PATH -I $CHAINNAME -m set --match-set $CHAINNAME src -j $ACTION >>$MAILLOG 2>&1
|
||||||
fi
|
fi
|
||||||
|
echo "Adding the return statement to the chain. We do not want to accept a non-matching ip; think about fail2ban" >>$MAILLOG
|
||||||
|
$IPTABLES_PATH -A $CHAINNAME -j RETURN >>$MAILLOG 2>&1
|
||||||
|
|
||||||
## Read all IPs from the downloaded IP list and fill up the ipset filter set
|
## Read all IPs from the downloaded IP list and fill up the ipset filter set
|
||||||
echo "" >>$MAILLOG
|
echo "" >>$MAILLOG
|
||||||
|
|
Loading…
Reference in New Issue
Block a user