【1】获取正确的JAIL
The hard part is finding the right jail:
Use iptables -L -n to find the rule name...
...then use fail2ban-client status to get the actual jail names. The rule name and jail name may not be the same but it should be clear which one is related to which.
【2】查看某个规则下被封禁的ip情况:
例如查看nginx-cc:
fail2ban-client status nginx-cc
【3】解除某个ip的封禁:
fail2ban-client set ssh-iptables unbanip 210.12.185.2
网友评论