fail2ban - unban all without restart

This commit is contained in:
Ivan Zorin 2024-12-20 16:51:24 +03:00 committed by GitHub
parent 49295661fd
commit d9cb304863
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1391,7 +1391,7 @@ iplimit_main() {
3)
confirm "Proceed with Unbanning everyone from IP Limit jail?" "y"
if [[ $? == 0 ]]; then
fail2ban-client reload --restart --unban 3x-ipl
fail2ban-client set 3x-ipl unban --all
truncate -s 0 "${iplimit_banned_log_path}"
echo -e "${green}All users Unbanned successfully.${plain}"
iplimit_main