summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorsebres <serg.brester@sebres.de>2022-02-09 17:10:19 +0100
committersebres <serg.brester@sebres.de>2022-02-09 17:10:19 +0100
commita2431158f670867e65534674b640cd0672a85e49 (patch)
treea2e3b81f1addb6edd1b605aa717128bb18152778 /config
parent13520a0494e24203c50ce5826a227d06632d6f01 (diff)
downloadfail2ban-a2431158f670867e65534674b640cd0672a85e49.tar.gz
implements new interpolation variable `%(fail2ban_confpath)s` (automatically substituted from config-reader path, default `/etc/fail2ban` or `/usr/local/etc/fail2ban` depending on distribution); `ignorecommands_dir` is unneeded anymore, thus removed from `paths-common.conf`;
fixes gh-3005
Diffstat (limited to 'config')
-rw-r--r--config/jail.conf2
-rw-r--r--config/paths-common.conf3
2 files changed, 1 insertions, 4 deletions
diff --git a/config/jail.conf b/config/jail.conf
index e827167b..fe8db527 100644
--- a/config/jail.conf
+++ b/config/jail.conf
@@ -346,7 +346,7 @@ maxretry = 2
port = http,https
logpath = %(apache_access_log)s
maxretry = 1
-ignorecommand = %(ignorecommands_dir)s/apache-fakegooglebot <ip>
+ignorecommand = %(fail2ban_confpath)s/filter.d/ignorecommands/apache-fakegooglebot <ip>
[apache-modsecurity]
diff --git a/config/paths-common.conf b/config/paths-common.conf
index 7383cafe..4f6a5f71 100644
--- a/config/paths-common.conf
+++ b/config/paths-common.conf
@@ -91,6 +91,3 @@ mysql_log = %(syslog_daemon)s
mysql_backend = %(default_backend)s
roundcube_errors_log = /var/log/roundcube/errors
-
-# Directory with ignorecommand scripts
-ignorecommands_dir = /etc/fail2ban/filter.d/ignorecommands