ntp.conf revision 239464
1193635Sedwin# 2193635Sedwin# $FreeBSD: head/etc/ntp.conf 239464 2012-08-20 18:45:16Z delphij $ 3193635Sedwin# 4193635Sedwin# Default NTP servers for the FreeBSD operating system. 5193635Sedwin# 6193635Sedwin# Don't forget to enable ntpd in /etc/rc.conf with: 7193635Sedwin# ntpd_enable="YES" 8193635Sedwin# 9193635Sedwin# The driftfile is by default /var/db/ntpd.drift, check 10193635Sedwin# /etc/defaults/rc.conf on how to change the location. 11193635Sedwin# 12193635Sedwin 13193635Sedwin# 14193635Sedwin# The following three servers will give you a random set of three 15193635Sedwin# NTP servers geographically close to you. 16195652Sdwmalone# See http://www.pool.ntp.org/ for details. Note, the pool encourages 17195652Sdwmalone# users with a static IP and good upstream NTP servers to add a server 18195652Sdwmalone# to the pool. See http://www.pool.ntp.org/join.html if you are interested. 19193635Sedwin# 20193635Sedwin# The option `iburst' is used for faster initial synchronisation. 21193635Sedwin# 22239464Sdelphijserver 0.freebsd.pool.ntp.org iburst 23239464Sdelphijserver 1.freebsd.pool.ntp.org iburst 24239464Sdelphijserver 2.freebsd.pool.ntp.org iburst 25239464Sdelphij#server 3.freebsd.pool.ntp.org iburst 26193635Sedwin 27193635Sedwin# 28193635Sedwin# If you want to pick yourself which country's public NTP server 29193635Sedwin# you want sync against, comment out the above servers, uncomment 30195652Sdwmalone# the next ones and replace CC with the country's abbreviation. 31193635Sedwin# Make sure that the hostnames resolve to a proper IP address! 32193635Sedwin# 33239464Sdelphij# server 0.CC.pool.ntp.org iburst 34239464Sdelphij# server 1.CC.pool.ntp.org iburst 35239464Sdelphij# server 2.CC.pool.ntp.org iburst 36193635Sedwin 37193635Sedwin# 38193635Sedwin# Security: Only accept NTP traffic from the following hosts. 39193635Sedwin# The following configuration example only accepts traffic from the 40193635Sedwin# above defined servers. 41193635Sedwin# 42193635Sedwin# Please note that this example doesn't work for the servers in 43193635Sedwin# the pool.ntp.org domain since they return multiple A records. 44193635Sedwin# (This is the reason that by default they are commented out) 45193635Sedwin# 46193635Sedwin#restrict default ignore 47193635Sedwin#restrict 0.pool.ntp.org nomodify nopeer noquery notrap 48193635Sedwin#restrict 1.pool.ntp.org nomodify nopeer noquery notrap 49193635Sedwin#restrict 2.pool.ntp.org nomodify nopeer noquery notrap 50193635Sedwin#restrict 127.0.0.1 51193635Sedwin#restrict -6 ::1 52193635Sedwin#restrict 127.127.1.0 53193635Sedwin 54193635Sedwin# 55195652Sdwmalone# If a server loses sync with all upstream servers, NTP clients 56195652Sdwmalone# no longer follow that server. The local clock can be configured 57195652Sdwmalone# to provide a time source when this happens, but it should usually 58195652Sdwmalone# be configured on just one server on a network. For more details see 59195652Sdwmalone# http://support.ntp.org/bin/view/Support/UndisciplinedLocalClock 60195652Sdwmalone# The use of Orphan Mode may be preferable. 61193635Sedwin# 62195652Sdwmalone#server 127.127.1.0 63195652Sdwmalone#fudge 127.127.1.0 stratum 10 64