diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2016-05-22 16:40:50 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2016-05-22 17:53:58 +0200 |
commit | b331c2f99c1217c6f4208159c64ca6a5b0053bc7 (patch) | |
tree | 19d0cb75c9dbee89064d510b3bb617bf0356b30a /roles/common/templates/etc/ntp.conf.j2 | |
parent | 3fafa03aeb3640a86d9cd8c639d085df6a8d085d (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/ntp.conf.j2')
-rw-r--r-- | roles/common/templates/etc/ntp.conf.j2 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/common/templates/etc/ntp.conf.j2 b/roles/common/templates/etc/ntp.conf.j2 index d46ba18..5957276 100644 --- a/roles/common/templates/etc/ntp.conf.j2 +++ b/roles/common/templates/etc/ntp.conf.j2 @@ -24,9 +24,9 @@ server ntp2.sth.netnod.se iburst {% else %} # Sychronize to our (stratum 2) NTP server, to ensure our network has a # consistent time. -# TODO: use to pubkey authentication to unsure an attacker doesn't -# impersonate our NTP server and gives us incorrect time. -server ntp.fripost.org iburst +{% for host in groups['NTP-master'] | sort %} +server {{ ipsec[ hostvars[host].inventory_hostname_short ] }} prefer iburst +{% endfor %} server 0.se.pool.ntp.org iburst server 1.se.pool.ntp.org iburst {% endif %} |