ntpd: listen only on localhost by default

This commit is contained in:
Victor LABORIE 2017-08-30 14:25:46 +02:00
parent 1524146f10
commit 4e4cbdb3c9
2 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,5 @@
---
ntpd_only_local: true
ntpd_servers:
- 'pool.ntp.org'
ntpd_acls:

View File

@ -2,6 +2,11 @@
driftfile /var/lib/ntp/ntp.drift
{% if ntpd_only_local is defined and ntpd_only_local %}
# Only listen on 127.0.0.1 and ::1
interface ignore wildcard
{% endif %}
# Enable this if you want statistics to be logged.
#statsdir /var/log/ntpstats/