| Port details |
- py-fail2ban Scans log files and bans IP that makes too many password failures
- 1.1.1 security
=24 1.1.0_8Version of this port present on the latest quarterly branch. - Maintainer: cy@FreeBSD.org
 - Port Added: 2009-01-13 18:22:37
- Last Update: 2026-08-24 15:29:17
- Commit Hash: 7935d9f
- People watching this port, also watch:: curl, dovecot, libxml2, rsync, pcre
- 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 py312-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 py312-fail2ban listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py312-fail2ban
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1787580972
SHA256 (fail2ban-fail2ban-1.1.1_GH0.tar.gz) = 4be0ea0488e32de260058462a44a040f0542cd26a9fb6fa6d2514f9dd8ec1609
SIZE (fail2ban-fail2ban-1.1.1_GH0.tar.gz) = 627126
No package information for this port in our database- Sometimes this happens. Not all ports have packages. Perhaps there is a build error. Check the fallout link:

- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py312-setuptools>=63.1.0 : devel/py-setuptools@py312
- Runtime dependencies:
-
- py312-sqlite3>0 : databases/py-sqlite3@py312
- py312-pyinotify>=0.8.3 : devel/py-pyinotify@py312
- python3.12 : lang/python312
- Patch dependencies:
-
- python3.12 : lang/python312
- There are no ports dependent upon this port
Configuration Options:
- ===> The following configuration options are available for py312-fail2ban-1.1.1:
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:
|