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# The following three servers will give you a random set of three
15# NTP servers geographically close to you.
16# See http://www.pool.ntp.org/ for details. Note, the pool encourages
17# users with a static IP and good upstream NTP servers to add a server
18# to the pool. See http://www.pool.ntp.org/join.html if you are interested.
19#
20# The option `iburst' is used for faster initial synchronization.
21#
22server 0.freebsd.pool.ntp.org iburst
23server 1.freebsd.pool.ntp.org iburst
24server 2.freebsd.pool.ntp.org iburst
25#server 3.freebsd.pool.ntp.org iburst
26
27#
28# If you want to pick yourself which country's public NTP server
29# you want sync against, comment out the above servers, uncomment
30# the next ones and replace CC with the country's abbreviation.
31# Make sure that the hostnames resolve to a proper IP address!
32#
33# server 0.CC.pool.ntp.org iburst
34# server 1.CC.pool.ntp.org iburst
35# server 2.CC.pool.ntp.org iburst
36
37#
38# Security:
39#
40# By default, only allow time queries and block all other requests
41# from unauthenticated clients.
42#
43# See http://support.ntp.org/bin/view/Support/AccessRestrictions
44# for more information.
45#
46restrict default kod nomodify notrap nopeer noquery
47restrict -6 default kod nomodify notrap nopeer noquery
48#
49# Alternatively, the following rules would block all unauthorized access.
50#
51#restrict default ignore
52#restrict -6 default ignore
53#
54# In this case, all remote NTP time servers also need to be explicitly
55# allowed or they would not be able to exchange time information with
56# this server.
57#
58# Please note that this example doesn't work for the servers in
59# the pool.ntp.org domain since they return multiple A records.
60#
61#restrict 0.pool.ntp.org nomodify nopeer noquery notrap
62#restrict 1.pool.ntp.org nomodify nopeer noquery notrap
63#restrict 2.pool.ntp.org nomodify nopeer noquery notrap
64#
65# The following settings allow unrestricted access from the localhost
66restrict 127.0.0.1
67restrict -6 ::1
68restrict 127.127.1.0
69
70#
71# If a server loses sync with all upstream servers, NTP clients
72# no longer follow that server. The local clock can be configured
73# to provide a time source when this happens, but it should usually
74# be configured on just one server on a network. For more details see
75# http://support.ntp.org/bin/view/Support/UndisciplinedLocalClock
76# The use of Orphan Mode may be preferable.
77#
78#server 127.127.1.0
79#fudge 127.127.1.0 stratum 10
80