Denyhosts on FreeBSD 8

Lars Sommer,, 2011-06-20

Install the port security/denyhosts

Add to /etc/rc.conf
add syslogd_flags="-c" 

in  /etc/hosts.allow  add:
sshd : /etc/hosts.deniedssh : deny
sshd : ALL : allow

Or, if anything should be denied from these hosts who fails ssh login; insert ALL instead of sshd. If done so, change the BLOCK_SERVICE line in denyhosts.conf from sshd to ALL as well.

touch /etc/hosts.deniedssh

/etc/rc.d/syslogd restart
/usr/local/etc/rc.d/denyhosts start

Leave a Reply

Din e-mailadresse vil ikke blive publiceret. Krævede felter er markeret med *