mirror of https://github.com/fail2ban/fail2ban
jail.conf: extended with new parameter `mode` for the filters supporting it;
parent
2b68882502
commit
ffd6b9f6de
|
@ -117,10 +117,13 @@ logencoding = auto
|
||||||
enabled = false
|
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.
|
# "filter" defines the filter to use by the jail.
|
||||||
# By default jails have names matching their filter name
|
# 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:
|
# To use more aggressive sshd modes set filter parameter "mode" in jail.local:
|
||||||
# normal (default), ddos, extra or aggressive (combines all).
|
# normal (default), ddos, extra or aggressive (combines all).
|
||||||
# See "tests/files/logs/sshd" or "filter.d/sshd.conf" for usage example and details.
|
# See "tests/files/logs/sshd" or "filter.d/sshd.conf" for usage example and details.
|
||||||
mode = normal
|
#mode = normal
|
||||||
filter = sshd[mode=%(mode)s]
|
|
||||||
port = ssh
|
port = ssh
|
||||||
logpath = %(sshd_log)s
|
logpath = %(sshd_log)s
|
||||||
backend = %(sshd_backend)s
|
backend = %(sshd_backend)s
|
||||||
|
@ -536,7 +538,6 @@ backend = %(syslog_backend)s
|
||||||
[postfix]
|
[postfix]
|
||||||
# To use another modes set filter parameter "mode" in jail.local:
|
# To use another modes set filter parameter "mode" in jail.local:
|
||||||
mode = more
|
mode = more
|
||||||
filter = postfix[mode=%(mode)s]
|
|
||||||
port = smtp,465,submission
|
port = smtp,465,submission
|
||||||
logpath = %(postfix_log)s
|
logpath = %(postfix_log)s
|
||||||
backend = %(postfix_backend)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:
|
# To use more aggressive modes set filter parameter "mode" in jail.local:
|
||||||
# normal (default), extra or aggressive
|
# normal (default), extra or aggressive
|
||||||
# See "tests/files/logs/sendmail-reject" or "filter.d/sendmail-reject.conf" for usage example and details.
|
# See "tests/files/logs/sendmail-reject" or "filter.d/sendmail-reject.conf" for usage example and details.
|
||||||
mode = normal
|
#mode = normal
|
||||||
filter = sendmail-reject[mode=%(mode)s]
|
|
||||||
port = smtp,465,submission
|
port = smtp,465,submission
|
||||||
logpath = %(syslog_mail)s
|
logpath = %(syslog_mail)s
|
||||||
backend = %(syslog_backend)s
|
backend = %(syslog_backend)s
|
||||||
|
@ -599,7 +599,8 @@ logpath = %(solidpop3d_log)s
|
||||||
|
|
||||||
|
|
||||||
[exim]
|
[exim]
|
||||||
|
# see filter.d/exim.conf for further modes supported from filter:
|
||||||
|
#mode = normal
|
||||||
port = smtp,465,submission
|
port = smtp,465,submission
|
||||||
logpath = %(exim_main_log)s
|
logpath = %(exim_main_log)s
|
||||||
|
|
||||||
|
@ -869,17 +870,14 @@ logpath = /var/log/haproxy.log
|
||||||
|
|
||||||
[slapd]
|
[slapd]
|
||||||
port = ldap,ldaps
|
port = ldap,ldaps
|
||||||
filter = slapd
|
|
||||||
logpath = /var/log/slapd.log
|
logpath = /var/log/slapd.log
|
||||||
|
|
||||||
[domino-smtp]
|
[domino-smtp]
|
||||||
port = smtp,ssmtp
|
port = smtp,ssmtp
|
||||||
filter = domino-smtp
|
|
||||||
logpath = /home/domino01/data/IBM_TECHNICAL_SUPPORT/console.log
|
logpath = /home/domino01/data/IBM_TECHNICAL_SUPPORT/console.log
|
||||||
|
|
||||||
[phpmyadmin-syslog]
|
[phpmyadmin-syslog]
|
||||||
port = http,https
|
port = http,https
|
||||||
filter = phpmyadmin-syslog
|
|
||||||
logpath = %(syslog_authpriv)s
|
logpath = %(syslog_authpriv)s
|
||||||
backend = %(syslog_backend)s
|
backend = %(syslog_backend)s
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue