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
|
if [ "${num_blocklist}" -ge "${max_ip_blocklist}" ] ; then
|
||||||
rm -rf ${blocklist}
|
rm -rf ${blocklist}
|
||||||
touch ${blocklist}
|
touch ${blocklist}
|
||||||
|
echo "blockauth: resetting blocklist because maximum has been reached"
|
||||||
|
echo "blockauth: resetting blocklist because maximum has been reached" >> ${filelog}
|
||||||
iptables -F
|
iptables -F
|
||||||
fi
|
fi
|
||||||
touch ${blocklist}
|
touch ${blocklist}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user