2016-04-13 21:52:13 +00:00
|
|
|
# Fail2Ban configuration file for Mail-in-a-Box. Do not edit.
|
|
|
|
# This file is re-generated on updates.
|
2015-07-02 09:19:37 +00:00
|
|
|
|
2015-12-07 13:45:59 +00:00
|
|
|
[DEFAULT]
|
|
|
|
# Whitelist our own IP addresses. 127.0.0.1/8 is the default. But our status checks
|
|
|
|
# ping services over the public interface so we should whitelist that address of
|
|
|
|
# ours too. The string is substituted during installation.
|
2022-06-05 13:40:54 +00:00
|
|
|
ignoreip = 127.0.0.1/8 PUBLIC_IP ::1 PUBLIC_IPV6
|
2015-12-07 13:45:59 +00:00
|
|
|
|
2016-04-13 21:52:13 +00:00
|
|
|
[dovecot]
|
|
|
|
enabled = true
|
|
|
|
filter = dovecotimap
|
|
|
|
logpath = /var/log/mail.log
|
|
|
|
findtime = 30
|
|
|
|
maxretry = 20
|
2015-03-08 00:13:55 +00:00
|
|
|
|
2016-04-13 21:52:13 +00:00
|
|
|
[miab-management]
|
|
|
|
enabled = true
|
|
|
|
filter = miab-management-daemon
|
|
|
|
port = http,https
|
|
|
|
logpath = /var/log/syslog
|
|
|
|
maxretry = 20
|
|
|
|
findtime = 30
|
2015-07-02 15:55:43 +00:00
|
|
|
|
2016-04-13 21:52:13 +00:00
|
|
|
[miab-munin]
|
2015-03-08 00:13:55 +00:00
|
|
|
enabled = true
|
2016-04-13 21:52:13 +00:00
|
|
|
port = http,https
|
|
|
|
filter = miab-munin
|
|
|
|
logpath = /var/log/nginx/access.log
|
|
|
|
maxretry = 20
|
|
|
|
findtime = 30
|
2015-03-08 00:13:55 +00:00
|
|
|
|
2016-04-13 21:52:13 +00:00
|
|
|
[miab-owncloud]
|
2015-03-08 00:13:55 +00:00
|
|
|
enabled = true
|
2016-04-13 21:52:13 +00:00
|
|
|
port = http,https
|
|
|
|
filter = miab-owncloud
|
2017-03-25 12:20:21 +00:00
|
|
|
logpath = STORAGE_ROOT/owncloud/nextcloud.log
|
2016-04-13 21:52:13 +00:00
|
|
|
maxretry = 20
|
2016-06-26 12:17:12 +00:00
|
|
|
findtime = 120
|
2015-03-08 00:13:55 +00:00
|
|
|
|
2021-05-09 14:11:40 +00:00
|
|
|
[miab-postfix465]
|
|
|
|
enabled = true
|
|
|
|
port = 465
|
|
|
|
filter = miab-postfix-submission
|
|
|
|
logpath = /var/log/mail.log
|
|
|
|
maxretry = 20
|
|
|
|
findtime = 30
|
|
|
|
|
2016-04-13 21:52:13 +00:00
|
|
|
[miab-postfix587]
|
|
|
|
enabled = true
|
|
|
|
port = 587
|
|
|
|
filter = miab-postfix-submission
|
|
|
|
logpath = /var/log/mail.log
|
|
|
|
maxretry = 20
|
2015-07-06 12:44:53 +00:00
|
|
|
findtime = 30
|
2016-04-13 21:52:13 +00:00
|
|
|
|
|
|
|
[miab-roundcube]
|
|
|
|
enabled = true
|
|
|
|
port = http,https
|
|
|
|
filter = miab-roundcube
|
2020-05-11 12:59:42 +00:00
|
|
|
logpath = /var/log/roundcubemail/errors.log
|
2015-07-06 12:44:53 +00:00
|
|
|
maxretry = 20
|
2016-04-13 21:52:13 +00:00
|
|
|
findtime = 30
|
2015-07-07 11:37:42 +00:00
|
|
|
|
|
|
|
[recidive]
|
|
|
|
enabled = true
|
|
|
|
maxretry = 10
|
2016-03-26 08:04:51 +00:00
|
|
|
action = iptables-allports[name=recidive]
|
2016-03-26 12:37:33 +00:00
|
|
|
# In the recidive section of jail.conf the action contains:
|
|
|
|
#
|
|
|
|
# action = iptables-allports[name=recidive]
|
|
|
|
# sendmail-whois-lines[name=recidive, logpath=/var/log/fail2ban.log]
|
|
|
|
#
|
|
|
|
# The last line on the action will sent an email to the configured address. This mail will
|
|
|
|
# notify the administrator that someone has been repeatedly triggering one of the other jails.
|
|
|
|
# By default we don't configure this address and no action is required from the admin anyway.
|
2024-07-21 11:01:25 +00:00
|
|
|
# So the notification is omitted. This will prevent message appearing in the mail.log that mail
|
2016-03-26 12:37:33 +00:00
|
|
|
# can't be delivered to fail2ban@$HOSTNAME.
|
2016-04-13 21:52:13 +00:00
|
|
|
|
2019-01-18 14:36:43 +00:00
|
|
|
[postfix-sasl]
|
2016-04-13 21:52:13 +00:00
|
|
|
enabled = true
|
|
|
|
|
2019-01-18 14:36:43 +00:00
|
|
|
[sshd]
|
2017-02-21 14:32:28 +00:00
|
|
|
enabled = true
|
2016-04-13 21:52:13 +00:00
|
|
|
maxretry = 7
|
|
|
|
bantime = 3600
|