Port details |
- denyhosts Script to thwart ssh and imap attacks
- 3.1.2_1 security =29 3.1.2_1Version of this port present on the latest quarterly branch.
- Maintainer: sunpoet@FreeBSD.org
- Port Added: 2005-11-11 06:46:55
- Last Update: 2024-03-23 14:30:47
- Commit Hash: f76cd2c
- People watching this port, also watch:: libiconv, help2man, expat, m4, gettext
- License: GPLv2
- WWW:
- https://github.com/denyhosts/denyhosts
- Description:
- DenyHosts is a utility developed by Phil Schwartz and maintained by a number of
developers which aims to thwart sshd (ssh server) brute force attacks.
If you've ever looked at your ssh log (/var/log/auth.log) you may be alarmed
to see how many hackers attempted to gain access to your server.
Denyhosts helps you:
- Parses /var/log/auth.log to find all login attempts
- Can be run from the command line, cron or as a daemon (new in 0.9)
- Records all failed login attempts for the user and offending host
- For each host that exceeds a threshold count, records the evil host
- Keeps track of each non-existent user (eg. sdada) when a login attempt failed.
- Keeps track of each existing user (eg. root) when a login attempt failed.
- Keeps track of each offending host (hosts can be purged)
- Keeps track of suspicious logins
- Keeps track of the file offset, so that you can reparse the same file
- When the log file is rotated, the script will detect it
- Appends /etc/hosts.allow
- Optionally sends an email of newly banned hosts and suspicious logins.
- Resolves IP addresses to hostnames, if you want
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- denyhosts${PYTHON_PKGNAMESUFFIX}>0:security/denyhosts
- To install the port:
- cd /usr/ports/security/denyhosts/ && make install clean
- To add the package, run one of these commands:
- pkg install security/denyhosts
- pkg install denyhosts-py39
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: denyhosts-py39
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1598627070
SHA256 (DenyHosts-3.1.2.tar.gz) = cfae79a11ce27e0e8a7a9915139d4c6b68df1022e447432d589e8fbb8e1aa9e7
SIZE (DenyHosts-3.1.2.tar.gz) = 53086
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py39-setuptools>=0 : devel/py-setuptools@py39
- py39-wheel>=0 : devel/py-wheel@py39
- python3.9 : lang/python39
- py39-build>=0 : devel/py-build@py39
- py39-installer>=0 : devel/py-installer@py39
- Test dependencies:
-
- python3.9 : lang/python39
- Runtime dependencies:
-
- py39-ipaddr>=0 : devel/py-ipaddr@py39
- python3.9 : lang/python39
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- security_denyhosts
- USES:
- cpe python shebangfix
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
3.1.2_1 23 Mar 2024 14:30:47 |
Po-Chuan Hsieh (sunpoet) |
security/denyhosts: Convert to USE_PYTHON=pep517
- Bump PORTREVISION for package change |
3.1.2 27 Jun 2023 19:34:34 |
Rene Ladan (rene) |
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568> |
07 Sep 2022 21:58:51 |
Stefan Eßer (se) |
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner) |
3.1.2 07 Sep 2022 21:10:59 |
Stefan Eßer (se) |
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above ) |
3.1.2 20 Jul 2022 14:22:56 |
Tobias C. Berner (tcberner) |
security: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* <ports@c0decafe.net>
* Aaron Dalton <aaron@FreeBSD.org>
* Adam Weinberger <adamw@FreeBSD.org>
* Ade Lovett <ade@FreeBSD.org>
* Aldis Berjoza <aldis@bsdroot.lv>
* Alex Dupre <ale@FreeBSD.org>
* Alex Kapranoff <kappa@rambler-co.ru>
* Alex Samorukov <samm@freebsd.org>
* Alexander Botero-Lowry <alex@foxybanana.com>
* Alexander Kriventsov <avk@vl.ru>
* Alexander Leidinger <netchild@FreeBSD.org> (Only the first 15 lines of the commit message are shown above ) |
3.1.2 16 Oct 2021 07:09:16 |
Jimmy Olgeni (olgeni) |
security/denyhosts: fix whitespace in pkg-descr. |
3.1.2 06 Apr 2021 14:31:13 |
Mathieu Arnold (mat) |
all: Remove all other $FreeBSD keywords. |
3.1.2 06 Apr 2021 14:31:07 |
Mathieu Arnold (mat) |
Remove # $FreeBSD$ from Makefiles. |
3.1.2 28 Dec 2020 23:02:15 |
antoine |
Drop python 2.7 support from a few ports
With hat: portmgr |
3.1.2 30 Aug 2020 07:14:07 |
sunpoet |
Update to 3.1.2
- Use upstream release tarball
- Update manpage location (r523104)
Changes: https://github.com/denyhosts/denyhosts/releases
https://github.com/denyhosts/denyhosts/commits/master |
3.1_1 24 Jul 2020 18:59:17 |
sunpoet |
Fix AttributeError error
- Bump PORTREVISION for package change
Reported by: Frank Bartels <freebsd@knarf.de>
Obtained
from: https://github.com/denyhosts/denyhosts/commit/d4cdd64d2e3b2c395193a141db8d3c5cbda91f28 |
3.1 13 Nov 2019 23:47:43 |
sunpoet |
Simplify Makefile
- Remove no-op shebang fix
- Remove .bak/.orig cleanup which does not affect the package
PR: 241806
Submitted by: amdmi3 |
3.1 01 Oct 2019 19:17:00 |
sunpoet |
Update to 3.1
- Change MASTER_SITES from SF to GitHub
- Add LICENSE_FILE
- Relax USES=python
- Update CPE
- Update WWW
Changes: https://github.com/denyhosts/denyhosts/releases
PR: 200837 (based on)
Submitted by: Jesse Smith <jsmith@resonatingmedia.com> |
2.6_7 14 Aug 2019 12:16:13 |
mat |
Convert to UCL & cleanup pkg-message (categories s) |
2.6_7 14 Mar 2018 06:11:13 |
yuri |
security/denyhosts: Unbreak by fixing shebang
Another file needed daemon-control-dist.
Also added NO_ARCH.
Approved by: portmgr (port compliance, infrastructure) |
2.6_7 19 Feb 2018 11:10:43 |
antoine |
Reduce dependency on the python2 metaport
PR: 225752
Submitted by: Yasuhiro KIMURA |
2.6_6 19 May 2016 11:09:14 |
amdmi3 |
- Fix trailing whitespace in pkg-messages
Approved by: portmgr blanket |
2.6_6 19 May 2016 10:53:06 |
amdmi3 |
- Fix trailing whitespace in pkg-descrs, categories [p-x]*
Approved by: portmgr blanket |
2.6_6 22 May 2015 20:34:29 |
mat |
Remove $FreeBSD$ from patches files everywhere.
With hat: portmgr
Sponsored by: Absolight |
2.6_6 23 Apr 2015 20:16:47 |
amdmi3 |
- Add CPE info
Approved by: portmgr blanket |
2.6_6 30 Aug 2014 02:53:44 |
sunpoet |
- Add missing OPTIONS_DEFINE
- Convert PYDISTUTILS_AUTOPLIST and USE_PYDISTUTILS to USE_PYTHON
- Remove python from SHEBANG_LANG
- Add REINPLACE_ARGS
- Move .bak/.orig removal from pre-install: to post-patch:
- Use @sample
- Bump PORTREVISION for package change
- Take maintainership |
2.6_5 21 Aug 2014 13:34:25 |
marino |
Security/denyhosts: Limit to python 2.x and reset maintainer
The maintainer has not been responsive and multiple PRs have timed out.
Convert USE_PYTHON=yes to USES=python:2 as this application will not
run on Python 3.x
PR: 187408
Submitted by: corsmith (gmail)
Approved by: maintainer timeout |
2.6_5 05 Apr 2014 19:44:15 |
ohauer |
- add stage support
- use PYDISTUTILS_AUTOPLIST
- rename patch files to reflect `make makepatch' naming
- fix possible DOS
reported on: http://seclists.org/oss-sec/2013/q4/535
PR: ports/185141
Submitted by: ohauer
Approved by: maintainer timeout |
2.6_4 20 Sep 2013 22:55:26 |
bapt |
Add NO_STAGE all over the place in preparation for the staging support (cat:
security) |
2.6_4 09 Jan 2013 19:50:06 |
tabthorpe |
- Change MAINTAINER address
- Trim headers while I am here
- Clean up some trailing whitespace |
2.6_4 14 Jan 2012 08:57:23 |
dougb |
In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().
In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other. |
2.6_4 15 Jul 2011 18:38:34 |
beech |
- Add support for new PAM based log formats in the config file
- Bump portrevision
PR: ports/158913
Submitted by: Janos Mohacsi <janos.mohacsi@bsd.hu> (maintainer) |
2.6_3 03 Jul 2011 14:03:52 |
ohauer |
-remove MD5 |
2.6_3 27 Mar 2010 00:15:24 |
dougb |
Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr# |
2.6_3 01 Feb 2010 17:43:23 |
pgollucci |
- Fix command_interpreter in the rc.d script
PR: ports/143053
Submitted by: Frank Wall <fw@moov.de>
Tweaked by: Janos Mohacsi <mohacsi@niif.hu> (maintainer)
Corrected by: pgollucci (myself) |
2.6_2 22 Aug 2009 00:35:32 |
amdmi3 |
- Switch SourceForge ports to the new File Release System: categories starting
with P,R,S |
2.6_2 27 Nov 2008 02:46:41 |
wxs |
- Add a patch to correct the location of nologin.
- Bump PORTREVISION.
PR: ports/129186
Submitted by: Till Klampaeckel <till@php.net>
Approved by: maintainer |
2.6_1 30 Jul 2007 09:42:28 |
alexbl |
- Make Python 2.5.1 the default Python version
- Add significantly better support in bsd.python.mk for working with
Python Eggs and the easy_install system
Tested by: pointyhat runs
Approved by: pav (portmgr)
Most work by: perky
Thanks to: pav |
2.6_1 29 Jun 2007 12:11:11 |
miwi |
- Update message file to display rc.conf
- Use SUB_FILES
PR: 113944
Submitted by: Janos Mohacsi <janos.mohacsi@bsd.hu> (maintainer) |
2.6_1 23 Jun 2007 06:35:16 |
rafan |
- Fix a DoS issue
PR: ports/113942
Security: http://www.ossec.net/en/attacking-loganalysis.html#denyhosts
Submitted by: David Bestor <freebsd1 at indenial.com>
Approved by: Janos Mohacsi <mohacsi at niif.hu> (maintainer) |
2.6 30 Dec 2006 17:20:46 |
miwi |
- Update to 2.6
PR: ports/107326
Submitted by: Janos Mohacsi <janos.mohacsi@bsd.hu> (maintainer) |
2.5_1 23 Nov 2006 06:43:34 |
clsung |
- Move patch from pre-configure to post-patch.
- Use denyhost.conf (FreeBSD's default config file) instead of denyhost.cfg.
- Bump PORTREVISION.
PR: ports/105305
Submitted by: Gea-Suan Lin <gslin_AT_gslin dot org>
Approved by: maintainer (Mohacsi Janos) |
2.5 07 Oct 2006 17:03:40 |
shaun |
Add a note to pkg-message warning users about potential problems
relating to default syslogd(8) behavior.
PR: ports/102605
Submitted by: Jeremie Le Hen <jeremie@le-hen.org>
Approved by: maintainer timeout (5 weeks) |
2.5 30 Jun 2006 17:13:22 |
garga |
- Update to 2.5
* ADMIN_EMAIL pref can now contain multiple email addresses delimited by a
comma (white space is optional). eg. foo@bar.com, bar@foo.com,
foobar@foo.com
* fixed bug in denyfileutil: 'timestamp' is now initialized properly
* daemon-control-dist: modified to work w/ non-default python versions. You
must change the PYTHON_BIN and #!/bin/env/python references if appropriate.
* added a debug message when loading allowed-hosts fails.
* fixed bug when reporting suspicious login activity.
PR: ports/99636
Submitted by: maintainer |
2.4.b 19 May 2006 23:47:45 |
mnag |
- Update to 2.4b
- Add new rc.d script
PR: 96824
Submitted by: Rui Lopes <rgl___ruilopes.com>
Approved by: maintainer timeout (14 days) |
2.2 13 May 2006 04:15:53 |
edwin |
Remove USE_REINPLACE from all categories starting with S |
2.2 31 Mar 2006 03:43:05 |
ijliao |
upgrade to 2.2
PR: 95044
Submitted by: maintainer |
1.1.2 11 Nov 2005 06:45:58 |
vanilla |
Add denyhosts 1.1.2, script to thwart ssh attacks.
PR: ports/88781
Submitted by: Janos Mohacsi <janos.mohacsi.at.bsd.hu> |