| 4 |
- |
1 |
# For more information about this file, see the man pages
|
|
|
2 |
# ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5).
|
|
|
3 |
|
|
|
4 |
driftfile /var/lib/ntp/drift
|
|
|
5 |
|
|
|
6 |
# Permit time synchronization with our time source, but do not
|
|
|
7 |
# permit the source to query or modify the service on this system.
|
|
|
8 |
restrict default kod nomodify notrap nopeer noquery
|
|
|
9 |
restrict -6 default kod nomodify notrap nopeer noquery
|
|
|
10 |
|
|
|
11 |
# Permit all access over the loopback interface. This could
|
|
|
12 |
# be tightened as well, but to do so would effect some of
|
|
|
13 |
# the administrative functions.
|
|
|
14 |
restrict 127.0.0.1
|
|
|
15 |
restrict -6 ::1
|
|
|
16 |
|
|
|
17 |
# Hosts on local network are less restricted.
|
|
|
18 |
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
|
|
|
19 |
|
|
|
20 |
# Use public servers from the pool.ntp.org project.
|
|
|
21 |
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
|
|
|
22 |
server 0.centos.pool.ntp.org iburst
|
|
|
23 |
server 1.centos.pool.ntp.org iburst
|
|
|
24 |
server 2.centos.pool.ntp.org iburst
|
|
|
25 |
server 3.centos.pool.ntp.org iburst
|
|
|
26 |
|
|
|
27 |
#broadcast 192.168.1.255 autokey # broadcast server
|
|
|
28 |
#broadcastclient # broadcast client
|
|
|
29 |
#broadcast 224.0.1.1 autokey # multicast server
|
|
|
30 |
#multicastclient 224.0.1.1 # multicast client
|
|
|
31 |
#manycastserver 239.255.254.254 # manycast server
|
|
|
32 |
#manycastclient 239.255.254.254 autokey # manycast client
|
|
|
33 |
|
|
|
34 |
# Enable public key cryptography.
|
|
|
35 |
#crypto
|
|
|
36 |
|
|
|
37 |
includefile /etc/ntp/crypto/pw
|
|
|
38 |
|
|
|
39 |
# Key file containing the keys and key identifiers used when operating
|
|
|
40 |
# with symmetric key cryptography.
|
|
|
41 |
keys /etc/ntp/keys
|
|
|
42 |
|
|
|
43 |
# Specify the key identifiers which are trusted.
|
|
|
44 |
#trustedkey 4 8 42
|
|
|
45 |
|
|
|
46 |
# Specify the key identifier to use with the ntpdc utility.
|
|
|
47 |
#requestkey 8
|
|
|
48 |
|
|
|
49 |
# Specify the key identifier to use with the ntpq utility.
|
|
|
50 |
#controlkey 8
|
|
|
51 |
|
|
|
52 |
# Enable writing of statistics records.
|
|
|
53 |
#statistics clockstats cryptostats loopstats peerstats
|