summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2014-12-18 15:07:01 +0100
committerGuilhem Moulin <guilhem@fripost.org>2015-06-07 02:53:24 +0200
commit36d522c725f6815f8683fcd6cd5c33d19b30252a (patch)
tree5c6b016eb5d2e017f37b5e78018eb712fe9c37b0 /roles
parent0391581df2d716e95a0a2f6d37170e3ece13a416 (diff)
Enable the use of git:// clients.
Diffstat (limited to 'roles')
-rw-r--r--roles/common/templates/etc/iptables/services.j21
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/common/templates/etc/iptables/services.j2 b/roles/common/templates/etc/iptables/services.j2
index c1a8aa4..7709066 100644
--- a/roles/common/templates/etc/iptables/services.j2
+++ b/roles/common/templates/etc/iptables/services.j2
@@ -1,27 +1,28 @@
# {{ 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)
out tcp 80,443 # HTTP/HTTPS
+out tcp 9418 # GIT
out udp 53 # DNS
out udp 67 # DHCP
{% if 'NTP-master' in group_names %}
in udp 123 # NTP
out udp 123 # NTP
{% else %}
out udp 123 123 # NTP
{% endif %}
in tcp {{ ansible_ssh_port|default('22') }} # SSH
{% if 'LDAP-provider' in group_names %}
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
{% if 'MDA' not in group_names %}
out tcp {{ postfix_instance.IMAP.port }}
{% endif %}