#1060386 fail2ban: Fail2ban Debian 12 fails to start

Package:
fail2ban
Source:
fail2ban
Submitter:
Guido van Brakel
Date:
2025-02-04 00:51:01 UTC
Severity:
normal
Tags:
#1060386#5
Date:
2024-01-10 14:06:47 UTC
From:
To:
Package: fail2ban
X-Debbugs-Cc: guido.vanbrakel@outlook.com
Version: 1.0.2-2
Severity: important
Dear Maintainer,

   * What led up to the situation? Installing fail2ban on Debian 12
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action? Fail2ban fails to start
   * What outcome did you expect instead? Fail2ban just starting without needing to

#1060386#12
Date:
2024-01-10 23:23:33 UTC
From:
To:
tags 1060386 + moreinfo
thanks

Hi there,

You should provide some more information, like the error message when
you manually launch `/usr/bin/fail2ban-server -vvv -x start`.

Please note that on a default Debian 12.4/bookworm you simply need to
add some lines to `jail.local`, without touching anything else:
```
[DEFAULT]
### <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1049452#10>
banaction = nftables
banaction_allports = nftables[type=allports]
### <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=770171#94>
backend = systemd
```

Thx, bye,
Gismo / Luca

#1060386#17
Date:
2024-01-11 06:44:20 UTC
From:
To:
Yeah but that shouldn't be needed like in previous distributions fail2ban should just start automatically after install the package
#1060386#22
Date:
2024-06-22 04:35:57 UTC
From:
To:
Dear Luca,

I am aware of the fix you've provided, but like Stefaan had said, the
package is supposed to work on a default Bookworm install -- it's how
it works before the systemd switch, and indeed how it works in testing
(Debian 13).

Version 1.0.2-3 ended up in testing, but DID NOT find its way into
stable. We should either seek to move that into stable, or seek to
move the current working version in testing (1.1.0-4) -- with a more
comprehensive systemd patch[0], into stable.

[0]: https://sources.debian.org/patches/fail2ban/1.1.0-4/update_backend_system.diff/

Thanks,
Mingye Wang (Artoria2e5)

#1060386#27
Date:
2025-02-04 00:42:51 UTC
From:
To: