|
| 1 | +# Welcome to the chrony configuration file. See chrony.conf(5) for more |
| 2 | +# information about usuable directives. |
| 3 | + |
| 4 | +# This will use (up to): |
| 5 | +# - 4 sources from ntp.ubuntu.com which some are ipv6 enabled |
| 6 | +# - 2 sources from 2.ubuntu.pool.ntp.org which is ipv6 enabled as well |
| 7 | +# - 1 source from [01].ubuntu.pool.ntp.org each (ipv4 only atm) |
| 8 | +# This means by default, up to 6 dual-stack and up to 2 additional IPv4-only |
| 9 | +# sources will be used. |
| 10 | +# At the same time it retains some protection against one of the entries being |
| 11 | +# down (compare to just using one of the lines). See (LP: #1754358) for the |
| 12 | +# discussion. |
| 13 | +# |
| 14 | +# About using servers from the NTP Pool Project in general see (LP: #104525). |
| 15 | +# Approved by Ubuntu Technical Board on 2011-02-08. |
| 16 | +# See http://www.pool.ntp.org/join.html for more information. |
| 17 | +pool ntp.ubuntu.com iburst maxsources 4 |
| 18 | +pool 0.ubuntu.pool.ntp.org iburst maxsources 1 |
| 19 | +pool 1.ubuntu.pool.ntp.org iburst maxsources 1 |
| 20 | +pool 2.ubuntu.pool.ntp.org iburst maxsources 2 |
| 21 | + |
| 22 | +server 192.168.186.2 presend 0 minpoll 0 maxpoll 0 iburst prefer trust |
| 23 | +# Enable serving time to ntp clients on 192.168.186.0 subnet. |
| 24 | +allow 192.168.186.0/24 |
| 25 | +# Allow local sync |
| 26 | +local stratum 10 |
| 27 | + |
| 28 | +# This directive specify the location of the file containing ID/key pairs for |
| 29 | +# NTP authentication. |
| 30 | +keyfile /etc/chrony/chrony.keys |
| 31 | + |
| 32 | +# This directive specify the file into which chronyd will store the rate |
| 33 | +# information. |
| 34 | +driftfile /var/lib/chrony/chrony.drift |
| 35 | + |
| 36 | +# Uncomment the following line to turn logging on. |
| 37 | +#log tracking measurements statistics |
| 38 | + |
| 39 | +# Log files location. |
| 40 | +logdir /var/log/chrony |
| 41 | + |
| 42 | +# Stop bad estimates upsetting machine clock. |
| 43 | +maxupdateskew 100.0 |
| 44 | + |
| 45 | +# This directive enables kernel synchronisation (every 11 minutes) of the |
| 46 | +# real-time clock. Note that it can’t be used along with the 'rtcfile' directive. |
| 47 | +rtcsync |
| 48 | + |
| 49 | +# Step the system clock instead of slewing it if the adjustment is larger than |
| 50 | +# one second, but only in the first three clock updates. |
| 51 | +makestep 1 3 |
0 commit comments