summaryrefslogtreecommitdiff
path: root/config/fail2ban.conf
diff options
context:
space:
mode:
authorsebres <info@sebres.de>2019-04-18 20:31:39 +0200
committersebres <info@sebres.de>2019-04-18 20:31:39 +0200
commit0386df0042d68f8b2ffb34643b7aed9342e23762 (patch)
tree0692056da25f7be1238ee70f667bd9ded84bd17d /config/fail2ban.conf
parent1083788e705adecca7f25967e4f76aa80def579e (diff)
downloadfail2ban-0386df0042d68f8b2ffb34643b7aed9342e23762.tar.gz
introduced new options: `dbmaxmatches` (fail2ban.conf) and `maxmatches` (jail.conf);
setting `maxmatches` and `dbmaxmatches` to 0 saves memory usage and database size (closes gh-2118).
Diffstat (limited to 'config/fail2ban.conf')
-rw-r--r--config/fail2ban.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/fail2ban.conf b/config/fail2ban.conf
index 08e8fcf3..cf1cf5ae 100644
--- a/config/fail2ban.conf
+++ b/config/fail2ban.conf
@@ -68,6 +68,12 @@ dbfile = /var/lib/fail2ban/fail2ban.sqlite3
# Values: [ SECONDS ] Default: 86400 (24hours)
dbpurgeage = 1d
+# Options: dbmaxmatches
+# Notes.: Number of matches stored in database per ticket (resolvable via
+# tags <ipmatches>/<ipjailmatches> in actions)
+# Values: [ INT ] Default: 10
+dbmaxmatches = 10
+
[Thread]
# Options: stacksize