2009-06-07 13:26:57 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Default NTP servers for the FreeBSD operating system.
|
|
|
|
#
|
|
|
|
# Don't forget to enable ntpd in /etc/rc.conf with:
|
|
|
|
# ntpd_enable="YES"
|
|
|
|
#
|
|
|
|
# The driftfile is by default /var/db/ntpd.drift, check
|
|
|
|
# /etc/defaults/rc.conf on how to change the location.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# The following three servers will give you a random set of three
|
|
|
|
# NTP servers geographically close to you.
|
2009-07-13 05:51:33 +00:00
|
|
|
# See http://www.pool.ntp.org/ for details. Note, the pool encourages
|
|
|
|
# users with a static IP and good upstream NTP servers to add a server
|
|
|
|
# to the pool. See http://www.pool.ntp.org/join.html if you are interested.
|
2009-06-07 13:26:57 +00:00
|
|
|
#
|
2013-12-27 23:06:15 +00:00
|
|
|
# The option `iburst' is used for faster initial synchronization.
|
2009-06-07 13:26:57 +00:00
|
|
|
#
|
2012-08-20 18:45:16 +00:00
|
|
|
server 0.freebsd.pool.ntp.org iburst
|
|
|
|
server 1.freebsd.pool.ntp.org iburst
|
|
|
|
server 2.freebsd.pool.ntp.org iburst
|
|
|
|
#server 3.freebsd.pool.ntp.org iburst
|
2009-06-07 13:26:57 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# If you want to pick yourself which country's public NTP server
|
|
|
|
# you want sync against, comment out the above servers, uncomment
|
2009-07-13 05:51:33 +00:00
|
|
|
# the next ones and replace CC with the country's abbreviation.
|
2009-06-07 13:26:57 +00:00
|
|
|
# Make sure that the hostnames resolve to a proper IP address!
|
|
|
|
#
|
2012-08-20 18:45:16 +00:00
|
|
|
# server 0.CC.pool.ntp.org iburst
|
|
|
|
# server 1.CC.pool.ntp.org iburst
|
|
|
|
# server 2.CC.pool.ntp.org iburst
|
2009-06-07 13:26:57 +00:00
|
|
|
|
|
|
|
#
|
2013-12-27 23:06:15 +00:00
|
|
|
# Security:
|
|
|
|
#
|
|
|
|
# By default, only allow time queries and block all other requests
|
|
|
|
# from unauthenticated clients.
|
|
|
|
#
|
|
|
|
# See http://support.ntp.org/bin/view/Support/AccessRestrictions
|
|
|
|
# for more information.
|
|
|
|
#
|
2015-03-31 19:56:46 +00:00
|
|
|
restrict default limited kod nomodify notrap nopeer noquery
|
|
|
|
restrict -6 default limited kod nomodify notrap nopeer noquery
|
2013-12-27 23:06:15 +00:00
|
|
|
#
|
|
|
|
# Alternatively, the following rules would block all unauthorized access.
|
|
|
|
#
|
|
|
|
#restrict default ignore
|
|
|
|
#restrict -6 default ignore
|
|
|
|
#
|
|
|
|
# In this case, all remote NTP time servers also need to be explicitly
|
|
|
|
# allowed or they would not be able to exchange time information with
|
|
|
|
# this server.
|
2009-06-07 13:26:57 +00:00
|
|
|
#
|
|
|
|
# Please note that this example doesn't work for the servers in
|
|
|
|
# the pool.ntp.org domain since they return multiple A records.
|
|
|
|
#
|
|
|
|
#restrict 0.pool.ntp.org nomodify nopeer noquery notrap
|
|
|
|
#restrict 1.pool.ntp.org nomodify nopeer noquery notrap
|
|
|
|
#restrict 2.pool.ntp.org nomodify nopeer noquery notrap
|
2013-12-27 23:06:15 +00:00
|
|
|
#
|
|
|
|
# The following settings allow unrestricted access from the localhost
|
|
|
|
restrict 127.0.0.1
|
|
|
|
restrict -6 ::1
|
|
|
|
restrict 127.127.1.0
|
2009-06-07 13:26:57 +00:00
|
|
|
|
|
|
|
#
|
2009-07-13 05:51:33 +00:00
|
|
|
# If a server loses sync with all upstream servers, NTP clients
|
|
|
|
# no longer follow that server. The local clock can be configured
|
|
|
|
# to provide a time source when this happens, but it should usually
|
|
|
|
# be configured on just one server on a network. For more details see
|
|
|
|
# http://support.ntp.org/bin/view/Support/UndisciplinedLocalClock
|
|
|
|
# The use of Orphan Mode may be preferable.
|
2009-06-07 13:26:57 +00:00
|
|
|
#
|
2009-07-13 05:51:33 +00:00
|
|
|
#server 127.127.1.0
|
|
|
|
#fudge 127.127.1.0 stratum 10
|
2015-10-16 14:04:16 +00:00
|
|
|
|
|
|
|
# See http://support.ntp.org/bin/view/Support/ConfiguringNTP#Section_6.14.
|
|
|
|
# for documentation regarding leapfile. Updates to the file can be obtained
|
|
|
|
# from ftp://time.nist.gov/pub/ or ftp://tycho.usno.navy.mil/pub/ntp/.
|
2016-01-26 07:06:44 +00:00
|
|
|
# Use either leapfile in /etc/ntp or weekly updated leapfile in /var/db.
|
|
|
|
#leapfile "/etc/ntp/leap-seconds"
|
|
|
|
leapfile "/var/db/ntpd.leap-seconds.list"
|