2016年9月27日 星期二

[LINUX]Fail2Ban

OS:CENTOS 6.8 安裝 yum install epel-release yum install fail2ban 設定 設定fail2ban.conf fail2ban.conf的位置在 /etc/fail2ban/fail2ban.conf 當中,請以以下指令開啟: [root@server ~]# vim /etc/fail2ban/fail2ban.conf 這個設定檔需要調整的部份不多,請修改 logtarget 的參數如下: #預設的參數 #logtarget = SYSLOG #調整後的參數 logtarget = /var/log/fail2ban.log 這樣子fail2ban在執行時就會將記錄檔記錄到 /var/log/fail2ban.log 中。 fail2ban中阻擋SSH連線的ssh-iptables的狀態: fail2ban-client status ssh-iptables 參考資料: http://blog.pulipuli.info/2011/07/centosfail2ban.html

沒有留言:

張貼留言