| Port details |
- py-fail2ban Scans log files and bans IP that makes too many password failures
- 1.1.0_8 security
=26 1.1.0_7Version of this port present on the latest quarterly branch. - Maintainer: cy@FreeBSD.org
 - Port Added: 2009-01-13 18:22:37
- Last Update: 2026-01-13 14:45:23
- Commit Hash: 4fde322
- People watching this port, also watch:: curl, dovecot, rsync, libxml2, expat
- Also Listed In: python
- License: GPLv2
- WWW:
- https://www.fail2ban.org/wiki/index.php/Main_Page
- Description:
- Fail2ban scans log files like /var/log/pwdfail or /var/log/apache/error_log
and bans IP that makes too many password failures. It updates firewall rules
to reject the IP address.
¦ ¦ ¦ ¦ 
- 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.
- USE_RC_SUBR (Service Scripts)
-
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}fail2ban>0:security/py-fail2ban@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/security/py-fail2ban/ && make install clean
- To add the package, run one of these commands:
- pkg install security/py-fail2ban
- pkg install py311-fail2ban
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-fail2ban listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py311-fail2ban
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1714104880
SHA256 (fail2ban-fail2ban-1.1.0_GH0.tar.gz) = 474fcc25afdaf929c74329d1e4d24420caabeea1ef2e041a267ce19269570bae
SIZE (fail2ban-fail2ban-1.1.0_GH0.tar.gz) = 603854
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:
-
- py311-setuptools>=63.1.0 : devel/py-setuptools@py311
- Runtime dependencies:
-
- py311-sqlite3>0 : databases/py-sqlite3@py311
- py311-pyinotify>=0.8.3 : devel/py-pyinotify@py311
- python3.11 : lang/python311
-
- There are no ports dependent upon this port
Configuration Options:
- ===> The following configuration options are available for py311-fail2ban-1.1.0_8:
DOCS=on: Build and/or install documentation
INOTIFY=on: Support for (lib)inotify to monitor filesystem changes
===> Use 'make config' to modify these settings
- Options name:
- security_py-fail2ban
- USES:
- cpe python:patch,run shebangfix
- pkg-message:
- For install:
- Please do not edit the fail2ban.conf, jail.conf, or any other
files in the distribution as they will be overwritten upon each
upgrade of the port. Instead, create new files named *.local e.g.
fail2ban.local or jail.local.
For more information, see the official manual:
http://www.fail2ban.org/wiki/index.php/MANUAL_0_8#Configuration
If you have custom filters or actions and you are upgrading from
0.9.x please check them.
Users of pf: please read the notes in action.d/pf.conf and the
discussion at https://github.com/fail2ban/fail2ban/pull/1925
Please note that fail2ban will put curly braces '{}' around the
ports in the action so you shouldn't do it yourself.
- Master Sites:
|