我使用的是fail2ban v.0.8.2,但我无法取消IP:
使用fail2ban-client我看到IP:
fail2ban-client status fail2ban
Status for the jail: fail2ban
|- filter
| |- File list: /var/log/fail2ban.log
| |- Currently Failed: 1
| `- Total Failed: 8
`- action
|- Currently banned: 2
| `- IP list: 151.10.65.197 151.10.72.169
`- Total banned: 2
从手册页应该足够做:
fail2ban-client get fail2ban actionunban 151.10.65.197
输出命令不会返回错误,但是:
iptables -L -nv |grep -b2 -a1 151
16262- pkts bytes target prot opt in out source destination
16351: 0 0 DROP all -- * * 151.10.72.169 0.0.0.0/0
16440: 0 0 DROP all -- * * 151.10.65.197 0.0.0.0/0
16529- 181K 48M RETURN all -- * * 0.0.0.0/0 0.0.0.0/0
和的输出
fail2ban-client status fail2ban
与上面相同,因此命令不会运行.