From ffd6b9f6de3b94a255d145017ed6efb3a5c9e79c Mon Sep 17 00:00:00 2001 From: sebres Date: Tue, 5 Dec 2017 16:09:18 +0100 Subject: [PATCH] jail.conf: extended with new parameter `mode` for the filters supporting it; --- config/jail.conf | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/config/jail.conf b/config/jail.conf index 1dabafe6..fc5dcb39 100644 --- a/config/jail.conf +++ b/config/jail.conf @@ -117,10 +117,13 @@ logencoding = auto enabled = false +# "mode" defines the mode of the filter (see corresponding filter implementation for more info). +mode = normal + # "filter" defines the filter to use by the jail. # By default jails have names matching their filter name # -filter = %(__name__)s +filter = %(__name__)s[mode=%(mode)s] # @@ -237,8 +240,7 @@ action = %(action_)s # To use more aggressive sshd modes set filter parameter "mode" in jail.local: # normal (default), ddos, extra or aggressive (combines all). # See "tests/files/logs/sshd" or "filter.d/sshd.conf" for usage example and details. -mode = normal -filter = sshd[mode=%(mode)s] +#mode = normal port = ssh logpath = %(sshd_log)s backend = %(sshd_backend)s @@ -536,7 +538,6 @@ backend = %(syslog_backend)s [postfix] # To use another modes set filter parameter "mode" in jail.local: mode = more -filter = postfix[mode=%(mode)s] port = smtp,465,submission logpath = %(postfix_log)s backend = %(postfix_backend)s @@ -562,8 +563,7 @@ backend = %(syslog_backend)s # To use more aggressive modes set filter parameter "mode" in jail.local: # normal (default), extra or aggressive # See "tests/files/logs/sendmail-reject" or "filter.d/sendmail-reject.conf" for usage example and details. -mode = normal -filter = sendmail-reject[mode=%(mode)s] +#mode = normal port = smtp,465,submission logpath = %(syslog_mail)s backend = %(syslog_backend)s @@ -599,7 +599,8 @@ logpath = %(solidpop3d_log)s [exim] - +# see filter.d/exim.conf for further modes supported from filter: +#mode = normal port = smtp,465,submission logpath = %(exim_main_log)s @@ -869,17 +870,14 @@ logpath = /var/log/haproxy.log [slapd] port = ldap,ldaps -filter = slapd logpath = /var/log/slapd.log [domino-smtp] port = smtp,ssmtp -filter = domino-smtp logpath = /home/domino01/data/IBM_TECHNICAL_SUPPORT/console.log [phpmyadmin-syslog] port = http,https -filter = phpmyadmin-syslog logpath = %(syslog_authpriv)s backend = %(syslog_backend)s