33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
|
|
|
|
driftfile /var/lib/ntp/ntp.drift
|
|
|
|
# Enable this if you want statistics to be logged.
|
|
#statsdir /var/log/ntpstats/
|
|
|
|
statistics loopstats peerstats clockstats
|
|
filegen loopstats file loopstats type day enable
|
|
filegen peerstats file peerstats type day enable
|
|
filegen clockstats file clockstats type day enable
|
|
|
|
# By default, exchange time with everybody, but don't allow configuration.
|
|
restrict -4 default kod notrap nomodify nopeer noquery
|
|
restrict -6 default kod notrap nomodify nopeer noquery
|
|
|
|
# Local users may interrogate the ntp server more closely.
|
|
restrict 127.0.0.1
|
|
restrict ::1
|
|
|
|
# Remote NTP server(s) to synchronize with.
|
|
{{#ntp.servers}}
|
|
{{#server}}
|
|
server {{server}}
|
|
{{/server}}
|
|
{{/ntp.servers}}
|
|
|
|
# Specify the internal hardware clock as a reference clock.
|
|
# Set a high stratum so this is only used if all external clocks fail.
|
|
# This will mitigate skew until external clocks return to service.
|
|
server 127.127.1.0 # local clock address
|
|
fudge 127.127.1.0 stratum 10
|