summaryrefslogtreecommitdiffstats
path: root/roles/common/templates/etc/iptables/services.j2
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2016-05-22 16:40:50 +0200
committerGuilhem Moulin <guilhem@fripost.org>2016-05-22 17:53:58 +0200
commitb331c2f99c1217c6f4208159c64ca6a5b0053bc7 (patch)
tree19d0cb75c9dbee89064d510b3bb617bf0356b30a /roles/common/templates/etc/iptables/services.j2
parent3fafa03aeb3640a86d9cd8c639d085df6a8d085d (diff)
Tunnel internal NTP traffic through IPSec.
More precisely, between our NTP-master (stratum 1) host and the other machines (all stratum 2). Providing authentification and integrity for internal NTP traffic ensures a consistent time within our internal infrastructure.
Diffstat (limited to 'roles/common/templates/etc/iptables/services.j2')
-rw-r--r--roles/common/templates/etc/iptables/services.j25
1 files changed, 0 insertions, 5 deletions
diff --git a/roles/common/templates/etc/iptables/services.j2 b/roles/common/templates/etc/iptables/services.j2
index 6bd2533..8450f00 100644
--- a/roles/common/templates/etc/iptables/services.j2
+++ b/roles/common/templates/etc/iptables/services.j2
@@ -16,12 +16,7 @@ out tcp 9418 # GIT
out udp 53 # DNS
out udp 67 # DHCP
out tcp 22 # SSH
-{% if 'NTP-master' in group_names %}
-in udp 123 # NTP
-out udp 123 # NTP
-{% else %}
out udp 123 123 # NTP
-{% endif %}
in tcp {{ ansible_port|default('22') }} # SSH
{% if 'LDAP-provider' in group_names %}