Skip to content

Instantly share code, notes, and snippets.

@rashkur
Created October 20, 2014 21:12
Show Gist options
  • Save rashkur/132255b2abba7f1c35c4 to your computer and use it in GitHub Desktop.
Save rashkur/132255b2abba7f1c35c4 to your computer and use it in GitHub Desktop.
driftfile /var/lib/ntp/ntp.drift
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
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 14
# Specify one or more NTP servers. Order could be like this:
# The ones from your network, the ones from your ISP, random stuff off the internet.
server ntp1.m-online.net iburst burst minpoll 4 maxpoll 8 prefer
server ntp2.m-online.net iburst burst minpoll 4 maxpoll 8
server de.pool.ntp.org iburst dynamic
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment