diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2013-12-01 23:51:28 +0100 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:51:03 +0200 |
commit | d363522c15b1d1ce61b2780a539dd09e2e679d34 (patch) | |
tree | 6dcabada360ac52e05ec02eb2ff595626e0dc62f /roles/common/templates/etc/fail2ban | |
parent | 0c99d9d1600c0fe2c494f9c59ba8ea7966dcd65f (diff) |
Configure the MX:es.
Diffstat (limited to 'roles/common/templates/etc/fail2ban')
-rw-r--r-- | roles/common/templates/etc/fail2ban/jail.local.j2 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/common/templates/etc/fail2ban/jail.local.j2 b/roles/common/templates/etc/fail2ban/jail.local.j2 index 0dcab8d..b92cb7a 100644 --- a/roles/common/templates/etc/fail2ban/jail.local.j2 +++ b/roles/common/templates/etc/fail2ban/jail.local.j2 @@ -16,6 +16,10 @@ action = %(action_)s # # JAILS # +# There is no risk to lock ourself out, since traffic between our machines goes +# through IPSec, and these packets are accepted before having a chance to enter +# fail2ban's chain. +# [ssh] @@ -47,3 +51,13 @@ banaction = iptables-allports port = anyport logpath = /var/log/auth.log maxretry = 6 + +{% if 'MX' in group_names %} +[postfix] + +enabled = true +port = smtp +filter = postfix +logpath = /var/log/mail.log +maxretry = 10 +{% endif %} |