Reset blocklist when maximum is reached
This commit is contained in:
parent
f008726714
commit
eaad3470b1
|
@ -123,6 +123,8 @@ while [ ${blockauth} -eq 0 ] ; do
|
|||
if [ "${num_blocklist}" -ge "${max_ip_blocklist}" ] ; then
|
||||
rm -rf ${blocklist}
|
||||
touch ${blocklist}
|
||||
echo "blockauth: resetting blocklist because maximum has been reached"
|
||||
echo "blockauth: resetting blocklist because maximum has been reached" >> ${filelog}
|
||||
iptables -F
|
||||
fi
|
||||
touch ${blocklist}
|
||||
|
|
Loading…
Reference in New Issue
Block a user