fail2ban/fail2ban
MichaIng dd9f359f5c
Fix Dropbear filter when logging to STDOUT
Since Debian Bookworm, the distribution ships Dropbear with a native systemd service instead of the default upstream init.d service, and accordingly uses the `-F` and `-E` flags, to run it in foreground and have it logging to STDOUT instead of syslog.

As usual, timestamps and also the PID are now included by the log message emitted by Dropbear, in addition to the systemd journal log prefix.

The Dropbear filter hence does not match anymore. This commit adds the PID and timestamp as optional pattern between prefix and fail log text, to support Dropbear on Debian Bookworm and newer (and likely new versions of other distros) without breaking the old pattern when running Dropbear without `-E` flag.

Additionally, for performance reasons, this commit adds a `journalmatch` entry, matching Debian's and Fedora's `dropbear.service` with `dropbear` executable/identifier, the most likely match for a Dropbear systemd service.

Signed-off-by: MichaIng <micha@dietpi.com>
2024-12-27 13:59:35 +07:00
..
client Merge pull request #3636 from szepeviktor/typos 2024-12-21 19:31:54 +01:00
compat bundling async modules removed in python 3.12 into f2b (fallback to local libraries if import would miss them); 2023-12-12 15:16:05 +01:00
server Merge pull request #3636 from szepeviktor/typos 2024-12-21 19:31:54 +01:00
tests Fix Dropbear filter when logging to STDOUT 2024-12-27 13:59:35 +07:00
__init__.py fixed dependency issue if setup invoked using python 3.x: invocation of 2to3 takes place after setup (and __init__.py) loaded; 2018-10-10 12:25:53 +02:00
exceptions.py Fix PEP8 E302 expected 2 blank lines, found X 2015-07-04 13:47:40 -04:00
helpers.py improve fix with fallback to local async libraries - add path to compat folder (pyinotify module may have dependency to asyncore module, see https://github.com/fail2ban/fail2ban/issues/3487#issuecomment-2133529081); 2024-05-27 16:18:26 +02:00
protocol.py docs: explicitly list status flavors 2024-12-20 08:42:19 +01:00
setup.py easy-fix: reset fail2ban link to python, if it targeted unavailable file 2016-08-12 21:32:18 +02:00
version.py version bump 2024-04-26 02:06:09 +02:00