ntp.conf revision 195652
1148456Spjd#
2220922Spjd# $FreeBSD: head/etc/ntp.conf 195652 2009-07-13 05:51:33Z dwmalone $
3148456Spjd#
4148456Spjd# Default NTP servers for the FreeBSD operating system.
5148456Spjd#
6148456Spjd# Don't forget to enable ntpd in /etc/rc.conf with:
7148456Spjd# ntpd_enable="YES"
8148456Spjd#
9148456Spjd# The driftfile is by default /var/db/ntpd.drift, check
10148456Spjd# /etc/defaults/rc.conf on how to change the location.
11148456Spjd#
12148456Spjd
13155174Spjd#
14148456Spjd# The following three servers will give you a random set of three
15148456Spjd# NTP servers geographically close to you.
16148456Spjd# See http://www.pool.ntp.org/ for details. Note, the pool encourages
17148456Spjd# users with a static IP and good upstream NTP servers to add a server
18148456Spjd# to the pool. See http://www.pool.ntp.org/join.html if you are interested.
19148456Spjd#
20148456Spjd# The option `iburst' is used for faster initial synchronisation.
21148456Spjd# The option `maxpoll 9' is used to prevent PLL/FLL flipping on FreeBSD.
22148456Spjd#
23148456Spjdserver 0.freebsd.pool.ntp.org iburst maxpoll 9
24148456Spjdserver 1.freebsd.pool.ntp.org iburst maxpoll 9
25148456Spjdserver 2.freebsd.pool.ntp.org iburst maxpoll 9
26148456Spjd#server 3.freebsd.pool.ntp.org iburst maxpoll 9
27148456Spjd
28148456Spjd#
29148456Spjd# If you want to pick yourself which country's public NTP server
30148456Spjd# you want sync against, comment out the above servers, uncomment
31148456Spjd# the next ones and replace CC with the country's abbreviation.
32148456Spjd# Make sure that the hostnames resolve to a proper IP address!
33148456Spjd#
34148456Spjd# server 0.CC.pool.ntp.org iburst maxpoll 9
35148456Spjd# server 1.CC.pool.ntp.org iburst maxpoll 9
36148456Spjd# server 2.CC.pool.ntp.org iburst maxpoll 9
37148456Spjd
38148456Spjd#
39148456Spjd# Security: Only accept NTP traffic from the following hosts.
40148456Spjd# The following configuration example only accepts traffic from the
41148456Spjd# above defined servers.
42148456Spjd#
43148456Spjd# Please note that this example doesn't work for the servers in
44148456Spjd# the pool.ntp.org domain since they return multiple A records.
45148456Spjd# (This is the reason that by default they are commented out)
46148456Spjd#
47148456Spjd#restrict default ignore
48148456Spjd#restrict 0.pool.ntp.org nomodify nopeer noquery notrap
49148456Spjd#restrict 1.pool.ntp.org nomodify nopeer noquery notrap
50148456Spjd#restrict 2.pool.ntp.org nomodify nopeer noquery notrap
51148456Spjd#restrict 127.0.0.1
52148456Spjd#restrict -6 ::1
53148456Spjd#restrict 127.127.1.0
54148456Spjd
55148456Spjd#
56148456Spjd# If a server loses sync with all upstream servers, NTP clients
57148456Spjd# no longer follow that server. The local clock can be configured
58148456Spjd# to provide a time source when this happens, but it should usually
59148456Spjd# be configured on just one server on a network. For more details see
60161127Spjd# http://support.ntp.org/bin/view/Support/UndisciplinedLocalClock
61148456Spjd# The use of Orphan Mode may be preferable.
62148456Spjd#
63148456Spjd#server 127.127.1.0
64148456Spjd#fudge 127.127.1.0 stratum 10
65148456Spjd