ntpd: listen only on localhost by default
This commit is contained in:
parent
1524146f10
commit
4e4cbdb3c9
|
@ -1,4 +1,5 @@
|
||||||
---
|
---
|
||||||
|
ntpd_only_local: true
|
||||||
ntpd_servers:
|
ntpd_servers:
|
||||||
- 'pool.ntp.org'
|
- 'pool.ntp.org'
|
||||||
ntpd_acls:
|
ntpd_acls:
|
||||||
|
|
|
@ -2,6 +2,11 @@
|
||||||
|
|
||||||
driftfile /var/lib/ntp/ntp.drift
|
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.
|
# Enable this if you want statistics to be logged.
|
||||||
#statsdir /var/log/ntpstats/
|
#statsdir /var/log/ntpstats/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue