From eaad3470b1f773abb304c950c8570c63c0f29d19 Mon Sep 17 00:00:00 2001 From: q3aql Date: Sun, 14 Apr 2024 21:07:55 +0200 Subject: [PATCH] Reset blocklist when maximum is reached --- blockauth | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blockauth b/blockauth index 7318fb2..1e89aeb 100755 --- a/blockauth +++ b/blockauth @@ -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}