notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
Port details
py-fail2ban Scans log files and bans IP that makes too many password failures
1.1.0_8 security on this many watch lists=26 search for ports that depend on this port An older version of this port was marked as vulnerable. Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 1.1.0_7Version of this port present on the latest quarterly branch.
Maintainer: cy@FreeBSD.org search for ports maintained by this maintainer
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.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb

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)
  • fail2ban
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>)
  • py311: py311-fail2ban
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):
py37-fail2ban
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest--0.11.2--n/an/an/a
FreeBSD:13:quarterly-----n/an/an/a
FreeBSD:14:latest--------
FreeBSD:14:quarterly--------
FreeBSD:15:latest--n/a-n/an/a--
FreeBSD:15:quarterly--n/a-n/an/a--
FreeBSD:16:latest--n/a-n/an/a--
 
py39-fail2ban
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest-----n/an/an/a
FreeBSD:13:quarterly--1.0.2--n/an/an/a
FreeBSD:14:latest--1.0.2--1.0.2-1.0.2
FreeBSD:14:quarterly-----1.0.21.0.21.0.2
FreeBSD:15:latest--n/a-n/an/a1.0.2_11.0.2_1
FreeBSD:15:quarterly--n/a-n/an/a--
FreeBSD:16:latest--n/a-n/an/a--
 
py311-fail2ban
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest1.1.0_71.1.0_8-1.1.0_71.1.0_8n/an/an/a
FreeBSD:13:quarterly1.1.0_71.1.0_7-1.1.0_51.1.0_7n/an/an/a
FreeBSD:14:latest1.1.0_71.1.0_8-1.1.0_71.1.0_8---
FreeBSD:14:quarterly1.1.0_71.1.0_7-1.1.0_51.1.0_7---
FreeBSD:15:latest1.1.0_81.1.0_8n/a1.1.0_6n/an/a--
FreeBSD:15:quarterly1.1.0_71.1.0_7n/a-n/an/a--
FreeBSD:16:latest1.1.0_71.1.0_8n/a-n/an/a--
 
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py311-setuptools>=63.1.0 : devel/py-setuptools@py311
Runtime dependencies:
  1. py311-sqlite3>0 : databases/py-sqlite3@py311
  2. py311-pyinotify>=0.8.3 : devel/py-pyinotify@py311
  3. python3.11 : lang/python311
Extract dependencies:
  1. 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:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/fail2ban/fail2ban/tar.gz/1.1.0?dummy=/
Collapse this list.

Number of commits found: 102 (showing only 2 on this page)

«  1 | 2 

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.8.3
16 May 2009 06:27:56
Original commit files touched by this commit This port version is marked as vulnerable.
pgollucci search for other commits by this committer
- Mark most of my ports MAKE_JOBS_SAFE=yes

Tested by: several builds in P6 TB
0.8.3
13 Jan 2009 18:22:19
Original commit files touched by this commit This port version is marked as vulnerable.
pgollucci search for other commits by this committer
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.

WWW: http://www.fail2ban.org/wiki/index.php/Main_Page

Number of commits found: 102 (showing only 2 on this page)

«  1 | 2