2014-01-14 17:23:46 +04:00
|
|
|
# $NetBSD: ntp.conf,v 1.19 2014/01/14 13:23:46 apb Exp $
|
2000-01-28 09:49:16 +03:00
|
|
|
#
|
2003-12-07 19:02:35 +03:00
|
|
|
# NetBSD default Network Time Protocol (NTP) configuration file for ntpd
|
2000-01-28 09:49:16 +03:00
|
|
|
|
2003-12-07 19:11:58 +03:00
|
|
|
# This file is intended to be both a usable default, and a Quick-Start
|
|
|
|
# Guide. The directives and options listed here are not at all complete.
|
2007-02-10 22:36:56 +03:00
|
|
|
# A great deal of additional documentation, including links to FAQS and
|
2003-12-07 19:11:58 +03:00
|
|
|
# other guides, may be found on the official NTP web site, in particular
|
|
|
|
#
|
|
|
|
# http://www.ntp.org/documentation.html
|
|
|
|
#
|
|
|
|
|
2000-01-28 09:49:16 +03:00
|
|
|
# Process ID file, so that the daemon can be signalled from scripts
|
|
|
|
|
2001-03-08 22:05:13 +03:00
|
|
|
pidfile /var/run/ntpd.pid
|
2000-01-28 09:49:16 +03:00
|
|
|
|
2000-05-02 16:16:07 +04:00
|
|
|
# The correction calculated by ntpd(8) for the local system clock's
|
2003-12-07 19:02:35 +03:00
|
|
|
# drift is stored here.
|
2000-01-28 09:49:16 +03:00
|
|
|
|
2001-03-08 22:05:13 +03:00
|
|
|
driftfile /var/db/ntp.drift
|
2000-01-28 09:49:16 +03:00
|
|
|
|
2003-12-07 19:02:35 +03:00
|
|
|
# Suppress the syslog(3) message for each peer synchronization change.
|
2000-01-28 09:49:16 +03:00
|
|
|
|
2001-03-08 22:05:13 +03:00
|
|
|
logconfig -syncstatus
|
2000-01-28 09:49:16 +03:00
|
|
|
|
2014-01-06 15:25:03 +04:00
|
|
|
# Refuse to set the local clock if there are too few good peers or servers.
|
|
|
|
# This may help minimize disruptions due to network congestion. Don't
|
2003-12-07 18:56:30 +03:00
|
|
|
# do this if you configure only one server!
|
|
|
|
|
|
|
|
tos minsane 2
|
|
|
|
|
2011-07-09 23:24:13 +04:00
|
|
|
# Set the number of tries to register with mdns. 0 means never
|
|
|
|
#
|
|
|
|
mdnstries 0
|
|
|
|
|
2013-12-28 07:18:39 +04:00
|
|
|
# New ntpd disables the ntpdc protocol by default, to re-enable uncomment
|
|
|
|
# the following line
|
|
|
|
# enable mode7
|
|
|
|
|
2014-01-06 15:21:34 +04:00
|
|
|
# Access control restrictions.
|
|
|
|
# See /usr/share/doc/html/ntp/accopt.html for syntax.
|
|
|
|
# See <http://support.ntp.org/bin/view/Support/AccessRestrictions> for advice.
|
|
|
|
# Last match wins.
|
|
|
|
#
|
|
|
|
# Some of the more common keywords are:
|
|
|
|
# ignore Deny packets of all kinds.
|
|
|
|
# kod Send "kiss-o'-death" packets if clients exceed rate
|
|
|
|
# limits.
|
|
|
|
# nomodify Deny attempts to modify the state of the server via
|
|
|
|
# ntpq or ntpdc queries.
|
|
|
|
# noquery Deny all ntpq and ntpdc queries. Does not affect time
|
|
|
|
# synchronisation.
|
2014-01-14 17:23:46 +04:00
|
|
|
# nopeer Prevent establishing new peer associations.
|
|
|
|
# Does not affect peers configured using "peer" lines.
|
2014-01-06 15:21:34 +04:00
|
|
|
# Does not affect client/server time synchronisation.
|
|
|
|
# noserve Deny all time synchronisation. Does not affect ntpq or
|
|
|
|
# ntpdc queries.
|
|
|
|
# notrap Deny the trap subset of the ntpdc control message protocol.
|
|
|
|
# notrust Deny packets that are not cryptographically authenticated.
|
|
|
|
#
|
2014-01-14 17:23:46 +04:00
|
|
|
# By default, allow client/server time exchange without prior
|
|
|
|
# arrangement, but deny configuration changes, queries, and peer
|
|
|
|
# associations that were not explicitly configured.
|
2014-01-06 15:21:34 +04:00
|
|
|
#
|
|
|
|
restrict default kod nopeer noquery
|
|
|
|
|
|
|
|
# Fewer restrictions for the local subnet.
|
|
|
|
# (Uncomment and adjust as appropriate.)
|
|
|
|
#
|
|
|
|
#restrict 192.0.2.0 mask 255.255.255.0 kod nomodify notrap nopeer
|
|
|
|
#restrict 2001:db8:: mask ffff:ffff:: kod nomodify notrap nopeer
|
|
|
|
|
|
|
|
# No restrictions for localhost.
|
|
|
|
#
|
|
|
|
restrict 127.0.0.1
|
|
|
|
restrict ::1
|
|
|
|
|
2003-12-07 19:02:35 +03:00
|
|
|
# Hereafter should be "server" or "peer" statements to configure other
|
2014-01-06 15:25:03 +04:00
|
|
|
# hosts to exchange NTP packets with.
|
|
|
|
#
|
|
|
|
# See <http://support.ntp.org/bin/view/Support/DesigningYourNTPNetwork>
|
|
|
|
# and <http://support.ntp.org/bin/view/Support/SelectingOffsiteNTPServers>
|
|
|
|
# for advice.
|
|
|
|
#
|
2014-01-14 17:23:46 +04:00
|
|
|
# Peers or servers should be selected in such a way that the network
|
|
|
|
# path to them is short, uncongested, and symmetric (that is, the series
|
|
|
|
# of links and routers used to get to the peer is the same one that
|
|
|
|
# the peer uses to get back). The best place to start looking for NTP
|
|
|
|
# peers for your system is within your own network, or at your Internet
|
|
|
|
# Service Provider (ISP).
|
2000-01-28 09:49:16 +03:00
|
|
|
#
|
2003-12-07 19:02:35 +03:00
|
|
|
# Ideally, you should select at least three other systems to talk NTP
|
|
|
|
# with, for an "what I tell you three times is true" effect.
|
2000-01-28 09:49:16 +03:00
|
|
|
|
2001-03-08 22:05:13 +03:00
|
|
|
#peer an.ntp.peer.goes.here
|
|
|
|
#server an.ntp.server.goes.here
|
2003-09-24 15:36:31 +04:00
|
|
|
|
2014-01-06 15:25:03 +04:00
|
|
|
# The pool.ntp.org project coordinates public time servers provided by
|
|
|
|
# volunteers. See <http://www.pool.ntp.org>. The *.netbsd.pool.ntp.org
|
|
|
|
# servers are intended to be used by default on NetBSD hosts, but
|
|
|
|
# servers that are closer to you are likely to be better. Consider
|
|
|
|
# using servers specific to your country, a nearby country, or your
|
|
|
|
# continent.
|
|
|
|
#
|
2003-12-07 19:01:00 +03:00
|
|
|
# The pool.ntp.org project needs more volunteers! The only criteria to
|
|
|
|
# join are a nailed-up connection and a static IP address. For details,
|
|
|
|
# see the web page:
|
|
|
|
#
|
2012-01-17 02:20:45 +04:00
|
|
|
# http://www.pool.ntp.org/join.html
|
2003-12-07 19:01:00 +03:00
|
|
|
#
|
|
|
|
|
2012-01-17 02:12:41 +04:00
|
|
|
server 0.netbsd.pool.ntp.org
|
|
|
|
server 1.netbsd.pool.ntp.org
|
|
|
|
server 2.netbsd.pool.ntp.org
|
|
|
|
server 3.netbsd.pool.ntp.org
|