fail2ban禁止我的SSH的SSH。 在我收到的电子邮件中说,经过5次针对SSH的尝试,我通过fail2ban被禁止。 这甚至不是真的我甚至没有login到SSH。 我仍然可以访问webmin。 我closures了fail2ban,仍然是一样的。 对于iptables -L它显示了这一点。
Chain INPUT (policy ACCEPT) target prot opt source destination fail2ban-SSH tcp -- anywhere anywhere tcp dpt:ssh Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain fail2ban-SSH (1 references) target prot opt source destination RETURN all -- anywhere anywhere
我试过了
fail2ban-client set ssh-iptables unbanip myIP then it returned this: IP myIP is not banned
我也试过这个:
iptables -D fail2ban-ssh-iptables -s myIP -j DROP
并没有收到任何东西,我仍然被禁止。
> fail2ban-client status Status |- Number of jail: 1 `- Jail list: ssh-iptables
我也收到了很多这样的电子邮件:
Banned the following ip addresses on Thu Nov 14 20:05:01 EST 2013 282 with 282 connections
xxx xxx号码不同
你正试图在链上使用这个命令fail2ban-ssh-iptables :
iptables -D fail2ban-ssh-iptables -s myIP -j DROP
但是你的iptables –L –n显示了对链fail2ban-SSH重复引用,它是fail2ban规则string的链。 所以这个命令应该是:
iptables -D fail2ban-SSH -s myIP -j DROP