gpt4 book ai didi

linux - fail2ban : how unban ip (using fail2ban-client)

转载 作者:IT王子 更新时间:2023-10-29 01:21:57 34 4
gpt4 key购买 nike

<分区>

我使用的是 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 

与上面相同,因此命令不运行。

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com