HOWTO Setup Deny Hosts

From Research
Revision as of 03:32, 16 April 2008 by Jjaythomas (talk | contribs)
Jump to navigation Jump to search

emerge -vp openssh [ebuild R ] net-misc/openssh-4.7_p1-r1 USE="pam tcpd

emerge -vp denyhosts

rc-update add denyhosts default

vi /etc/denyhosts.conf

PURGE_DENY =2h

PURGE_THRESHOLD = 3

BLOCK_SERVICE = ALL

REM out BLOCK_SERVICE = sshd

DENY_THRESHOLD_ROOT = 4

SYSLOG_REPORT=YES

SYNC_SERVER = http://xmlrpc.denyhosts.net:9911

SYNC_INTERVAL = 1h

SYNC_UPLOAD = yes

SYNC_DOWNLOAD = yes

SYNC_DOWNLOAD_THRESHOLD = 3

/etc/init.d/denyhosts start