CentOS系统如何把IP从Fail2ban黑名单中移除


Linux系统中Fail2ban是一款保护服务器免受网络攻击的工具,Fail2ban可以通过黑名单来禁止IP访问。既然有被禁止的IP,那么问题来了,CentOS系统如何把IP从Fail2ban黑名单中移除。

如何列出被禁止的 IP要查看所有被禁止的 ip 地址,运行下面的命令:

# iptables -L

Chain INPUT (policy ACCEPT)

target prot opt source destination

f2b-AccessForbidden tcp -- anywhere anywhere tcp dpt:http

f2b-WPLogin tcp -- anywhere anywhere tcp dpt:http

f2b-ConnLimit tcp -- anywhere anywhere tcp dpt:http

f2b-ReqLimit tcp -- anywhere anywhere tcp dpt:http

f2b-NoAuthFailures tcp -- anywhere anywhere tcp dpt:http

f2b-SSH tcp -- anywhere anywhere tcp dpt:ssh

f2b-php-url-open tcp -- anywhere anywhere tcp dpt:http

f2b-nginx-http-auth tcp -- anywhere anywhere multiport dports http,https

ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED

ACCEPT icmp -- anywhere anywhere

ACCEPT all -- anywhere anywhere

ACCEPT tcp -- anywhere anywhere tcp dpt:EtherNet/IP-1

ACCEPT tcp -- anywhere anywhere tcp dpt:http

REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)

target prot opt source destination

REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)

target prot opt source destination

Chain f2b-NoAuthFailures (1 references)

target prot opt source destination

REJECT all -- 64.68.50.128 anywhere reject-with icmp-port-unreachable

REJECT all -- 104.194.26.205 anywhere reject-with icmp-port-unreachable

RETURN all -- anywhere anywhere

如何从 Fail2ban 中移除 IP

# iptables -D f2b-NoAuthFailures -s banned_ip -j REJECT


上一篇:Linux服务器和防火墙的常见问题解答

下一篇:SELinux安全机制有哪些?


fail2bancentos fail2ban黑名单 centos禁止ip
Copyright © 2002-2019 测速网 www.inhv.cn 皖ICP备2023010105号
测速城市 测速地区 测速街道 网速测试城市 网速测试地区 网速测试街道
温馨提示:部分文章图片数据来源与网络,仅供参考!版权归原作者所有,如有侵权请联系删除!

热门搜索 城市网站建设 地区网站制作 街道网页设计 大写数字 热点城市 热点地区 热点街道 热点时间 房贷计算器