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
沒有留言:
張貼留言