1#
| 1#
|
2# $FreeBSD: stable/10/etc/ntp.conf 239464 2012-08-20 18:45:16Z delphij $
| 2# $FreeBSD: stable/10/etc/ntp.conf 259974 2013-12-27 23:09:40Z delphij $
|
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#
| 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 synchronisation.
| 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#
| 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: Only accept NTP traffic from the following hosts. 39# The following configuration example only accepts traffic from the 40# above defined servers.
| 38# Security:
|
41#
| 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#
|
42# Please note that this example doesn't work for the servers in 43# the pool.ntp.org domain since they return multiple A records.
| 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.
|
44# (This is the reason that by default they are commented out)
| |
45#
| 60#
|
46#restrict default ignore
| |
47#restrict 0.pool.ntp.org nomodify nopeer noquery notrap 48#restrict 1.pool.ntp.org nomodify nopeer noquery notrap 49#restrict 2.pool.ntp.org nomodify nopeer noquery notrap
| 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
|
50#restrict 127.0.0.1 51#restrict -6 ::1 52#restrict 127.127.1.0
| 64# 65# The following settings allow unrestricted access from the localhost 66restrict 127.0.0.1 67restrict -6 ::1 68restrict 127.127.1.0
|
53 54# 55# If a server loses sync with all upstream servers, NTP clients 56# no longer follow that server. The local clock can be configured 57# to provide a time source when this happens, but it should usually 58# be configured on just one server on a network. For more details see 59# http://support.ntp.org/bin/view/Support/UndisciplinedLocalClock 60# The use of Orphan Mode may be preferable. 61# 62#server 127.127.1.0 63#fudge 127.127.1.0 stratum 10
| 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
|