summaryrefslogtreecommitdiffstats
path: root/roles/common/templates/etc
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2017-06-15 11:20:52 +0200
committerGuilhem Moulin <guilhem@fripost.org>2017-06-15 11:20:55 +0200
commit7d3a9a5340d5faae1347bf010c193c36e1771fa1 (patch)
tree90ecc76a2752ef514eeb0f093deca29331461108 /roles/common/templates/etc
parent402799906a53aeb3c6feff9b3e98d750acd559e0 (diff)
Webmail: don't allow outgoing TCP/993 connections.
We're going through IPsec to communicate with the IMAP server.
Diffstat (limited to 'roles/common/templates/etc')
-rw-r--r--roles/common/templates/etc/iptables/services.j24
1 files changed, 0 insertions, 4 deletions
diff --git a/roles/common/templates/etc/iptables/services.j2 b/roles/common/templates/etc/iptables/services.j2
index 2def27f..d199c9e 100644
--- a/roles/common/templates/etc/iptables/services.j2
+++ b/roles/common/templates/etc/iptables/services.j2
@@ -23,28 +23,24 @@ in tcp {{ ansible_port|default('22') }} # SSH
in tcp 636 # LDAPS
{% elif 'MX' in group_names or 'lists' in group_names %}
out tcp 636 # LDAPS
{% endif %}
{% if 'MX' in group_names %}
in tcp 25 # SMTP
{% endif %}
{% if 'out' in group_names %}
out tcp 25 # SMTP
{% endif %}
{% if 'IMAP' in group_names %}
in tcp 993 # IMAPS
in tcp 4190 # MANAGESIEVE
{% endif %}
{% if 'MSA' in group_names %}
in tcp 587 # SMTP-AUTH
{% endif %}
{% if 'webmail' in group_names or 'lists' in group_names or 'wiki' in group_names %}
in tcp 80,443 # HTTP/HTTPS
{% endif %}
-{% if 'webmail' in group_names and 'IMAP' not in group_names %}
-out tcp 993 # IMAP
-out tcp 4190 # MANAGESIEVE
-{% endif %}
{% if 'LDAP-provider' in group_names %}
out tcp 11371 # HKP
out tcp 43 # WHOIS
{% endif %}