blob: 2d0fdd8f335e33b7cdfab51a9db0023f2ed926fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
diff -Naur old/ntp.conf new/ntp.conf
--- old/ntp.conf 2017-02-01 12:51:59.766760466 -0600
+++ new/ntp.conf 2017-02-01 14:46:23.005239689 -0600
@@ -1,16 +1,58 @@
-# This is the most basic ntp configuration file
# The driftfile must remain in a place specific to this
# machine - it records the machine specific clock error
-driftfile /etc/ntp.drift
+# Driftfile must be in a directory owned by ntp
+driftfile /var/lib/ntp/ntp.drift
+
+# The following code is for evaluating the timeserver.
+# Remove the # to activate the statistics
+# statistics loopstats
+# statistics peerstats
+# statsdir /var/log/ntpstats
+# filegen peerstats file peerstats type day link enable
+# filegen loopstats file loopstats type day link enable
+
+# This is the US timeserver pool. You should use a pool
+# close to your location.
+#pool us.pool.ntp.org iburst
+
# This should be a server that is close (in IP terms)
# to the machine. Add other servers as required.
-# Unless you un-comment the line below ntpd will sync
-# only against the local system clock.
#
# server time.server.example.com
#
+
+restrict default kod nomodify notrap nopeer noquery
+restrict -6 default kod nomodify notrap nopeer noquery
+restrict 127.0.0.1 mask 255.255.255.0
+restrict -6 ::1
+
+# GPS Serial data reference (NTP0)
+# This sets the GPS 50 milliseconds slower than the PPS.
+# "true" says we don't trust the system clock.
+# If we are depending on the GPS for timing,
+# we don't want ntp to mark the GPS as a falseticker
+# because of a performance issue.
+# If the GPS is marked as a false ticker
+# due to a bad timestamp from the system
+# clock (possibly because the system was
+# too busy to process an interrupt),
+# the GPS will be ignored, and if we are
+# depending on the GPS for leap second, it
+# will not happen.
+server 127.127.28.0 true
+fudge 127.127.28.0 time1 0.050 refid GPS
+
+# GPS PPS reference (NTP2)
+# If we are depending on the PPS for timing,
+# we don't want ntp to mark the PPS as a falseticker
+# because of a performance issue.
+server 127.127.28.2 prefer true
+fudge 127.127.28.2 time1 0.000 refid PPS
+
# Using local hardware clock as fallback
# Disable this when using ntpd -q -g -x as ntpdate or it will sync to itself
+# The stratum should be a high value so this does not get chosen
+# except in dire circumstances.
server 127.127.1.0
fudge 127.127.1.0 stratum 14
# Defining a default security setting
|