新聞中心
fail2ban 是一款用于保護(hù)你的服務(wù)器免于暴力攻擊的入侵保護(hù)軟件。fail2ban 用 Python 寫成,并廣泛用于很多服務(wù)器上。fail2ban 會(huì)掃描日志文件和 IP 黑名單來顯示惡意軟件、過多的密碼失敗嘗試、web 服務(wù)器利用、wordpress 插件攻擊和其他漏洞。如果你已經(jīng)安裝并使用了 fail2ban 來保護(hù)你的 web 服務(wù)器,你也許會(huì)想知道如何在 centos 6、CentOS 7、RHEL 6、RHEL 7 和 Oracle Linux 6/7 中找到被 fail2ban 阻止的 IP,或者你想將 ip 從 fail2ban 監(jiān)獄中移除。

創(chuàng)新互聯(lián)建站成立與2013年,先為周口等服務(wù)建站,周口等地企業(yè),進(jìn)行企業(yè)商務(wù)咨詢服務(wù)。為周口企業(yè)網(wǎng)站制作PC+手機(jī)+微官網(wǎng)三網(wǎng)同步一站式服務(wù)解決您的所有建站問題。
如何列出被禁止的 IP
要查看所有被禁止的 ip 地址,運(yùn)行下面的命令:
# iptables -LChain INPUT (policy ACCEPT)target prot opt source destinationf2b-AccessForbidden tcp -- anywhere anywhere tcp dpt:httpf2b-WPLogin tcp -- anywhere anywhere tcp dpt:httpf2b-ConnLimit tcp -- anywhere anywhere tcp dpt:httpf2b-ReqLimit tcp -- anywhere anywhere tcp dpt:httpf2b-NoAuthFailures tcp -- anywhere anywhere tcp dpt:httpf2b-SSH tcp -- anywhere anywhere tcp dpt:sshf2b-php-url-open tcp -- anywhere anywhere tcp dpt:httpf2b-nginx-http-auth tcp -- anywhere anywhere multiport dports http,httpsACCEPT all -- anywhere anywhere state RELATED,ESTABLISHEDACCEPT icmp -- anywhere anywhereACCEPT all -- anywhere anywhereACCEPT tcp -- anywhere anywhere tcp dpt:EtherNet/IP-1ACCEPT tcp -- anywhere anywhere tcp dpt:httpREJECT all -- anywhere anywhere reject-with icmp-host-prohibitedChain FORWARD (policy ACCEPT)target prot opt source destinationREJECT all -- anywhere anywhere reject-with icmp-host-prohibitedChain OUTPUT (policy ACCEPT)target prot opt source destinationChain f2b-NoAuthFailures(1 references)target prot opt source destinationREJECT all --64.68.50.128 anywhere reject-with icmp-port-unreachableREJECT all --104.194.26.205 anywhere reject-with icmp-port-unreachableRETURN all -- anywhere anywhere
如何從 Fail2ban 中移除 IP
# iptables -D f2b-NoAuthFailures-s banned_ip -j REJECT
via: http://www.ehowstuff.com/how-to-remove-banned-ip-from-fail2ban-on-centos/
作者:skytech 譯者:geekpi 校對(duì):wxy
本文由 LCTT 原創(chuàng)編譯,Linux中國(guó) 榮譽(yù)推出
網(wǎng)頁名稱:如何在CentOS6/7上移除被Fail2ban禁止的IP
鏈接分享:http://fisionsoft.com.cn/article/cdhhdoe.html


咨詢
建站咨詢
