** To see / get the actual jail names
#fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'
example output:: ssh-iredmail roundcube-iredmail postfix-iredmail dovecot-iredmail pam-generic ssh-iptables
** To Unban IP use bellow command
#fail2ban-client set JAIL_NAME unbanip 1.2.3.4
fail2ban-client set ssh-iredmail unbanip 1.2.3.4
fail2ban-client set roundcube-iredmail unbanip 1.2.3.4
fail2ban-client set postfix-iredmail unbanip 1.2.3.4
fail2ban-client set dovecot-iredmail unbanip 1.2.3.4
fail2ban-client set ssh-iptables unbanip 1.2.3.4
fail2ban-client set pam-generic unbanip 1.2.3.4
No comments:
Post a Comment