From 70950c8a8d3d905e2895bb7200e6ee5b6e9599ea Mon Sep 17 00:00:00 2001 From: Thuban <thuban@yeuxdelibad.net> Date: Thu, 13 Dec 2018 18:17:10 +0000 Subject: [PATCH] better memory perf --- vilain.conf | 11 +++++------ 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/vilain.conf b/vilain.conf index ee687be..9828c21 100644 --- a/vilain.conf +++ b/vilain.conf @@ -1,7 +1,6 @@ [DEFAULT] -# 24h + 5min -# Time to keep banned a bad ip -watch_while = 86700 +# Duration (in sec) to keep banned a bad ip, reduce value if too much memory consumption +watch_while = 3602 # Max tries before being banned maxtries = 3 # pf table to keep bad IP. @@ -33,9 +32,9 @@ logfile = /var/log/authlog regex = .* Connection closed by ([\S]+) .* -[ssh3] -logfile = /var/log/authlog -regex = .* Invalid user \w+ ([\S]+) .* +#[ssh3] +#logfile = /var/log/authlog +#regex = .* Invalid user \w+ from ([\S]+) .* [ssh4] logfile = /var/log/authlog -- Gitblit v1.9.3