# fail2ban mit Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für fail2ban in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:fail2ban
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install fail2ban
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fail2ban
```

  Evidenz: MacPorts ports tree: security/fail2ban/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add fail2ban
```

  Evidenz: Alpine Linux edge package indexes: fail2ban from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install fail2ban
```

  Evidenz: Debian stable package indexes: fail2ban from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install fail2ban
```

  Evidenz: Fedora Rawhide package metadata: fail2ban from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#fail2ban
```

  Evidenz: nixpkgs package indexes: pkgs/by-name/fa/fail2ban/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S fail2ban
```

  Evidenz: Arch Linux sync databases: fail2ban from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install fail2ban
```

  Evidenz: openSUSE Tumbleweed package metadata: fail2ban from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Paketfakten

- **Paketschlüssel:** brew:fail2ban
- **Paketmanager:** Homebrew
- **Version:** 1.1.0
- **Quellzusammenfassung:** Scan log files and ban IPs showing malicious signs
- **Homepage:** <https://www.fail2ban.org/>
- **Repository:** <https://github.com/fail2ban/fail2ban>
- **Zuletzt aktualisiert:** 2026-08-02T16:35:31+09:00
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- fail2ban-client (Alias)
- fail2ban-python (Alias)
- fail2ban-regex (Alias)
- fail2ban-server (Alias)
- fail2ban-testcases (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 1.1.0
## Projektgeschichte und Nutzung

Fail2Ban is a long-running Python daemon and command-line toolkit for reacting to hostile log patterns by banning hosts through firewall actions. Its core appeal has stayed stable since the early releases: watch authentication and service logs, count repeated failures, and temporarily block the offending address.

### Projektgeschichte

The official changelog records Fail2Ban releases back to 0.1.0 in October 2004. Early 0.x releases moved quickly through alpha, beta, and stable lines, with 0.6.0 stable in 2005, the 0.7 branch in 2006, and 0.8.0 stable in 2007. The README still credits Cyril Jaquier as original author and describes the project as community-driven for years.

The 0.9 series, beginning in 2014, marked the modern service-management era by adding a systemd journal backend. The 0.10 line followed with IPv6 work, including an alpha labeled for IPv6 support in 2016 and a 0.10.0 release in 2017. Later releases continued to refine journald, iptables, nftables, firewalld, pf, and service-specific filters.

The 1.x line arrived with 1.0.1 and 1.0.2 releases in 2022 and 1.1.0 in 2024. These releases focused less on changing the basic model and more on compatibility, security, and operational maintenance: Python version support, CVE fixes, systemd backend stability, IPv6 auto-detection, newer service log formats, and additional filters and actions.

### Adoptionsgeschichte

Fail2Ban became part of the standard Linux server-security toolbox because it matched the common shape of internet-facing Unix services: SSH, mail, web, and database daemons emitting failed-authentication logs. The project README says it is likely already packaged for a user's Linux distribution, and the supplied package-manager facts show broad availability across Alpine, Debian, Fedora/DNF, Homebrew, MacPorts, Nix, Arch, Ubuntu, and openSUSE.

Its adoption has been helped by configuration conventions that distributions can ship and administrators can override. Stock jails, filters, actions, and path files let package maintainers encode distribution-specific log locations while users keep local policy in `/etc/fail2ban`, especially `jail.local` and `jail.d` snippets.

### Wie es verwendet wird

A typical Fail2Ban deployment installs the daemon, enables selected jails such as `sshd`, and lets `fail2ban-server` monitor logs while administrators use `fail2ban-client` for status, reloads, and manual control. The README explicitly warns users to interact through `fail2ban-client` rather than calling the server directly.

The package also matters to operators because `fail2ban-regex` gives a local way to test filters against log samples before enabling bans. That workflow, plus filter and action directories, made Fail2Ban not just a daemon but a small domain-specific toolkit for converting service logs into firewall state.

### Warum Paket-Nerds sich dafür interessieren

Fail2Ban is significant in package-manager culture because it is both ordinary and sharp-edged: a tiny install command can place a privileged daemon, distro-specific defaults, init/systemd integration, and firewall actions on a host. Packagers must get paths, service units, Python dependencies, and default actions right or administrators either get no protection or accidental lockouts.

It is also a classic example of a package whose value comes from accumulated operational knowledge. The code is important, but the long tail of maintained filters for OpenSSH, Apache, nginx, Postfix, Dovecot, Exim, and many other services is why administrators keep installing it.

### Zeitleiste

- 2004: Fail2Ban 0.1.0 alpha released.
- 2005: 0.6.0 stable release published.
- 2007: 0.8.0 stable release published.
- 2014: 0.9.0 beta added systemd journal backend.
- 2016: 0.10.0 alpha introduced IPv6-support work.
- 2017: 0.10.0 released.
- 2020: 0.11.2 released.
- 2022: 1.0.1 and 1.0.2 released with compatibility and security fixes.
- 2024: 1.1.0 released with newer Python support and further backend/filter updates.

### Related projects

- OpenSSH, iptables, nftables, firewalld, pf, systemd-journald, DenyHosts, sshguard

### Quellen

- <https://github.com/fail2ban/fail2ban>
- <https://raw.githubusercontent.com/fail2ban/fail2ban/master/README.md>
- <https://raw.githubusercontent.com/fail2ban/fail2ban/master/ChangeLog>
- <https://fail2ban.readthedocs.io/>
- <https://github.com/fail2ban/fail2ban/wiki/How-to-install-fail2ban-packages>


## Sicherheitshinweise

broad file, network, media, or database tool signal. formula declares a Homebrew service.

- **Geiger-Risiko:** orange / mittel
- broad file, network, media, or database tool signal
- formula declares a Homebrew service


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: /etc/fail2ban/jail.conf, /etc/fail2ban/jail.local, /etc/fail2ban/jail.d/*.conf, /etc/fail2ban/filter.d/*.conf, /etc/fail2ban/action.d/*.conf
## Andere Paketmanager-Einträge

- Debian apt - fail2ban - 1.1.0-8: normalized package name match | Debian stable package indexes: fail2ban from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ban hosts that cause multiple authentication errors | https://www.fail2ban.org
- Nix - fail2ban: normalized package name match | nixpkgs package indexes: pkgs/by-name/fa/fail2ban/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - fail2ban - 1.0.2-3: normalized package name match | Ubuntu 24.04 LTS package indexes: fail2ban from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | ban hosts that cause multiple authentication errors | https://www.fail2ban.org
- apk - fail2ban - 1.1.0-r3: normalized package name match | Alpine Linux edge package indexes: fail2ban from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Scans log files for login failures then updates iptables to reject originating ip address | https://www.fail2ban.org/
- apk - fail2ban-doc - 1.1.0-r3: normalized package name match | Alpine Linux edge package indexes: fail2ban-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Scans log files for login failures then updates iptables to reject originating ip address (documentation) | https://www.fail2ban.org/
- apk - fail2ban-openrc - 1.1.0-r3: normalized package name match | Alpine Linux edge package indexes: fail2ban-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Scans log files for login failures then updates iptables to reject originating ip address (OpenRC init scripts) | https://www.fail2ban.org/
- apk - fail2ban-pyc - 1.1.0-r3: normalized package name match | Alpine Linux edge package indexes: fail2ban-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for fail2ban | https://www.fail2ban.org/
- apk - fail2ban-tests - 1.1.0-r3: normalized package name match | Alpine Linux edge package indexes: fail2ban-tests from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Fail2ban test cases | https://www.fail2ban.org/
- dnf - fail2ban - 1.1.0-19.fc45: normalized package name match | Fedora Rawhide package metadata: fail2ban from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Daemon to ban hosts that cause multiple authentication errors | https://www.fail2ban.org
- dnf - fail2ban-all - 1.1.0-19.fc45: normalized package name match | Fedora Rawhide package metadata: fail2ban-all from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Install all Fail2Ban packages and dependencies | https://www.fail2ban.org
- dnf - fail2ban-firewalld - 1.1.0-19.fc45: normalized package name match | Fedora Rawhide package metadata: fail2ban-firewalld from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Firewalld support for Fail2Ban | https://www.fail2ban.org
- dnf - fail2ban-hostsdeny - 1.1.0-19.fc45: normalized package name match | Fedora Rawhide package metadata: fail2ban-hostsdeny from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Hostsdeny (tcp_wrappers) support for Fail2Ban | https://www.fail2ban.org
- dnf - fail2ban-mail - 1.1.0-19.fc45: normalized package name match | Fedora Rawhide package metadata: fail2ban-mail from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Mail actions for Fail2Ban | https://www.fail2ban.org
- dnf - fail2ban-selinux - 1.1.0-19.fc45: normalized package name match | Fedora Rawhide package metadata: fail2ban-selinux from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | SELinux policies for Fail2Ban | https://www.fail2ban.org
- dnf - fail2ban-sendmail - 1.1.0-19.fc45: normalized package name match | Fedora Rawhide package metadata: fail2ban-sendmail from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Sendmail actions for Fail2Ban | https://www.fail2ban.org
- dnf - fail2ban-server - 1.1.0-19.fc45: normalized package name match | Fedora Rawhide package metadata: fail2ban-server from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Core server component for Fail2Ban | https://www.fail2ban.org


## Combined YAML source

View the package source record on GitHub. [combined/fail2ban.yml](https://github.com/mxcl/pkgdb/blob/main/combined/fail2ban.yml)


## Quellen

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
