summaryrefslogtreecommitdiffstats
path: root/roles/common/templates/etc/iptables/services.j2
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2013-12-02 23:39:26 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:51:10 +0200
commit1a50ad8f85ae7b42d7749b43d8f01adb663114ff (patch)
tree39ef587ae5efaafbe6895a6aee2602a6a81c6e0b /roles/common/templates/etc/iptables/services.j2
parent9ff98e18e5dd6967bce1457cff1884ec632cf2b5 (diff)
Configure the Mail Submission Agent.
Diffstat (limited to 'roles/common/templates/etc/iptables/services.j2')
-rw-r--r--roles/common/templates/etc/iptables/services.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/common/templates/etc/iptables/services.j2 b/roles/common/templates/etc/iptables/services.j2
index cd7a8bd..5243ae1 100644
--- a/roles/common/templates/etc/iptables/services.j2
+++ b/roles/common/templates/etc/iptables/services.j2
@@ -1,20 +1,23 @@
# {{ ansible_managed }}
# Do NOT edit this file directly!
#
# direction protocol destination port source port
# (in|out|inout)[46]? (tcp|udp|..) (port|port:port|port,port) (port|port:port|port,port)
inout udp 500 500 # ISAKMP
#inout udp 4500 4500 # IPSec NAT Traversal
out tcp 80,443 # HTTP/HTTPS
out udp 53 # DNS
out udp 67 # DHCP
in tcp {{ ansible_ssh_port|default('22') }} # SSH
{% if 'MX' in group_names %}
in tcp 25 # SMTP
{% endif %}
{% if 'IMAP' in group_names %}
in tcp 993 # IMAPS
{% endif %}
+{% if 'MSA' in group_names %}
+in tcp 587 # SMTP-AUTH
+{% endif %}