home *** CD-ROM | disk | FTP | other *** search
/ 207.182.244.42 / 207.182.244.42.tar / 207.182.244.42 / pub / denyhosts.cfg < prev    next >
Text File  |  2007-07-21  |  21KB  |  623 lines

  1.        ############ THESE SETTINGS ARE REQUIRED ############
  2.  
  3. ########################################################################
  4. #
  5. # SECURE_LOG: the log file that contains sshd logging info
  6. # if you are not sure, grep "sshd:" /var/log/*
  7. #
  8. # The file to process can be overridden with the --file command line
  9. # argument
  10. #
  11. # Redhat or Fedora Core:
  12. #SECURE_LOG = /var/log/secure
  13. #
  14. # Mandrake, FreeBSD or OpenBSD: 
  15. #SECURE_LOG = /var/log/auth.log
  16. #
  17. # SuSE:
  18. #SECURE_LOG = /var/log/messages
  19. #
  20. # Mac OS X (v10.4 or greater - 
  21. #   also refer to:   http://www.denyhosts.net/faq.html#macos
  22. #SECURE_LOG = /private/var/log/asl.log
  23. #
  24. # Mac OS X (v10.3 or earlier):
  25. #SECURE_LOG=/private/var/log/system.log
  26. #
  27. # mandriva
  28. SECURE_LOG = /var/log/messages
  29. ########################################################################
  30.  
  31. ########################################################################
  32. #
  33. # HOSTS_DENY: the file which contains restricted host access information
  34. #
  35. # Most operating systems:
  36. HOSTS_DENY = /etc/hosts.deny
  37. #
  38. # Some BSD (FreeBSD) Unixes:
  39. #HOSTS_DENY = /etc/hosts.allow
  40. #
  41. # Another possibility (also see the next option):
  42. #HOSTS_DENY = /etc/hosts.evil
  43. #######################################################################
  44.  
  45.  
  46. ########################################################################
  47. #
  48. # PURGE_DENY: removed HOSTS_DENY entries that are older than this time
  49. #             when DenyHosts is invoked with the --purge flag
  50. #
  51. #      format is: i[dhwmy]
  52. #      Where 'i' is an integer (eg. 7) 
  53. #            'm' = minutes
  54. #            'h' = hours
  55. #            'd' = days
  56. #            'w' = weeks
  57. #            'y' = years
  58. #
  59. # never purge:
  60. #PURGE_DENY = 
  61. #
  62. # purge entries older than 1 week
  63. PURGE_DENY = 1w
  64. #
  65. # purge entries older than 5 days
  66. #PURGE_DENY = 5d
  67. #######################################################################
  68.  
  69. #######################################################################
  70. #
  71. # PURGE_THRESHOLD: defines the maximum times a host will be purged.  
  72. # Once this value has been exceeded then this host will not be purged. 
  73. # Setting this parameter to 0 (the default) disables this feature.
  74. #
  75. # default: a denied host can be purged/re-added indefinitely
  76. #PURGE_THRESHOLD = 0
  77. #
  78. # a denied host will be purged at most 2 times. 
  79. #PURGE_THRESHOLD = 2 
  80. #
  81. #######################################################################
  82.  
  83.  
  84. #######################################################################
  85. #
  86. # BLOCK_SERVICE: the service name that should be blocked in HOSTS_DENY
  87. # man 5 hosts_access for details
  88. #
  89. # eg.   sshd: 127.0.0.1  # will block sshd logins from 127.0.0.1
  90. #
  91. # To block all services for the offending host:
  92. #BLOCK_SERVICE = ALL
  93. # To block only sshd:
  94. BLOCK_SERVICE  = sshd
  95. # To only record the offending host and nothing else (if using
  96. # an auxilary file to list the hosts).  Refer to: 
  97. # http://denyhosts.sourceforge.net/faq.html#aux
  98. #BLOCK_SERVICE =    
  99. #
  100. #######################################################################
  101.  
  102.  
  103. #######################################################################
  104. #
  105. # DENY_THRESHOLD_INVALID: block each host after the number of failed login 
  106. # attempts has exceeded this value.  This value applies to invalid
  107. # user login attempts (eg. non-existent user accounts)
  108. #
  109. DENY_THRESHOLD_INVALID = 5
  110. #
  111. #######################################################################
  112.  
  113. #######################################################################
  114. #
  115. # DENY_THRESHOLD_VALID: block each host after the number of failed 
  116. # login attempts has exceeded this value.  This value applies to valid
  117. # user login attempts (eg. user accounts that exist in /etc/passwd) except
  118. # for the "root" user
  119. #
  120. DENY_THRESHOLD_VALID = 10
  121. #
  122. #######################################################################
  123.  
  124. #######################################################################
  125. #
  126. # DENY_THRESHOLD_ROOT: block each host after the number of failed 
  127. # login attempts has exceeded this value.  This value applies to 
  128. # "root" user login attempts only.
  129. #
  130. DENY_THRESHOLD_ROOT = 3
  131. #
  132. #######################################################################
  133.  
  134.  
  135. #######################################################################
  136. #
  137. # DENY_THRESHOLD_RESTRICTED: block each host after the number of failed 
  138. # login attempts has exceeded this value.  This value applies to 
  139. # usernames that appear in the WORK_DIR/restricted-usernames file only.
  140. #
  141. DENY_THRESHOLD_RESTRICTED = 1
  142. #
  143. #######################################################################
  144.  
  145.  
  146. #######################################################################
  147. #
  148. # WORK_DIR: the path that DenyHosts will use for writing data to
  149. # (it will be created if it does not already exist).  
  150. #
  151. # Note: it is recommended that you use an absolute pathname
  152. # for this value (eg. /home/foo/denyhosts/data)
  153. #
  154. WORK_DIR = /usr/share/denyhosts/data
  155. #
  156. #######################################################################
  157.  
  158. #######################################################################
  159. #
  160. # SUSPICIOUS_LOGIN_REPORT_ALLOWED_HOSTS
  161. #
  162. # SUSPICIOUS_LOGIN_REPORT_ALLOWED_HOSTS=YES|NO
  163. # If set to YES, if a suspicious login attempt results from an allowed-host
  164. # then it is considered suspicious.  If this is NO, then suspicious logins 
  165. # from allowed-hosts will not be reported.  All suspicious logins from 
  166. # ip addresses that are not in allowed-hosts will always be reported.
  167. #
  168. SUSPICIOUS_LOGIN_REPORT_ALLOWED_HOSTS=YES
  169. ######################################################################
  170.  
  171. ######################################################################
  172. #
  173. # HOSTNAME_LOOKUP
  174. #
  175. # HOSTNAME_LOOKUP=YES|NO
  176. # If set to YES, for each IP address that is reported by Denyhosts,
  177. # the corresponding hostname will be looked up and reported as well
  178. # (if available).
  179. #
  180. HOSTNAME_LOOKUP=YES
  181. #
  182. ######################################################################
  183.  
  184.  
  185. ######################################################################
  186. #
  187. # LOCK_FILE
  188. #
  189. # LOCK_FILE=/path/denyhosts
  190. # If this file exists when DenyHosts is run, then DenyHosts will exit
  191. # immediately.  Otherwise, this file will be created upon invocation
  192. # and deleted upon exit.  This ensures that only one instance is
  193. # running at a time.
  194. #
  195. # Redhat/Fedora:
  196. LOCK_FILE = /var/lock/subsys/denyhosts
  197. #
  198. # Debian
  199. #LOCK_FILE = /var/run/denyhosts.pid
  200. #
  201. # Misc
  202. #LOCK_FILE = /tmp/denyhosts.lock
  203. #
  204. ######################################################################
  205.  
  206.  
  207.        ############ THESE SETTINGS ARE OPTIONAL ############
  208.  
  209.  
  210. #######################################################################
  211. #
  212. # ADMIN_EMAIL: if you would like to receive emails regarding newly
  213. # restricted hosts and suspicious logins, set this address to 
  214. # match your email address.  If you do not want to receive these reports
  215. # leave this field blank (or run with the --noemail option)
  216. #
  217. # Multiple email addresses can be delimited by a comma, eg:
  218. # ADMIN_EMAIL = foo@bar.com, bar@foo.com, etc@foobar.com
  219. #
  220. ADMIN_EMAIL = yestertech@gmail.com
  221. #
  222. #######################################################################
  223.  
  224. #######################################################################
  225. #
  226. # SMTP_HOST and SMTP_PORT: if DenyHosts is configured to email 
  227. # reports (see ADMIN_EMAIL) then these settings specify the 
  228. # email server address (SMTP_HOST) and the server port (SMTP_PORT)
  229. #
  230. SMTP_HOST = localhost
  231. SMTP_PORT = 25
  232. #
  233. #######################################################################
  234.  
  235. #######################################################################
  236. # SMTP_USERNAME and SMTP_PASSWORD: set these parameters if your 
  237. # smtp email server requires authentication
  238. #
  239. #SMTP_USERNAME=foo
  240. #SMTP_PASSWORD=bar
  241. #
  242. ######################################################################
  243.  
  244. #######################################################################
  245. #
  246. # SMTP_FROM: you can specify the "From:" address in messages sent
  247. # from DenyHosts when it reports thwarted abuse attempts
  248. #
  249. SMTP_FROM = DenyHosts <denyhosts@poweredge.snapgame.net>
  250. #
  251. #######################################################################
  252.  
  253. #######################################################################
  254. #
  255. # SMTP_SUBJECT: you can specify the "Subject:" of messages sent
  256. # by DenyHosts when it reports thwarted abuse attempts
  257. SMTP_SUBJECT = DenyHosts Report
  258. #
  259. ######################################################################
  260.  
  261. ######################################################################
  262. #
  263. # SMTP_DATE_FORMAT: specifies the format used for the "Date:" header
  264. # when sending email messages.
  265. #
  266. # for possible values for this parameter refer to: man strftime
  267. #
  268. # the default:
  269. #
  270. #SMTP_DATE_FORMAT = %a, %d %b %Y %H:%M:%S %z
  271. #
  272. ######################################################################
  273.  
  274. ######################################################################
  275. #
  276. # SYSLOG_REPORT
  277. #
  278. # SYSLOG_REPORT=YES|NO
  279. # If set to yes, when denied hosts are recorded the report data
  280. # will be sent to syslog (syslog must be present on your system).
  281. # The default is: NO
  282. #
  283. #SYSLOG_REPORT=NO
  284. #
  285. #SYSLOG_REPORT=YES
  286. #
  287. ######################################################################
  288.  
  289. ######################################################################
  290. #
  291. # ALLOWED_HOSTS_HOSTNAME_LOOKUP
  292. #
  293. # ALLOWED_HOSTS_HOSTNAME_LOOKUP=YES|NO
  294. # If set to YES, for each entry in the WORK_DIR/allowed-hosts file,
  295. # the hostname will be looked up.  If your versions of tcp_wrappers
  296. # and sshd sometimes log hostnames in addition to ip addresses
  297. # then you may wish to specify this option.
  298. #ALLOWED_HOSTS_HOSTNAME_LOOKUP=NO
  299. #
  300. ######################################################################
  301.  
  302. ###################################################################### 
  303. # AGE_RESET_VALID: Specifies the period of time between failed login
  304. # attempts that, when exceeded will result in the failed count for 
  305. # this host to be reset to 0.  This value applies to login attempts 
  306. # to all valid users (those within /etc/passwd) with the 
  307. # exception of root.  If not defined, this count will never
  308. # be reset.
  309. #
  310. # See the comments in the PURGE_DENY section (above) 
  311. # for details on specifying this value or for complete details 
  312. # refer to:  http://denyhosts.sourceforge.net/faq.html#timespec
  313. #
  314. AGE_RESET_VALID=5d
  315. #
  316. ######################################################################
  317.  
  318. ###################################################################### 
  319. # AGE_RESET_ROOT: Specifies the period of time between failed login
  320. # attempts that, when exceeded will result in the failed count for 
  321. # this host to be reset to 0.  This value applies to all login 
  322. # attempts to the "root" user account.  If not defined,
  323. # this count will never be reset.
  324. #
  325. # See the comments in the PURGE_DENY section (above) 
  326. # for details on specifying this value or for complete details 
  327. # refer to:  http://denyhosts.sourceforge.net/faq.html#timespec
  328. #
  329. AGE_RESET_ROOT=25d
  330. #
  331. ######################################################################
  332.  
  333. ###################################################################### 
  334. # AGE_RESET_RESTRICTED: Specifies the period of time between failed login
  335. # attempts that, when exceeded will result in the failed count for 
  336. # this host to be reset to 0.  This value applies to all login 
  337. # attempts to entries found in the WORK_DIR/restricted-usernames file.  
  338. # If not defined, the count will never be reset.
  339. #
  340. # See the comments in the PURGE_DENY section (above) 
  341. # for details on specifying this value or for complete details 
  342. # refer to:  http://denyhosts.sourceforge.net/faq.html#timespec
  343. #
  344. AGE_RESET_RESTRICTED=25d
  345. #
  346. ######################################################################
  347.  
  348.  
  349. ###################################################################### 
  350. # AGE_RESET_INVALID: Specifies the period of time between failed login
  351. # attempts that, when exceeded will result in the failed count for 
  352. # this host to be reset to 0.  This value applies to login attempts 
  353. # made to any invalid username (those that do not appear 
  354. # in /etc/passwd).  If not defined, count will never be reset.
  355. #
  356. # See the comments in the PURGE_DENY section (above) 
  357. # for details on specifying this value or for complete details 
  358. # refer to:  http://denyhosts.sourceforge.net/faq.html#timespec
  359. #
  360. AGE_RESET_INVALID=10d
  361. #
  362. ######################################################################
  363.  
  364.  
  365. ######################################################################
  366. #
  367. # RESET_ON_SUCCESS: If this parameter is set to "yes" then the
  368. # failed count for the respective ip address will be reset to 0
  369. # if the login is successful.  
  370. #
  371. # The default is RESET_ON_SUCCESS = no
  372. #
  373. #RESET_ON_SUCCESS = yes
  374. #
  375. #####################################################################
  376.  
  377.  
  378. ######################################################################
  379. #
  380. # PLUGIN_DENY: If set, this value should point to an executable
  381. # program that will be invoked when a host is added to the
  382. # HOSTS_DENY file.  This executable will be passed the host
  383. # that will be added as it's only argument.
  384. #
  385. #PLUGIN_DENY=/usr/bin/true
  386. #
  387. ######################################################################
  388.  
  389.  
  390. ######################################################################
  391. #
  392. # PLUGIN_PURGE: If set, this value should point to an executable
  393. # program that will be invoked when a host is removed from the
  394. # HOSTS_DENY file.  This executable will be passed the host
  395. # that is to be purged as it's only argument.
  396. #
  397. #PLUGIN_PURGE=/usr/bin/true
  398. #
  399. ######################################################################
  400.  
  401. ######################################################################
  402. #
  403. # USERDEF_FAILED_ENTRY_REGEX: if set, this value should contain
  404. # a regular expression that can be used to identify additional
  405. # hackers for your particular ssh configuration.  This functionality
  406. # extends the built-in regular expressions that DenyHosts uses.
  407. # This parameter can be specified multiple times.
  408. # See this faq entry for more details:
  409. #    http://denyhosts.sf.net/faq.html#userdef_regex
  410. #
  411. #USERDEF_FAILED_ENTRY_REGEX=
  412. #
  413. #
  414. ######################################################################
  415.  
  416.  
  417.  
  418.  
  419.    ######### THESE SETTINGS ARE SPECIFIC TO DAEMON MODE  ##########
  420.  
  421.  
  422.  
  423. #######################################################################
  424. #
  425. # DAEMON_LOG: when DenyHosts is run in daemon mode (--daemon flag)
  426. # this is the logfile that DenyHosts uses to report it's status.
  427. # To disable logging, leave blank.  (default is: /var/log/denyhosts)
  428. #
  429. DAEMON_LOG = /var/log/denyhosts
  430. #
  431. # disable logging:
  432. #DAEMON_LOG = 
  433. #
  434. ######################################################################
  435.  
  436. #######################################################################
  437. # DAEMON_LOG_TIME_FORMAT: when DenyHosts is run in daemon mode 
  438. # (--daemon flag) this specifies the timestamp format of 
  439. # the DAEMON_LOG messages (default is the ISO8061 format:
  440. # ie. 2005-07-22 10:38:01,745)
  441. #
  442. # for possible values for this parameter refer to: man strftime
  443. #
  444. # Jan 1 13:05:59   
  445. #DAEMON_LOG_TIME_FORMAT = %b %d %H:%M:%S
  446. #
  447. # Jan 1 01:05:59 
  448. #DAEMON_LOG_TIME_FORMAT = %b %d %I:%M:%S
  449. #
  450. ###################################################################### 
  451.  
  452. #######################################################################
  453. # DAEMON_LOG_MESSAGE_FORMAT: when DenyHosts is run in daemon mode 
  454. # (--daemon flag) this specifies the message format of each logged
  455. # entry.  By default the following format is used:
  456. #
  457. # %(asctime)s - %(name)-12s: %(levelname)-8s %(message)s
  458. #
  459. # Where the "%(asctime)s" portion is expanded to the format
  460. # defined by DAEMON_LOG_TIME_FORMAT
  461. #
  462. # This string is passed to python's logging.Formatter contstuctor.
  463. # For details on the possible format types please refer to:
  464. # http://docs.python.org/lib/node357.html
  465. #
  466. # This is the default:
  467. #DAEMON_LOG_MESSAGE_FORMAT = %(asctime)s - %(name)-12s: %(levelname)-8s %(message)s
  468. #
  469. #
  470. ###################################################################### 
  471.  
  472.  
  473. #######################################################################
  474. #
  475. # DAEMON_SLEEP: when DenyHosts is run in daemon mode (--daemon flag)
  476. # this is the amount of time DenyHosts will sleep between polling
  477. ::# the SECURE_LOG.  See the comments in the PURGE_DENY section (above)
  478. # for details on specifying this value or for complete details
  479. # refer to:    http://denyhosts.sourceforge.net/faq.html#timespec
  480. #
  481. DAEMON_SLEEP = 30s
  482. #
  483. #######################################################################
  484.  
  485. #######################################################################
  486. #
  487. # DAEMON_PURGE: How often should DenyHosts, when run in daemon mode,
  488. # run the purge mechanism to expire old entries in HOSTS_DENY
  489. # This has no effect if PURGE_DENY is blank.
  490. #
  491. DAEMON_PURGE = 1h
  492. #
  493. #######################################################################
  494.  
  495.  
  496.    #########   THESE SETTINGS ARE SPECIFIC TO     ##########
  497.    #########       DAEMON SYNCHRONIZATION         ##########
  498.  
  499.  
  500. #######################################################################
  501. #
  502. # Synchronization mode allows the DenyHosts daemon the ability
  503. # to periodically send and receive denied host data such that 
  504. # DenyHosts daemons worldwide can automatically inform one
  505. # another regarding banned hosts.   This mode is disabled by
  506. # default, you must uncomment SYNC_SERVER to enable this mode.
  507. #
  508. # for more information, please refer to: 
  509. #        http:/denyhosts.sourceforge.net/faq.html#sync 
  510. #
  511. #######################################################################
  512.  
  513.  
  514. #######################################################################
  515. #
  516. # SYNC_SERVER: The central server that communicates with DenyHost
  517. # daemons.  Currently, denyhosts.net is the only available server
  518. # however, in the future, it may be possible for organizations to
  519. # install their own server for internal network synchronization
  520. #
  521. # To disable synchronization (the default), do nothing. 
  522. #
  523. # To enable synchronization, you must uncomment the following line:
  524. #SYNC_SERVER = http://xmlrpc.denyhosts.net:9911
  525. #
  526. #######################################################################
  527.  
  528. #######################################################################
  529. #
  530. # SYNC_INTERVAL: the interval of time to perform synchronizations if
  531. # SYNC_SERVER has been uncommented.  The default is 1 hour.
  532. #SYNC_INTERVAL = 1h
  533. #
  534. #######################################################################
  535.  
  536.  
  537. #######################################################################
  538. #
  539. # SYNC_UPLOAD: allow your DenyHosts daemon to transmit hosts that have
  540. # been denied?  This option only applies if SYNC_SERVER has
  541. # been uncommented.
  542. # The default is SYNC_UPLOAD = yes
  543. #
  544. #SYNC_UPLOAD = no
  545. #SYNC_UPLOAD = yes
  546. #
  547. #######################################################################
  548.  
  549.  
  550. #######################################################################
  551. #
  552. # SYNC_DOWNLOAD: allow your DenyHosts daemon to receive hosts that have
  553. # been denied by others?  This option only applies if SYNC_SERVER has
  554. # been uncommented.
  555. # The default is SYNC_DOWNLOAD = yes
  556. #
  557. #SYNC_DOWNLOAD = no
  558. #SYNC_DOWNLOAD = yes
  559. #
  560. #
  561. #
  562. #######################################################################
  563.  
  564. #######################################################################
  565. #
  566. # SYNC_DOWNLOAD_THRESHOLD: If SYNC_DOWNLOAD is enabled this parameter
  567. # filters the returned hosts to those that have been blocked this many
  568. # times by others.  That is, if set to 1, then if a single DenyHosts
  569. # server has denied an ip address then you will receive the denied host.
  570. # See also SYNC_DOWNLOAD_RESILIENCY
  571. #
  572. #SYNC_DOWNLOAD_THRESHOLD = 10
  573. #
  574. # The default is SYNC_DOWNLOAD_THRESHOLD = 3 
  575. #
  576. #SYNC_DOWNLOAD_THRESHOLD = 3
  577. #
  578. #######################################################################
  579.  
  580. #######################################################################
  581. #
  582. # SYNC_DOWNLOAD_RESILIENCY:  If SYNC_DOWNLOAD is enabled then the
  583. # value specified for this option limits the downloaded data
  584. # to this resiliency period or greater.
  585. #
  586. # Resiliency is defined as the timespan between a hackers first known 
  587. # attack and it's most recent attack.  Example:
  588. # If the centralized   denyhosts.net server records an attack at 2 PM 
  589. # and then again at 5 PM, specifying a SYNC_DOWNLOAD_RESILIENCY = 4h 
  590. # will not download this ip address.
  591. #
  592. # However, if the attacker is recorded again at 6:15 PM then the 
  593. # ip address will be downloaded by your DenyHosts instance.  
  594. #
  595. # This value is used in conjunction with the SYNC_DOWNLOAD_THRESHOLD 
  596. # and only hosts that satisfy both values will be downloaded.  
  597. # This value has no effect if SYNC_DOWNLOAD_THRESHOLD = 1 
  598. #
  599. # The default is SYNC_DOWNLOAD_RESILIENCY = 5h (5 hours)
  600. #
  601. # Only obtain hackers that have been at it for 2 days or more:
  602. #SYNC_DOWNLOAD_RESILIENCY = 2d
  603. #
  604. # Only obtain hackers that have been at it for 5 hours or more:
  605. #SYNC_DOWNLOAD_RESILIENCY = 5h
  606. #
  607. #######################################################################
  608.  
  609.