From ee421dfbd614b4eb6582c8544af5c7d1539941da Mon Sep 17 00:00:00 2001 From: sebres Date: Fri, 28 Mar 2025 22:52:51 +0100 Subject: [PATCH] `filter.d/apache-noscript.conf` - consider new log-format with "AH02811: stderr from /..."; closes gh-3900 --- ChangeLog | 3 ++- config/filter.d/apache-noscript.conf | 7 +++---- fail2ban/tests/files/logs/apache-noscript | 3 +++ fail2ban/tests/files/logs/apache-overflows | 5 +++++ 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index b8a6ea1c..37d8ea58 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22,7 +22,8 @@ ver. 1.1.1-dev-1 (20??/??/??) - development nightly edition - sshd backend switched to `systemd` (gh-3292) * `action.d/firewallcmd-ipset.conf`: - rename `ipsettype` to `ipsetbackend` (gh-2620), parameter `ipsettype` will be used now to the real set type (gh-3760) -* `filter.d/apache-overflows.conf` - consider AH10244: invalid URI path (gh-3778) +* `filter.d/apache-noscript.conf` - consider new log-format with "AH02811: stderr from /..." (gh-3900) +* `filter.d/apache-overflows.conf` - consider AH10244: invalid URI path (gh-3778, gh-3900) * `filter.d/exim.conf` - mode `aggressive` extended to catch dropped by ACL failures, e.g. "ACL: Country is banned" * `filter.d/freeswitch.conf` - bypass some new info in prefix before [WARNING] (changed default `_pref_line`), FreeSWITCH log line prefix has changed in newer versions (gh-3143) diff --git a/config/filter.d/apache-noscript.conf b/config/filter.d/apache-noscript.conf index dd9452a9..d8f9fdfd 100644 --- a/config/filter.d/apache-noscript.conf +++ b/config/filter.d/apache-noscript.conf @@ -19,11 +19,10 @@ before = apache-common.conf script = /\S*(?:php(?:[45]|[.-]cgi)?|\.asp|\.exe|\.pl|\bcgi-bin/) -prefregex = ^%(_apache_error_client)s (?:AH0(?:01(?:28|30)|1(?:264|071)|2811): )?(?:(?:[Ff]ile|script|[Gg]ot) ).+$ +prefregex = ^%(_apache_error_client)s (?:AH0(?:01(?:28|30)|1(?:264|071)|2811): )?(?=(?:[Ff]ile|[Ss]cript|[Gg]ot error|stderr from) ).+$ -failregex = ^(?:does not exist|not found or unable to stat):