---
name: denyhosts
version: 2.6_4
origin: security/denyhosts
comment: Script to thwart ssh attacks
arch: freebsd:9:x86:64
www: http://denyhosts.sourceforge.net/
maintainer: jmohacsi@bsd.hu
prefix: /usr/local
licenselogic: single
flatsize: 339913
desc: "DenyHosts is a script intended to be run by *ix system administrators to \nhelp
  thwart ssh server attacks.\n\nIf you've ever looked at your ssh log (/var/log/auth.log
  ) you may be alarmed \nto see how many hackers attempted to gain access to your
  server. \nDenyhosts helps you:\n- Parses /var/log/auth.log to find all login attempts\n-
  Can be run from the command line, cron or as a daemon (new in 0.9)\n- Records all
  failed login attempts for the user and offending host\n- For each host that exceeds
  a threshold count, records the evil host\n- Keeps track of each non-existent user
  (eg. sdada) when a login attempt failed.\n- Keeps track of each existing user (eg.
  root) when a login attempt failed.\n- Keeps track of each offending host (hosts
  can be purged )\n- Keeps track of suspicious logins \n- Keeps track of the file
  offset, so that you can reparse the same file\n- When the log file is rotated, the
  script will detect it \n- Appends /etc/hosts.allow\n- Optionally sends an email
  of newly banned hosts and suspicious logins.\n- Resolves IP addresses to hostnames,
  if you want\n\nWWW:\thttp://denyhosts.sourceforge.net/\n"
deps:
  python27: {origin: lang/python27, version: 2.7.5_2}
  python2: {origin: lang/python2, version: 2}
  python: {origin: lang/python, version: '2.7,2'}
  gettext: {origin: devel/gettext, version: 0.18.3}
  libiconv: {origin: converters/libiconv, version: 1.14_1}
