Fail2ban基本命令及解除ban掉的ip
2018-10-15 本文已影响0人
素年锦时2021
![](https://img.haomeiwen.com/i7558003/6aa4523900324cb1.png)
【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