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

Fail2ban基本命令及解除ban掉的ip_第1张图片
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)