在CentOS 6.5安裝 fail2ban

要先更新套件庫yum才找的到
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
安裝fail2ban
yum install fail2ban -y




編輯設定



vi /etc/fail2ban/jail.conf
新增不偵測的ip區段
ignoreip = 127.0.0.1/8 163.17.233.0/24 122.117.58.0/24



存檔

service fail2ban restart


觀察狀態
fail2ban-client status

留言