]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - etc/ntp.conf
- Reset stable/10 back to -PRERELEASE status now that releng/10.4
[FreeBSD/stable/10.git] / etc / ntp.conf
1 #
2 # $FreeBSD$
3 #
4 # Default NTP servers for the FreeBSD operating system.
5 #
6 # Don't forget to enable ntpd in /etc/rc.conf with:
7 # ntpd_enable="YES"
8 #
9 # The driftfile is by default /var/db/ntpd.drift, check
10 # /etc/defaults/rc.conf on how to change the location.
11 #
12
13 #
14 # Set the target and limit for adding servers configured via pool statements
15 # or discovered dynamically via mechanisms such as broadcast and manycast.
16 # Ntpd automatically adds maxclock-1 servers from configured pools, and may
17 # add as many as maxclock*2 if necessary to ensure that at least minclock 
18 # servers are providing good consistant time.
19 #
20 tos minclock 3 maxclock 6
21
22 #
23 # The following pool statement will give you a random set of NTP servers
24 # geographically close to you.  A single pool statement adds multiple
25 # servers from the pool, according to the tos minclock/maxclock targets.
26 # See http://www.pool.ntp.org/ for details.  Note, pool.ntp.org encourages
27 # users with a static IP and good upstream NTP servers to add a server
28 # to the pool. See http://www.pool.ntp.org/join.html if you are interested.
29 #
30 # The option `iburst' is used for faster initial synchronization.
31 #
32 pool 0.freebsd.pool.ntp.org iburst
33
34 #
35 # If you want to pick yourself which country's public NTP server
36 # you want to sync against, comment out the above pool, uncomment
37 # the next one, and replace CC with the country's abbreviation.
38 # Make sure that the hostname resolves to a proper IP address!
39 #
40 # pool 0.CC.pool.ntp.org iburst
41
42 #
43 # To configure a specific server, such as an organization-wide local
44 # server, add lines similar to the following.  One or more specific
45 # servers can be configured in addition to, or instead of, any server
46 # pools specified above.  When both are configured, ntpd first adds all
47 # the specific servers, then adds servers from the pool until the tos
48 # minclock/maxclock targets are met.
49 #
50 #server time.my-internal.org iburst
51
52 #
53 # Security:
54 #
55 # By default, only allow time queries and block all other requests
56 # from unauthenticated clients.
57 #
58 # The "restrict source" line allows peers to be mobilized when added by
59 # ntpd from a pool, but does not enable mobilizing a new peer association
60 # by other dynamic means (broadcast, manycast, ntpq commands, etc).
61 #
62 # See http://support.ntp.org/bin/view/Support/AccessRestrictions
63 # for more information.
64 #
65 restrict    default limited kod nomodify notrap noquery nopeer
66 restrict -6 default limited kod nomodify notrap noquery nopeer
67 restrict    source  limited kod nomodify notrap noquery
68
69 #
70 # Alternatively, the following rules would block all unauthorized access.
71 #
72 #restrict default ignore
73 #restrict -6 default ignore
74 #
75 # In this case, all remote NTP time servers also need to be explicitly
76 # allowed or they would not be able to exchange time information with
77 # this server.
78 #
79 # Please note that this example doesn't work for the servers in
80 # the pool.ntp.org domain since they return multiple A records.
81 #
82 #restrict 0.pool.ntp.org nomodify nopeer noquery notrap
83 #restrict 1.pool.ntp.org nomodify nopeer noquery notrap
84 #restrict 2.pool.ntp.org nomodify nopeer noquery notrap
85 #
86 # The following settings allow unrestricted access from the localhost
87 restrict 127.0.0.1
88 restrict -6 ::1
89
90 #
91 # If a server loses sync with all upstream servers, NTP clients
92 # no longer follow that server. The local clock can be configured
93 # to provide a time source when this happens, but it should usually
94 # be configured on just one server on a network. For more details see
95 # http://support.ntp.org/bin/view/Support/UndisciplinedLocalClock
96 # The use of Orphan Mode may be preferable.
97 #
98 #server 127.127.1.0
99 #fudge 127.127.1.0 stratum 10
100
101 # See http://support.ntp.org/bin/view/Support/ConfiguringNTP#Section_6.14.
102 # for documentation regarding leapfile. Updates to the file can be obtained
103 # from ftp://time.nist.gov/pub/ or ftp://tycho.usno.navy.mil/pub/ntp/.
104 # Use either leapfile in /etc/ntp or weekly updated leapfile in /var/db.
105 #leapfile "/etc/ntp/leap-seconds"
106 leapfile "/var/db/ntpd.leap-seconds.list"