fail2ban - unban all without restart

This commit is contained in:
MHSanaei 2024-12-16 13:28:53 +01:00
parent 36b0289bc6
commit 127eaf69b6
No known key found for this signature in database
GPG Key ID: 7E4060F2FBE5AB7A

View File

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