Denyhost 防止暴力破解

參考: http://denyhosts.sourceforge.net

安裝環境centos 5.5
到Denyhost官網下載
然後tar

cd DenyHosts-2.6/
ls
python setup.py install
cd /usr/share/denyhosts/
cp denyhosts.cfg-dist denyhosts.cfg
vim denyhosts.cfg  (此為設定檔案)
cp daemon-control-dist daemon-control
chown root daemon-control
chmod 700 daemon-control
ln -s /usr/share/denyhosts/daemon-control /etc/init.d/denyhosts
chkconfig --add denyhosts
chkconfig  denyhosts on
service denyhosts restart

留言

熱門文章