美文网首页
Fail2ban基本命令及解除ban掉的ip

Fail2ban基本命令及解除ban掉的ip

作者: 素年锦时2021 | 来源:发表于2018-10-15 11:06 被阅读0次
image.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

相关文章

网友评论

      本文标题:Fail2ban基本命令及解除ban掉的ip

      本文链接:https://www.haomeiwen.com/subject/hotfzftx.html