ntp.conf revision 195652
1193635Sedwin# 2193635Sedwin# $FreeBSD: head/etc/ntp.conf 195652 2009-07-13 05:51:33Z dwmalone $ 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# The option `maxpoll 9' is used to prevent PLL/FLL flipping on FreeBSD. 22193635Sedwin# 23195652Sdwmaloneserver 0.freebsd.pool.ntp.org iburst maxpoll 9 24195652Sdwmaloneserver 1.freebsd.pool.ntp.org iburst maxpoll 9 25195652Sdwmaloneserver 2.freebsd.pool.ntp.org iburst maxpoll 9 26195652Sdwmalone#server 3.freebsd.pool.ntp.org iburst maxpoll 9 27193635Sedwin 28193635Sedwin# 29193635Sedwin# If you want to pick yourself which country's public NTP server 30193635Sedwin# you want sync against, comment out the above servers, uncomment 31195652Sdwmalone# the next ones and replace CC with the country's abbreviation. 32193635Sedwin# Make sure that the hostnames resolve to a proper IP address! 33193635Sedwin# 34193635Sedwin# server 0.CC.pool.ntp.org iburst maxpoll 9 35193635Sedwin# server 1.CC.pool.ntp.org iburst maxpoll 9 36193635Sedwin# server 2.CC.pool.ntp.org iburst maxpoll 9 37193635Sedwin 38193635Sedwin# 39193635Sedwin# Security: Only accept NTP traffic from the following hosts. 40193635Sedwin# The following configuration example only accepts traffic from the 41193635Sedwin# above defined servers. 42193635Sedwin# 43193635Sedwin# Please note that this example doesn't work for the servers in 44193635Sedwin# the pool.ntp.org domain since they return multiple A records. 45193635Sedwin# (This is the reason that by default they are commented out) 46193635Sedwin# 47193635Sedwin#restrict default ignore 48193635Sedwin#restrict 0.pool.ntp.org nomodify nopeer noquery notrap 49193635Sedwin#restrict 1.pool.ntp.org nomodify nopeer noquery notrap 50193635Sedwin#restrict 2.pool.ntp.org nomodify nopeer noquery notrap 51193635Sedwin#restrict 127.0.0.1 52193635Sedwin#restrict -6 ::1 53193635Sedwin#restrict 127.127.1.0 54193635Sedwin 55193635Sedwin# 56195652Sdwmalone# If a server loses sync with all upstream servers, NTP clients 57195652Sdwmalone# no longer follow that server. The local clock can be configured 58195652Sdwmalone# to provide a time source when this happens, but it should usually 59195652Sdwmalone# be configured on just one server on a network. For more details see 60195652Sdwmalone# http://support.ntp.org/bin/view/Support/UndisciplinedLocalClock 61195652Sdwmalone# The use of Orphan Mode may be preferable. 62193635Sedwin# 63195652Sdwmalone#server 127.127.1.0 64195652Sdwmalone#fudge 127.127.1.0 stratum 10 65