From 1e7e4d7d5d604ca6e5c64db4864358ccfdb94c63 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Sun, 13 Mar 2016 15:16:38 +1000 Subject: [PATCH] * update sample config --- docs/f2b.conf.sample | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/f2b.conf.sample b/docs/f2b.conf.sample index c63d914..e86c6a9 100644 --- a/docs/f2b.conf.sample +++ b/docs/f2b.conf.sample @@ -9,7 +9,13 @@ group = root daemon = yes [defaults] -backend = exec-ipset:banned +enabled = no +bantime = 3600 +findtime = 300 +maxretry = 5 +source = files:/var/log/messages +; filter = preg:/etc/f2b/filters/$someservice.preg +backend = exec-ipset:banned [filter:preg] load = libf2b_filter_preg.so @@ -26,5 +32,5 @@ unban = /sbin/ipset -! del timeout = 2 [jail:ssh] -source = files:/var/log/*.log -filter = preg:filters/ssh.preg +source = files:/var/log/auth.log +filter = preg:/etc/f2b/filters/ssh.preg