ansible-role-docker_mailserver/templates/jail.local

33 lines
922 B
Plaintext

# {{ ansible_managed }}
[DEFAULT]
# "bantime" is the number of seconds that a host is banned.
bantime = {{ docker_mailserver_fail2ban_bantime }}
# A host is banned if it has generated "maxretry" during the last "findtime"
# seconds.
findtime = {{ docker_mailserver_fail2ban_findtime }}
# "maxretry" is the number of failures before a host get banned.
maxretry = {{ docker_mailserver_fail2ban_maxretry }}
# "ignoreip" can be a list of IP addresses, CIDR masks or DNS hosts. Fail2ban
# will not ban a host which matches an address in this list. Several addresses
# can be defined using space (and/or comma) separator.
ignoreip = 127.0.0.1/8 {{ docker_mailserver_fail2ban_ignoreip }}
# Default ban action
# iptables-multiport: block IP only on affected port
# iptables-allports: block IP on all ports
banaction = iptables-allports
[dovecot]
enabled = true
[postfix]
enabled = true
[postfix-sasl]
enabled = true