2008年6月18日 星期三

denyhosts

How to run the denyhosts

# denyhosts-control start
will run the following command
# python /usr/bin/denyhosts.py --daemon --config=/etc/denyhosts.conf


delete the IP address entries which was record in the denyhost blocking list
(e.g.
BSD OS: /usr/share/denyhosts/data/hosts-restricted
Linux OS: /var/lib/denyhosts/hosts-restricted? /etc/hosts.deny? which one is correct I am not very sure?)

add IP white list into /etc/hosts.allow to bypass denyhost check
e.g.
/etc/hosts.allow
sshd: XXX.XXX.XXX.XXX

沒有留言: