]> git.pld-linux.org Git - packages/DenyHosts.git/commitdiff
- updated for 1.1.3
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Sun, 20 Nov 2005 14:05:38 +0000 (14:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    DenyHosts.cfg -> 1.3

DenyHosts.cfg

index deff19f05e5d1cd40aa743b63be4db8c24223464..9f7eaed90108f358ba60ac4f0d93635844dc6d06 100644 (file)
@@ -8,10 +8,10 @@
 # The file to process can be overridden with the --file command line
 # argument
 #
-# Redhat:
+# Redhat or Fedora Core:
 SECURE_LOG = /var/log/secure
 #
-# Mandrake or FreeBSD: 
+# Mandrake, FreeBSD or OpenBSD: 
 #SECURE_LOG = /var/log/auth.log
 #
 # SuSE:
@@ -19,7 +19,6 @@ SECURE_LOG = /var/log/secure
 #
 ########################################################################
 
-
 ########################################################################
 # HOSTS_DENY: the file which contains restricted host access information
 #
@@ -78,17 +77,43 @@ BLOCK_SERVICE  = sshd
 
 #######################################################################
 #
-# DENY_THRESHOLD: block each host after the number of failed login 
-# attempts has exceeded this value.
+# DENY_THRESHOLD_INVALID: block each host after the number of failed login 
+# attempts has exceeded this value.  This value applies to invalid
+# user login attempts (eg. non-existent user accounts)
 #
-DENY_THRESHOLD = 3
+DENY_THRESHOLD_INVALID = 3
 #
 #######################################################################
 
+#######################################################################
+#
+# DENY_THRESHOLD_VALID: block each host after the number of failed 
+# login attempts has exceeded this value.  This value applies to valid
+# user login attempts (eg. user accounts that exist in /etc/passwd) except
+# for the "root" user
+#
+DENY_THRESHOLD_VALID = 10
+#
+#######################################################################
+
+#######################################################################
+#
+# DENY_THRESHOLD_ROOT: block each host after the number of failed 
+# login attempts has exceeded this value.  This value applies to 
+# "root" user login attempts only.
+#
+DENY_THRESHOLD_ROOT = 1
+#
+#######################################################################
+
+
 #######################################################################
 #
 # WORK_DIR: the path that DenyHosts will use for writing data to
-# (it will be created if it does not already exist).       
+# (it will be created if it does not already exist).  
+#
+# Note: when run in daemon mode, this directory should be specified
+# as an absolute path name (eg. /home/foo/denyhosts/data)
 #
 WORK_DIR = /var/lib/DenyHosts
 #
@@ -117,6 +142,7 @@ SUSPICIOUS_LOGIN_REPORT_ALLOWED_HOSTS=YES
 # (if available).
 #
 HOSTNAME_LOOKUP=YES
+#
 ######################################################################
 
 
@@ -133,8 +159,12 @@ HOSTNAME_LOOKUP=YES
 # Redhat/Fedora:
 LOCK_FILE = /var/lock/subsys/denyhosts
 #
+# Debian
+#LOCK_FILE = /var/run/denyhosts.pid
+#
+# Misc
 #LOCK_FILE = /tmp/denyhosts.lock
-
+#
 ######################################################################
 
 
@@ -156,11 +186,101 @@ ADMIN_EMAIL = root@localhost
 #
 SMTP_HOST = localhost
 SMTP_PORT = 25
-SMTP_FROM = DenyHosts
+SMTP_FROM = DenyHosts <nobody@localhost>
 SMTP_SUBJECT = DenyHosts Report
+#SMTP_USERNAME=foo
+#SMTP_PASSWORD=bar
 #
 #######################################################################
 
+######################################################################
+#
+# ALLOWED_HOSTS_HOSTNAME_LOOKUP
+#
+# ALLOWED_HOSTS_HOSTNAME_LOOKUP=YES|NO
+# If set to YES, for each entry in the WORK_DIR/allowed-hosts file,
+# the hostname will be looked up.  If your versions of tcp_wrappers
+# and sshd sometimes log hostnames in addition to ip addresses
+# then you may wish to specify this option.
+# 
+#ALLOWED_HOSTS_HOSTNAME_LOOKUP=NO
+#
+######################################################################
+
+###################################################################### 
+# 
+# AGE_RESET_VALID: Specifies the period of time between failed login
+# attempts that, when exceeded will result in the failed count for 
+# this host to be reset to 0.  This value applies to login attempts 
+# to all valid users (those within /etc/passwd) with the 
+# exception of root.  If not defined, this count will never
+# be reset.
+#
+# See the comments in the PURGE_DENY section (above) 
+# for details on specifying this value or for complete details 
+# refer to:  http://denyhosts.sourceforge.net/faq.html#timespec
+#
+AGE_RESET_VALID=5d
+#
+######################################################################
+
+###################################################################### 
+# 
+# AGE_RESET_ROOT: Specifies the period of time between failed login
+# attempts that, when exceeded will result in the failed count for 
+# this host to be reset to 0.  This value applies to all login 
+# attempts to the "root" user account.  If not defined,
+# this count will never be reset.
+#
+# See the comments in the PURGE_DENY section (above) 
+# for details on specifying this value or for complete details 
+# refer to:  http://denyhosts.sourceforge.net/faq.html#timespec
+#
+AGE_RESET_ROOT=25d
+#
+######################################################################
+
+###################################################################### 
+# 
+# AGE_RESET_INVALID: Specifies the period of time between failed login
+# attempts that, when exceeded will result in the failed count for 
+# this host to be reset to 0.  This value applies to login attempts 
+# made to any invalid username (those that do not appear 
+# in /etc/passwd).  If not defined, count will never be reset.
+#
+# See the comments in the PURGE_DENY section (above) 
+# for details on specifying this value or for complete details 
+# refer to:  http://denyhosts.sourceforge.net/faq.html#timespec
+#
+AGE_RESET_INVALID=10d
+#
+######################################################################
+
+######################################################################
+#
+# PLUGIN_DENY: If set, this value should point to an executable
+# program that will be invoked when a host is added to the
+# HOSTS_DENY file.  This executable will be passed the host
+# that will be added as it's only argument.
+#
+#PLUGIN_DENY=/usr/bin/true
+#
+######################################################################
+
+
+######################################################################
+#
+# PLUGIN_PURGE: If set, this value should point to an executable
+# program that will be invoked when a host is removed from the
+# HOSTS_DENY file.  This executable will be passed the host
+# that is to be purged as it's only argument.
+#
+#PLUGIN_PURGE=/usr/bin/true
+#
+######################################################################
+
+
+   ######### THESE SETTINGS ARE SPECIFIC TO DAEMON MODE  ##########
 
 
 #######################################################################
@@ -176,13 +296,31 @@ DAEMON_LOG = /var/log/denyhosts
 #
 ######################################################################
 
-
-
+#######################################################################
+# 
+# DAEMON_LOG_TIME_FORMAT: when DenyHosts is run in daemon mode 
+# (--daemon flag) this specifies the timestamp format of 
+# the DAEMON_LOG messages (default is the ISO8061 format:
+# ie. 2005-07-22 10:38:01,745)
+#
+# for possible values for this parameter refer to: man strftime
+#
+# Jan 1 13:05:59   
+#DAEMON_LOG_TIME_FORMAT = %b %d %H:%M:%S
+#
+# Jan 1 01:05:59 
+#DAEMON_LOG_TIME_FORMAT = %b %d %I:%M:%S
+#
+###################################################################### 
 #######################################################################
 #
 # DAEMON_SLEEP: when DenyHosts is run in daemon mode (--daemon flag)
 # this is the amount of time DenyHosts will sleep between polling
-# the SECURE_LOG.  This value is in seconds (default is 30)
+# the SECURE_LOG.  See the comments in the PURGE_DENY section (above)
+# for details on specifying this value or for complete details
+# refer to:    http://denyhosts.sourceforge.net/faq.html#timespec
+# 
 #
 DAEMON_SLEEP = 30
 #
@@ -190,9 +328,8 @@ DAEMON_SLEEP = 30
 
 #######################################################################
 #
-# DAEMON_PURGE: How often should DenyHosts, when run in daemon mode
+# DAEMON_PURGE: How often should DenyHosts, when run in daemon mode,
 # run the purge mechanism to expire old entries in HOSTS_DENY
-# This value is in seconds (default is 3600 seconds = 1 hour)
 # This has no effect if PURGE_DENY is blank.
 #
 DAEMON_PURGE = 60
This page took 0.094201 seconds and 4 git commands to generate.