Files
zira-etc/fail2ban/jail.d/default.conf
2021-05-24 22:18:33 +03:00

60 lines
1.5 KiB
Plaintext

# Custom fail2ban base jail specification file.
#
# YOU SHOULD NOT MODIFY THIS FILE.
# It will probably be overwitten or improved in a distribution update.
#
# All jail names should be under 20 symbols to avoid warnings
# action = mail[name="name=%(__name__)s", "%(destemail)s", "logpath=%(logpath)s"]
[dovecot]
enabled = false
action = iptables-multiport[name="dovecot", port="imap,imap3,imaps,pop3,pop3s"]
filter = dovecot
logpath = /var/log/maillog
maxretry = 3
[postfix-auth]
enabled = false
action = iptables-multiport[name="postfix-auth", port="smtp,smtps,submission"]
filter = postfix-auth
logpath = /var/log/maillog
maxretry = 3
[postfix-rbl]
enabled = false
action = iptables-multiport[name="postfix-rbl", port="smtp,smtps,submission"]
filter = postfix-rbl
logpath = /var/log/maillog
maxretry = 3
[postfix-sasl]
enabled = false
action = iptables-multiport[name="postfix-sasl", port="smtp,smtps,submission"]
filter = postfix-sasl
logpath = /var/log/maillog
maxretry = 3
[postfix-smtp-reject]
enabled = false
action = iptables-multiport[name="postfix-smtp-reject", port="smtp,smtps,submission"]
filter = postfix-smtp-reject
logpath = /var/log/maillog
maxretry = 2
[postfix-ssl-error]
enabled = false
action = iptables-multiport[name="postfix-ssl-error", port="smtp,smtps,submission"]
filter = postfix-ssl-error
logpath = /var/log/maillog
maxretry = 3
[nginx-forbidden]
enabled = false
filter = nginx-forbidden
port = http,https
logpath = /var/log/nginx/*.error*.log
findtime = 60
bantime = 86400
maxretry = 3