HOWTO Setup Deny Hosts: Difference between revisions

From Research
Jump to navigation Jump to search
Jjaythomas (talk | contribs)
New page: 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 vi /etc/hosts.deny /etc/init.d...
 
Jjaythomas (talk | contribs)
No edit summary
Line 8: Line 8:
vi /etc/denyhosts.conf
vi /etc/denyhosts.conf


vi /etc/hosts.deny
PURGE_DENY =2h


/etc/init.d/denyhosts start
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


vi  /etc/ssh/sshd_config
SYNC_UPLOAD = yes


vi /etc/vsftpd/vsftpd.conf
SYNC_DOWNLOAD = yes


vi /etc/syslog-ng/syslog-ng.conf
SYNC_DOWNLOAD_THRESHOLD = 3


emerge -vp blockhosts
/etc/init.d/denyhosts start

Revision as of 03:32, 16 April 2008

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