Skip to content

Instantly share code, notes, and snippets.

@sneak
Created January 11, 2020 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sneak/fd502e895a767692e31024b24c804a7e to your computer and use it in GitHub Desktop.
Save sneak/fd502e895a767692e31024b24c804a7e to your computer and use it in GitHub Desktop.
ntpd stratum 1 timeserver config
driftfile /var/lib/ntp/ntp.drift
leapfile /usr/share/zoneinfo/leap-seconds.list
# 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
########################################
### PPS Clock
########################################
server 127.127.22.0 minpoll 3 maxpoll 3
fudge 127.127.22.0 refid PPS stratum 0 time1 0.002
########################################
### NMEA Clock
########################################
server 127.127.28.0 minpoll 3 maxpoll 3 prefer
fudge 127.127.28.0 time1 .066 flag1 0 refid GPS stratum 0
pool 0.us.pool.ntp.org iburst
pool 1.us.pool.ntp.org iburst
pool 2.us.pool.ntp.org iburst
pool 3.us.pool.ntp.org iburst
restrict -4 default kod notrap nomodify nopeer noquery limited
restrict -6 default kod notrap nomodify nopeer noquery limited
# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1
restrict 10.0.0.0 mask 255.0.0.0
restrict source notrap nomodify noquery
broadcast 10.100.202.255
#tos minsane 3
#tos orphan 10
#tos mindist 0.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment