Skip to content

Instantly share code, notes, and snippets.

@statico
Created February 17, 2011 01:08
Show Gist options
  • Save statico/830710 to your computer and use it in GitHub Desktop.
Save statico/830710 to your computer and use it in GitHub Desktop.
#
# /etc/ntp.conf - ntp configuration
#
# -----------------------------------------------------------------------------
# RESTRICTIONS
# -----------------------------------------------------------------------------
#
# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
#
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
# Permit all access over the loopback interface. This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
restrict 127.0.0.1
restrict -6 ::1
# -----------------------------------------------------------------------------
# SERVERS
# -----------------------------------------------------------------------------
#
# Stratum One Time Servers
#
# time-a.timefreq.bldrdoc.gov
# time-b.timefreq.bldrdoc.gov
# time-c.timefreq.bldrdoc.gov
server 132.163.4.101 iburst
server 132.163.4.102 iburst
server 132.163.4.103 iburst
# Stratum Two Time Servers
#
# time4.apple.com
# time5.apple.com
# time6.apple.com
# time7.apple.com
server 17.151.16.20 iburst
server 17.151.16.21 iburst
server 17.151.16.22 iburst
server 17.151.16.23 iburst
# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
server 127.127.1.0
fudge 127.127.1.0 stratum 10
# -----------------------------------------------------------------------------
# MISCELLANEOUS
# -----------------------------------------------------------------------------
#
# Drift file. Put this in a directory which the daemon can write to.
# No symbolic links allowed, either, since the daemon updates the file
# by creating a temporary in the same directory and then rename()'ing
# it to the file.
driftfile /var/lib/ntp/drift
logfile /var/log/ntp.log
# Key file containing the keys and key identifiers used when operating
# with symmetric key cryptography.
keys /etc/ntp/keys
# Specify the key identifiers which are trusted.
#trustedkey 4 8 42
# Specify the key identifier to use with the ntpdc utility.
#requestkey 8
# Specify the key identifier to use with the ntpq utility.
#controlkey 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment