fail2ban/config/filter.d
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
..
ignorecommands filter.d/ignorecommands/apache-fakegooglebot: added timeout parameter (default 55 seconds) - avoid fail with timeout (default 1 minute) by reverse lookup on some slow DNS services (googlebots must be resolved fast); 2021-03-02 19:35:27 +01:00
3proxy.conf added possibility to specify more precise default date pattern: 2016-10-17 11:18:30 +02:00
apache-auth.conf [DATALAD RUNCMD] run codespell throughout fixing typo automagically 2023-11-18 10:04:04 -05:00
apache-badbots.conf Merge remote-tracking branch 'upstream/master' into 0.10 2017-09-08 11:11:05 +02:00
apache-botsearch.conf Merge branch 'master' into 0.10 2017-10-18 19:00:23 +02:00
apache-common.conf filter.d/apache-common.conf: remote besides client, gh-3622 2024-03-15 22:36:40 +01:00
apache-fakegooglebot.conf filter.d/apache-fakegooglebot.conf: better, more precise regex and datepattern (closes possible weakness like #3013) 2021-05-11 13:47:48 +02:00
apache-modsecurity.conf updated 2019-04-24 21:35:19 +02:00
apache-nohome.conf DOC: in filters, put user relevant doc at top, and developer info at bottom, and remove all the repetative blindly copied stuff that appears in the jail man page 2013-10-31 00:02:59 +11:00
apache-noscript.conf filter.d/apache-noscript.conf: extended to match "script not found" with error AH02811 (and cgi-bin path segment in script) 2020-11-23 17:25:41 +01:00
apache-overflows.conf filter.d/apache-overflows.conf - consider AH10244: invalid URI path; 2024-06-28 12:50:14 +02:00
apache-pass.conf more precise date template handling (WARNING: this commit creates possible incompatibilities): 2016-10-17 11:20:27 +02:00
apache-shellshock.conf Merge remote-tracking branch 'remotes/gh-upstream/master' into 0.10 2017-12-01 15:53:11 +01:00
assp.conf Merge branch '0.9-fix-regex-using-journal' into 0.10-fix-regex-using-journal (merge point against 0.9 after back-porting gh-1660 from 0.10) 2017-01-10 11:25:41 +01:00
asterisk.conf Add transport to asterisk RE 2021-01-31 15:22:16 +01:00
bitwarden.conf review and small tweaks (more precise and safe RE) 2020-11-09 13:43:59 +01:00
botsearch-common.conf Update botsearch-common.conf (#1759) 2017-04-26 20:14:39 +02:00
centreon.conf Add Centreon jail 2019-10-24 14:37:18 +02:00
common.conf common.conf: fixed typo in comment (rfc5424 for logtype) 2022-05-12 18:09:09 +02:00
counter-strike.conf added possibility to specify more precise default date pattern: 2016-10-17 11:18:30 +02:00
courier-auth.conf filter.d/courier-auth.conf: consider optional port after IP, regex is rewritten without catch-all's and right anchor, so it is more stable against further modifications now; 2022-02-09 12:18:23 +01:00
courier-smtp.conf filter.d/courier-smtp.conf: prefregex extended to consider port in log-message (closes gh-2697) 2020-04-21 13:32:17 +02:00
cyrus-imap.conf filter.d/cyrus-imap.conf: fixed failregex - accept entries without login-info resp. hostname before IP address 2017-03-09 16:13:45 +01:00
dante.conf IPv6 fix (second IP logged in form for IPv6); pam authentication failure (part of gh-3410) 2023-12-30 15:10:37 +01:00
directadmin.conf added possibility to specify more precise default date pattern: 2016-10-17 11:18:30 +02:00
domino-smtp.conf filter.d/domino-smtp.conf: 2018-09-21 14:14:00 +02:00
dovecot.conf fixes gh-3370: resolve extremely long search by repeated apply of non-greedy RE (?:: (?:[^\(]+|\w+\([^\)]*\))+)? with following branches (it may be extremely slow up to infinite search depending on message); added new regression tests 2022-10-04 14:10:45 +02:00
dropbear.conf Fix Dropbear filter when logging to STDOUT 2024-12-27 13:59:35 +07:00
drupal-auth.conf more precise RE (avoids weakness with catch-all's and is injection safe) 2021-02-11 18:32:32 +01:00
ejabberd-auth.conf small amend to gh-1850: removed greedy catch-all at end. 2017-08-07 15:24:16 +02:00
exim-common.conf bypass additional pid in prefix (may be logged by syslog-ng, gh-3060); matches protocol error with authentication mechanism not supported 2024-03-25 15:52:06 +01:00
exim-spam.conf filter.d/exim.conf: 2024-03-25 15:31:23 +01:00
exim.conf bypass additional pid in prefix (may be logged by syslog-ng, gh-3060); matches protocol error with authentication mechanism not supported 2024-03-25 15:52:06 +01:00
freeswitch.conf filter.d/freeswitch.conf: bypass some new info in prefix before [WARNING] (changed default _pref_line); 2024-12-04 16:56:23 +01:00
froxlor-auth.conf Several filters optimized with pre-filtering using new option prefregex 2017-02-21 15:54:59 +01:00
gitlab.conf New Gitlab jail 2020-04-09 16:42:08 +02:00
grafana.conf no catch-alls, user name and error message stored in ticket 2020-11-09 15:36:30 +01:00
groupoffice.conf ENH: define ignoreregex for all filters explicitly, to avoid warnings (Closes #934) 2015-01-30 10:38:28 -05:00
gssftpd.conf DOC: in filters, put user relevant doc at top, and developer info at bottom, and remove all the repetative blindly copied stuff that appears in the jail man page 2013-10-31 00:02:59 +11:00
guacamole.conf Enhance Guacamole jail 2020-08-25 13:01:50 +02:00
haproxy-http-auth.conf Update haproxy-http-auth.conf 2017-04-11 09:11:08 +02:00
horde.conf MRG: horde filter from master 2014-01-03 10:34:59 +11:00
kerio.conf Merge remote-tracking branch 'remotes/gh-upstream/master' into 0.10 2017-06-12 13:11:45 +02:00
lighttpd-auth.conf filter.d/lighttpd-auth.conf: adjusted to the current source code + avoiding catch-all's, etc (gh-3116) 2021-10-01 15:03:24 +02:00
mongodb-auth.conf [DATALAD RUNCMD] run codespell throughout fixing typo automagically 2023-11-18 10:04:04 -05:00
monit.conf filter.d/common.conf: closes gh-2650, avoid substitute of default values in related lt_* section, __prefix_line should be interpolated in definition section (after the config considers all sections that can overwrite it); 2020-03-05 13:47:11 +01:00
monitorix.conf more precise anchored RE (also combining all 3 REs in a single regex) 2021-04-14 13:06:58 +02:00
mssql-auth.conf precise regex (left anchor and fewer catch-all's); fixed tests (added failJSON and more tests for some corner-cases around new RE) 2021-04-03 20:16:47 +02:00
murmur.conf filter.d/murmur.conf: fixed detection of failures reading from journal (systemd-backend only): 2018-02-09 11:43:55 +01:00
mysqld-auth.conf [DATALAD RUNCMD] run codespell throughout fixing typo automagically 2023-11-18 10:04:04 -05:00
nagios.conf removing the second failregex 2014-02-06 00:22:05 +01:00
named-refused.conf loosening for denied suffix (would match no matter which reason in parenthesis); 2024-03-25 16:35:20 +01:00
nginx-bad-request.conf fix: add journalmatch to nginx filters 2021-04-03 19:20:50 +02:00
nginx-botsearch.conf fix: add journalmatch to nginx filters 2021-04-03 19:20:50 +02:00
nginx-error-common.conf more filters for nginx error-log supporting journal format now, added generalized include and __prefix_line 2023-12-10 15:21:20 +01:00
nginx-forbidden.conf more filters for nginx error-log supporting journal format now, added generalized include and __prefix_line 2023-12-10 15:21:20 +01:00
nginx-http-auth.conf more filters for nginx error-log supporting journal format now, added generalized include and __prefix_line 2023-12-10 15:21:20 +01:00
nginx-limit-req.conf more filters for nginx error-log supporting journal format now, added generalized include and __prefix_line 2023-12-10 15:21:20 +01:00
nsd.conf restore anchor (e. g. catch all in the middle), dot is optional now, RE rewritten a bit more precise 2021-04-03 21:00:14 +02:00
openhab.conf added possibility to specify more precise default date pattern: 2016-10-17 11:18:30 +02:00
openwebmail.conf ENH: stronger regex for failregex 2013-12-31 08:22:52 +11:00
oracleims.conf added possibility to specify more precise default date pattern: 2016-10-17 11:18:30 +02:00
pam-generic.conf quick optimization: normalizes pam-generic prefregex (more similar to the same regex within sshd-filter) + datepattern anchored now; 2018-03-20 16:00:21 +01:00
perdition.conf DOC: in filters, put user relevant doc at top, and developer info at bottom, and remove all the repetative blindly copied stuff that appears in the jail man page 2013-10-31 00:02:59 +11:00
php-url-fopen.conf more precise date template handling (WARNING: this commit creates possible incompatibilities): 2016-10-17 11:20:27 +02:00
phpmyadmin-syslog.conf typo 2020-11-23 18:08:38 +01:00
portsentry.conf more precise date template handling (WARNING: this commit creates possible incompatibilities): 2016-10-17 11:20:27 +02:00
postfix.conf consider CONNECT and other rejected commands as a valid _pref; 2024-07-26 19:25:36 +02:00
proftpd.conf typo 2020-11-23 18:07:49 +01:00
proxmox.conf review (anchoring RE, etc) 2024-07-30 19:16:40 +02:00
pure-ftpd.conf define journalmatch setting for pure-ftps 2016-03-11 18:19:53 +01:00
qmail.conf DOC: in filters, put user relevant doc at top, and developer info at bottom, and remove all the repetative blindly copied stuff that appears in the jail man page 2013-10-31 00:02:59 +11:00
recidive.conf filter.d/recidive.conf - restore possibility to set jail name in the filter, _jailname is positive now (but by default it uses now negative lookahead to exclude recidive jail); 2024-06-21 13:24:46 +02:00
roundcube-auth.conf Fixes unmatched tag (caused unmatched brace); review: combined to single regex, simple case without injection attempts faster, <HOST> replaced with <ADDR> (faster and fewer vulnerable on complex cases, since doesn't match text as hostname) etc. 2024-08-10 13:20:18 +02:00
routeros-auth.conf New filter: routeros-auth.conf (Closes #3469) 2023-03-02 09:25:24 +01:00
scanlogd.conf small amend: sport after saddr is optional 2021-04-03 23:29:16 +02:00
screensharingd.conf Removed old svn revision comment 2015-11-02 09:08:47 -08:00
selinux-common.conf small amend (non capturing group) 2022-11-14 18:56:01 +01:00
selinux-ssh.conf [DATALAD RUNCMD] run codespell throughout fixing typo automagically 2023-11-18 10:04:04 -05:00
sendmail-auth.conf filter.d/sendmail-auth.conf: detect failures without user part 2022-08-01 09:20:28 +02:00
sendmail-reject.conf filter.d/sendmail-reject.conf: fix reverse DNS for ... (gh-3012) 2021-05-29 18:45:59 +02:00
sieve.conf Fix sieve filter to use correct option 2014-07-28 23:42:02 +09:00
slapd.conf gh-3604: filter.d/slapd.conf - switched to single-line processing 2023-10-18 16:06:56 +02:00
softethervpn.conf small tweaks (both 2nd time and facility are optional, avoid catch-all, etc) 2020-11-09 13:19:25 +01:00
sogo-auth.conf [DATALAD RUNCMD] run codespell throughout fixing typo automagically 2023-11-18 10:04:04 -05:00
solid-pop3d.conf Fix a few typos 2014-03-24 13:16:52 +00:00
squid.conf more precise date template handling (WARNING: this commit creates possible incompatibilities): 2016-10-17 11:20:27 +02:00
squirrelmail.conf added possibility to specify more precise default date pattern: 2016-10-17 11:18:30 +02:00
sshd.conf filter.d/sshd.conf: ddos and aggressive modes, regex extended for timeout before authentication (optional connection from part); 2024-12-26 14:24:15 +01:00
stunnel.conf ENH: define ignoreregex for all filters explicitly, to avoid warnings (Closes #934) 2015-01-30 10:38:28 -05:00
suhosin.conf suhosin.conf: removed greedy match 2017-01-21 16:26:07 +01:00
tine20.conf more precise date template handling (WARNING: this commit creates possible incompatibilities): 2016-10-17 11:20:27 +02:00
traefik-auth.conf [DATALAD RUNCMD] run codespell throughout fixing typo automagically 2023-11-18 10:04:04 -05:00
uwimap-auth.conf DOC: in filters, put user relevant doc at top, and developer info at bottom, and remove all the repetative blindly copied stuff that appears in the jail man page 2013-10-31 00:02:59 +11:00
vsftpd.conf filter.d/vsftpd.conf: optional reason message after FAIL LOGIN, closes #1543 2016-09-09 09:20:15 +02:00
webmin-auth.conf BF: remove duplication definition secion in webmin-auth 2013-11-04 17:54:36 +11:00
wuftpd.conf Add filter variable __pam_auth to allow easier changing of pam auth backend 2015-01-27 14:34:27 -07:00
xinetd-fail.conf Several filters optimized with pre-filtering using new option prefregex 2017-02-21 15:54:59 +01:00
znc-adminlog.conf filter.d/znc-adminlog.conf: support logging format of systemd-journal, bypass port after address (optional, removed end-anchor, see gh-2520) 2019-09-10 21:02:26 +02:00
zoneminder.conf padding with space, prefregex, regex review (simplifying, capture user name, consider possible space char in user name) 2021-05-21 13:00:24 +02:00