mirror of
https://github.com/borekon/Blocklists.git
synced 2025-06-07 14:04:26 +02:00
Update blocklist-update.sh
This commit is contained in:
parent
75b5b4d5a5
commit
34636d0faa
|
@ -99,8 +99,14 @@ then
|
|||
# Create the one and only firewall rule
|
||||
$IPTABLES_PATH -I $CHAINNAME -m set --match-set $CHAINNAME src -j $ACTION >>$MAILLOG 2>&1
|
||||
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
|
||||
if [ `$IPTABLES_PATH -L $CHAINNAME | grep RETURN | wc -l` -eq 0 ]
|
||||
then
|
||||
# Create the one and only firewall rule
|
||||
$IPTABLES_PATH -A $CHAINNAME -j RETURN >>$MAILLOG 2>&1
|
||||
fi
|
||||
|
||||
|
||||
## Read all IPs from the downloaded IP list and fill up the ipset filter set
|
||||
echo "" >>$MAILLOG
|
||||
|
|
Loading…
Reference in New Issue
Block a user