Reset blocklist when maximum is reached

This commit is contained in:
q3aql 2024-04-14 21:07:55 +02:00
parent f008726714
commit eaad3470b1

View File

@ -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}