categories:
- security
files:
  /usr/local/bin/denyhosts.py: 050d935b83dce2d31e8e350f83f53498309dd0bc60d64f8deed1ca40c0a04522
  /usr/local/etc/denyhosts.conf-dist: fafffecf6d6f2ff12c0b477d8bec58f926c64e84409658655a5cc032e8968572
  /usr/local/etc/rc.d/denyhosts: 4badf581f4b3353783eb4a862cfbf1eca59e40c2fb001bedcd55e9a9f275d20b
  /usr/local/lib/python2.7/site-packages/DenyHosts-2.6-py2.7.egg-info: fe945b1aa43727946135f5127d8d4cd36d68cc20841d0b275f8cae0f71ec5f96
  /usr/local/lib/python2.7/site-packages/DenyHosts/__init__.py: 75ad4f4c2943325f88064ad2beae890b59674be2bf0404b30afc5584dc4de4bb
  /usr/local/lib/python2.7/site-packages/DenyHosts/__init__.pyc: c56d995f833ccea6a6fc9b8d96d110dd6d7d41bebe665bcda001bee0cd7a249d
  /usr/local/lib/python2.7/site-packages/DenyHosts/__init__.pyo: c56d995f833ccea6a6fc9b8d96d110dd6d7d41bebe665bcda001bee0cd7a249d
  /usr/local/lib/python2.7/site-packages/DenyHosts/allowedhosts.py: a4bcc97aa0c6d5473455577cbdb87b31fe4f31579f413f2712c931bec0236de9
  /usr/local/lib/python2.7/site-packages/DenyHosts/allowedhosts.pyc: cb82e2c26ab57dab51cd6b36bbe62296a394325274543dbeb620cf630bdf306d
  /usr/local/lib/python2.7/site-packages/DenyHosts/allowedhosts.pyo: cb82e2c26ab57dab51cd6b36bbe62296a394325274543dbeb620cf630bdf306d
  /usr/local/lib/python2.7/site-packages/DenyHosts/constants.py: b24219fffd4af637e8a723b32110d4fec7d95a9501c429180f9c6adbb6d9e147
  /usr/local/lib/python2.7/site-packages/DenyHosts/constants.pyc: 23db9b34ce9561fba8c715ca2fd9050d824f59b22e1890d1e36431119d1b3a42
  /usr/local/lib/python2.7/site-packages/DenyHosts/constants.pyo: 23db9b34ce9561fba8c715ca2fd9050d824f59b22e1890d1e36431119d1b3a42
  /usr/local/lib/python2.7/site-packages/DenyHosts/counter.py: 0b4e6e2e4307ee6a599415550adaa61f8c8e068a7a20d9ebfe09dee5c57ea679
  /usr/local/lib/python2.7/site-packages/DenyHosts/counter.pyc: db9c2fe7c52094c8b606702206b8702d3d541aa28ab334fc242d0187b2523aff
  /usr/local/lib/python2.7/site-packages/DenyHosts/counter.pyo: db9c2fe7c52094c8b606702206b8702d3d541aa28ab334fc242d0187b2523aff
  /usr/local/lib/python2.7/site-packages/DenyHosts/daemon.py: c60119606fe898693c9629ee13895605c68a786376d7e1cf482cac342efb3889
  /usr/local/lib/python2.7/site-packages/DenyHosts/daemon.pyc: a2ac9ab4926aa6b7d843c749049c13d231fcffe50fc7e9af69ffb01708cecf35
  /usr/local/lib/python2.7/site-packages/DenyHosts/daemon.pyo: a2ac9ab4926aa6b7d843c749049c13d231fcffe50fc7e9af69ffb01708cecf35
  /usr/local/lib/python2.7/site-packages/DenyHosts/deny_hosts.py: 6f35a5d01bc880015bf421854361577cc0a70547713322b6d623b97300a8e954
  /usr/local/lib/python2.7/site-packages/DenyHosts/deny_hosts.pyc: 77addc472fd13bba42eb035b5c32e8869dd2a75f91c935eb3471b6b7004450c3
  /usr/local/lib/python2.7/site-packages/DenyHosts/deny_hosts.pyo: 77addc472fd13bba42eb035b5c32e8869dd2a75f91c935eb3471b6b7004450c3
  /usr/local/lib/python2.7/site-packages/DenyHosts/denyfileutil.py: d8bd188ed020abbdf7563ab439b4af1c83f900304f3e1988abab38d1b21e2063
  /usr/local/lib/python2.7/site-packages/DenyHosts/denyfileutil.pyc: f6af848f692c51a5df000b403eeff16c0246facca6b0d176bdd76d53eda380ae
  /usr/local/lib/python2.7/site-packages/DenyHosts/denyfileutil.pyo: f6af848f692c51a5df000b403eeff16c0246facca6b0d176bdd76d53eda380ae
  /usr/local/lib/python2.7/site-packages/DenyHosts/filetracker.py: afab5fe41356cccc111c7dcf4db4c2dd49b697df4a16caaf22e3a7f83572cdf6
  /usr/local/lib/python2.7/site-packages/DenyHosts/filetracker.pyc: 6ed8aeb4214d29b520251464a24ad786a4eba49938c768bfe62a8facc305033b
  /usr/local/lib/python2.7/site-packages/DenyHosts/filetracker.pyo: 6ed8aeb4214d29b520251464a24ad786a4eba49938c768bfe62a8facc305033b
  /usr/local/lib/python2.7/site-packages/DenyHosts/lockfile.py: ca4a3be02b58a48d302719b4a6f517c54d929f613743b15d5034eebca433cbb0
  /usr/local/lib/python2.7/site-packages/DenyHosts/lockfile.pyc: 4dd49d9e81449146cbd49f9cb50b90ed6387cc1b00ff088b5548a5ee6aefb5c0
  /usr/local/lib/python2.7/site-packages/DenyHosts/lockfile.pyo: 4dd49d9e81449146cbd49f9cb50b90ed6387cc1b00ff088b5548a5ee6aefb5c0
  /usr/local/lib/python2.7/site-packages/DenyHosts/loginattempt.py: 719ee7907e12d2afb23c5a4dd172199849dd27fca733e03ac8c9db55d54f6718
  /usr/local/lib/python2.7/site-packages/DenyHosts/loginattempt.pyc: 8d57ff4f26850f8489cda153387784898bd6d3058cc9b82b0075e769df6963dc
  /usr/local/lib/python2.7/site-packages/DenyHosts/loginattempt.pyo: 8d57ff4f26850f8489cda153387784898bd6d3058cc9b82b0075e769df6963dc
  /usr/local/lib/python2.7/site-packages/DenyHosts/old-daemon.py: 849956e477c175ec97e9b135a2693a3153258c6247224fd0de2db28cd3fec766
  /usr/local/lib/python2.7/site-packages/DenyHosts/old-daemon.pyc: 7bd115411db7ee8e34f6b74d019771f692ea79791e13d1947eab752a32c38969
  /usr/local/lib/python2.7/site-packages/DenyHosts/old-daemon.pyo: 7bd115411db7ee8e34f6b74d019771f692ea79791e13d1947eab752a32c38969
  /usr/local/lib/python2.7/site-packages/DenyHosts/plugin.py: 956770f763f1d636e58a4e8b681627215edb036c441a1f64d385e2575d3db935
  /usr/local/lib/python2.7/site-packages/DenyHosts/plugin.pyc: 55a2b34ba009b12a4f41f332c68272cb1284a8fcd6a28fe2ee94c0e2525aa91d
  /usr/local/lib/python2.7/site-packages/DenyHosts/plugin.pyo: 55a2b34ba009b12a4f41f332c68272cb1284a8fcd6a28fe2ee94c0e2525aa91d
  /usr/local/lib/python2.7/site-packages/DenyHosts/prefs.py: 511f61f030f70492eb986ba743b893600c7868ed51cf2c31c22b16dd8532b394
  /usr/local/lib/python2.7/site-packages/DenyHosts/prefs.pyc: 2e9458023dc67524aba586fb6505dab3812ef3f790d1c4c8b7af1780f8181fcd
  /usr/local/lib/python2.7/site-packages/DenyHosts/prefs.pyo: 2e9458023dc67524aba586fb6505dab3812ef3f790d1c4c8b7af1780f8181fcd
  /usr/local/lib/python2.7/site-packages/DenyHosts/purgecounter.py: 55967461f38c3d8ad91a4eeabbd57a83da14d895b5790f5996d735e5def24e92
  /usr/local/lib/python2.7/site-packages/DenyHosts/purgecounter.pyc: 60850f8c0e8b79d9312155c1767cfb61a2d099ba907221b1e368ab9ab03bcff3
  /usr/local/lib/python2.7/site-packages/DenyHosts/purgecounter.pyo: 60850f8c0e8b79d9312155c1767cfb61a2d099ba907221b1e368ab9ab03bcff3
  /usr/local/lib/python2.7/site-packages/DenyHosts/python_version.py: 9a7aabc78bcb91be63187c90038b43cbffb611e5357409a71f190f2976115003
  /usr/local/lib/python2.7/site-packages/DenyHosts/python_version.pyc: 2af17b4752061076357111ccb45704afda711f2dfef66ef5e42048add7c08b1c
  /usr/local/lib/python2.7/site-packages/DenyHosts/python_version.pyo: 2af17b4752061076357111ccb45704afda711f2dfef66ef5e42048add7c08b1c
  /usr/local/lib/python2.7/site-packages/DenyHosts/regex.py: b956d1ced3b32214afa85e186f3a69a33737fe66e523ac298cf77ba24f023c3b
  /usr/local/lib/python2.7/site-packages/DenyHosts/regex.pyc: 0090173248f5023fcd36b0034c198057bd3d0c9d0e1a2fb5b7704b47cf383759
  /usr/local/lib/python2.7/site-packages/DenyHosts/regex.pyo: 0090173248f5023fcd36b0034c198057bd3d0c9d0e1a2fb5b7704b47cf383759
  /usr/local/lib/python2.7/site-packages/DenyHosts/report.py: 56c86f6ddad7b3b58ccd9f9a7f5b9af2abaf20fd38fb3e3cc44dc7f83cd5e721
  /usr/local/lib/python2.7/site-packages/DenyHosts/report.pyc: 00478441563c5f254e78986e15d2dcc6d7b0c01f4a5bea097c399ffb5dd03a1c
  /usr/local/lib/python2.7/site-packages/DenyHosts/report.pyo: 00478441563c5f254e78986e15d2dcc6d7b0c01f4a5bea097c399ffb5dd03a1c
  /usr/local/lib/python2.7/site-packages/DenyHosts/restricted.py: 41ce191f972541cfe62aeb5b65eace3cb3e728eeeec1b142b72930d7986b46a5
  /usr/local/lib/python2.7/site-packages/DenyHosts/restricted.pyc: 32e96efda6e0372879aace5abcaed27652c32533b21ca5de71c5c1563cec94bd
  /usr/local/lib/python2.7/site-packages/DenyHosts/restricted.pyo: 32e96efda6e0372879aace5abcaed27652c32533b21ca5de71c5c1563cec94bd
  /usr/local/lib/python2.7/site-packages/DenyHosts/sync.py: c3865dfea6f86a196a5b459b0bc93c041c313cb3cf313c4ac2d1f94f301d7c1b
  /usr/local/lib/python2.7/site-packages/DenyHosts/sync.pyc: 8a1496972d9c9543deab4136460afa903c431acf2401ee916ef392d3b9c3f5bd
  /usr/local/lib/python2.7/site-packages/DenyHosts/sync.pyo: 8a1496972d9c9543deab4136460afa903c431acf2401ee916ef392d3b9c3f5bd
  /usr/local/lib/python2.7/site-packages/DenyHosts/util.py: b985a683a07902ad7d90813bba7c5b9ed3c9115fead9055d5e9cee778db8c361
  /usr/local/lib/python2.7/site-packages/DenyHosts/util.pyc: 70e07bac9fa2859d19414bae16daa520c3ab63cb1f4d95195ab86fc80b9ccf90
  /usr/local/lib/python2.7/site-packages/DenyHosts/util.pyo: 70e07bac9fa2859d19414bae16daa520c3ab63cb1f4d95195ab86fc80b9ccf90
  /usr/local/lib/python2.7/site-packages/DenyHosts/version.py: 511d7e51d3e81ff266332b69b0647d065e8bbce5aa54ad14689445b8ee8260fa
  /usr/local/lib/python2.7/site-packages/DenyHosts/version.pyc: 6a017633263b88a4691054c48e6961231aa6715af90dee611c7ca079443a374c
  /usr/local/lib/python2.7/site-packages/DenyHosts/version.pyo: 6a017633263b88a4691054c48e6961231aa6715af90dee611c7ca079443a374c
  /usr/local/share/denyhosts/daemon-control-dist: 4b5a8b56bf39149e7852cde7c3eb153eb6fb10fab7c0f972cd0d84860158ec1a
  /usr/local/share/denyhosts/denyhosts.cfg-dist: fafffecf6d6f2ff12c0b477d8bec58f926c64e84409658655a5cc032e8968572
  /usr/local/share/denyhosts/plugins/README.contrib: 3869c8de7225bfd764e398d22ab7a2a355d5d775372e196392061d3cbd47f6d7
  /usr/local/share/denyhosts/plugins/shorewall_allow.sh: a689c3b6f43531242b3a71873b2b520a99262d899bf75a495e24c69651f6a893
  /usr/local/share/denyhosts/plugins/shorewall_deny.sh: d7a61f6e60a02ca995cc01d8f35bbce987c8f21df1b896a7822d806271c3c51c
  /usr/local/share/denyhosts/plugins/test_deny.py: 722b8a48db293e36c2ad5870511d3236c2f5f5d206d2a35df8a125e459edc08e
  /usr/local/share/denyhosts/scripts/restricted_from_invalid.py: f0526dab0c1d242ae19615f5e67377cad0046c0a208ccb61aa22ed85aecd0017
  /usr/local/share/denyhosts/scripts/restricted_from_passwd.py: 58101bcc937ee9999763e972a22c6ee0820575a74d7998ae5901b66592e74449
  /usr/local/share/denyhosts/setup.py: 727f1f134e8bf2f7fe9d00f88517f2a67de175d49e29841cab701a79d82eb6b3
  /usr/local/share/doc/denyhosts/CHANGELOG.txt: 75e90eb7e46a230e01c2138f2b599bd12470b652d5b9fc3520e7a372a352ef5d
  /usr/local/share/doc/denyhosts/LICENSE.txt: 204d8eff92f95aac4df6c8122bc1505f468f3a901e5a4cc08940e0ede1938994
  /usr/local/share/doc/denyhosts/README.txt: bc42859fce09b59a9e65f6970070a7d19eff691307a1827e19fd89307aaaa614
