|
Packit Service |
a2ae7a |
# Permit time synchronization with our time source, but do not
|
|
Packit Service |
a2ae7a |
# permit the source to query or modify the service on this system.
|
|
Packit Service |
a2ae7a |
restrict default kod nomodify notrap nopeer noquery
|
|
Packit Service |
a2ae7a |
restrict -6 default kod nomodify notrap nopeer noquery
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# Permit all access over the loopback interface. This could
|
|
Packit Service |
a2ae7a |
# be tightened as well, but to do so would effect some of
|
|
Packit Service |
a2ae7a |
# the administrative functions.
|
|
Packit Service |
a2ae7a |
restrict 127.0.0.1
|
|
Packit Service |
a2ae7a |
restrict -6 ::1
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# Hosts on local network are less restricted.
|
|
Packit Service |
a2ae7a |
restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# Use public servers from the pool.ntp.org project.
|
|
Packit Service |
a2ae7a |
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
|
|
Packit Service |
a2ae7a |
server 0.centos.pool.ntp.org
|
|
Packit Service |
a2ae7a |
server 1.centos.pool.ntp.org
|
|
Packit Service |
a2ae7a |
server 2.centos.pool.ntp.org
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
broadcast 192.168.1.255 key 42 # broadcast server
|
|
Packit Service |
a2ae7a |
broadcastclient # broadcast client
|
|
Packit Service |
a2ae7a |
broadcast 224.0.1.1 key 42 # multicast server
|
|
Packit Service |
a2ae7a |
multicastclient 224.0.1.1 # multicast client
|
|
Packit Service |
a2ae7a |
manycastserver 239.255.254.254 # manycast server
|
|
Packit Service |
a2ae7a |
manycastclient 239.255.254.254 key 42 # manycast client
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# Undisciplined Local Clock. This is a fake driver intended for backup
|
|
Packit Service |
a2ae7a |
# and when no outside source of synchronized time is available.
|
|
Packit Service |
a2ae7a |
server 127.127.1.0 # local clock
|
|
Packit Service |
a2ae7a |
fudge 127.127.1.0 stratum 10
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# Drift file. Put this in a directory which the daemon can write to.
|
|
Packit Service |
a2ae7a |
# No symbolic links allowed, either, since the daemon updates the file
|
|
Packit Service |
a2ae7a |
# by creating a temporary in the same directory and then rename()'ing
|
|
Packit Service |
a2ae7a |
# it to the file.
|
|
Packit Service |
a2ae7a |
driftfile /var/lib/ntp/drift
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# Key file containing the keys and key identifiers used when operating
|
|
Packit Service |
a2ae7a |
# with symmetric key cryptography.
|
|
Packit Service |
a2ae7a |
keys /etc/ntp/keys
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# Specify the key identifiers which are trusted.
|
|
Packit Service |
a2ae7a |
trustedkey 4 8 42
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# Specify the key identifier to use with the ntpdc utility.
|
|
Packit Service |
a2ae7a |
requestkey 8
|
|
Packit Service |
a2ae7a |
|
|
Packit Service |
a2ae7a |
# Specify the key identifier to use with the ntpq utility.
|
|
Packit Service |
a2ae7a |
controlkey 8
|