summaryrefslogtreecommitdiff
path: root/ansible_tools/roles/set-fail2ban/templates/jail.conf.ubuntu.j2
blob: 5a4abad5a4ea25dc81ae80545e8fb6907d7586ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Fail2Ban configuration file
#

[DEFAULT]
ignoreip = {{ ignoreip }}
bantime  = 86400
findtime = 1200
maxretry = 5

backend = auto

[zimbra-account]
enabled = true
filter = zimbra
action = iptables-allports[name=zimbra-account]
         sendmail[name=zimbra-account, dest={{ destmail }}]
logpath = /opt/zimbra/log/mailbox.log
bantime = {{ bantime_account }}
findtime = {{ findtime_account }}
maxretry = {{ maxretry_account }}

[zimbra-postfix]
enabled = true
filter = zimbra-postfix
action = iptables-allports[name=zimbra-postfix]
         sendmail[name=zimbra-postfix, dest={{ destmail }}]
logpath = /var/log/zimbra.log
bantime = {{ bantime_postfix }}
findtime = {{ findtime_postfix }}
maxretry = {{ maxretry_postfix }}