directories:
  /usr/local/share/doc/denyhosts/: n
  /usr/local/share/denyhosts/scripts/: n
  /usr/local/share/denyhosts/plugins/: n
  /usr/local/share/denyhosts/: n
  /usr/local/lib/python2.7/site-packages/DenyHosts/: n
scripts:
  post-install: |
    [ -f /usr/local/etc/denyhosts.conf ] || cp -f /usr/local/etc/denyhosts.conf-dist /usr/local/etc/denyhosts.conf
    cd /usr/local
  pre-deinstall: |
    if cmp -s /usr/local/etc/denyhosts.conf /usr/local/etc/denyhosts.conf-dist; then rm -f /usr/local/etc/denyhosts.conf; fi
    cd /usr/local
  post-deinstall: |
    cd /usr/local
message: "-------------------------------------------------------------------------------\nTo
  run denyhosts from startup, add denyhosts_enable=\"YES\"\nin your /etc/rc.conf.\nConfigiration
  options can be found in /usr/local/etc/denyhosts.conf\n-------------------------------------------------------------------------------\nIn
  order to proper working of denyhosts\n1. edit your /etc/hosts.allow file and add:\nsshd
  : /etc/hosts.deniedssh : deny\nsshd : ALL : allow\n2. issue the following command
  if /etc/hosts.deniedssh does not exist yet\ntouch /etc/hosts.deniedssh \n-------------------------------------------------------------------------------\nWarning:\n\nsyslogd
  should ideally be run with the -c option; this will ensure that\ndenyhosts notices
  multiple repeated login attempts.\n\nTo do this, add syslogd_flags=\"-c\" to /etc/rc.conf\n-------------------------------------------------------------------------------\n"
