1## template:jinja
2
3##
4## Radio and modem clocks by convention have addresses in the
5## form 127.127.t.u, where t is the clock type and u is a unit
6## number in the range 0-3.
7##
8## Most of these clocks require support in the form of a
9## serial port or special bus peripheral. The particular
10## device is normally specified by adding a soft link
11## /dev/device-u to the particular hardware device involved,
12## where u correspond to the unit number above.
13##
14## Generic DCF77 clock on serial port (Conrad DCF77)
15## Address:     127.127.8.u
16## Serial Port: /dev/refclock-u
17##
18## (create soft link /dev/refclock-0 to the particular ttyS?)
19##
20# server 127.127.8.0 mode 5 prefer
21
22##
23## Undisciplined Local Clock. This is a fake driver intended for backup
24## and when no outside source of synchronized time is available.
25##
26# server 127.127.1.0		# local clock (LCL)
27# fudge  127.127.1.0 stratum 10	# LCL is unsynchronized
28
29##
30## Add external Servers using
31## # rcntpd addserver <yourserver>
32## The servers will only be added to the currently running instance, not
33## to /etc/ntp.conf.
34##
35{% if pools %}# pools
36{% endif %}
37{% for pool in pools -%}
38pool {{pool}} iburst
39{% endfor %}
40{%- if servers %}# servers
41{% endif %}
42{% for server in servers -%}
43server {{server}} iburst
44{% endfor %}
45
46# Access control configuration; see /usr/share/doc/packages/ntp/html/accopt.html for
47# details.  The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
48# might also be helpful.
49#
50# Note that "restrict" applies to both servers and clients, so a configuration
51# that might be intended to block requests from certain clients could also end
52# up blocking replies from your own upstream servers.
53
54# By default, exchange time with everybody, but don't allow configuration.
55restrict -4 default notrap nomodify nopeer noquery
56restrict -6 default notrap nomodify nopeer noquery
57
58# Local users may interrogate the ntp server more closely.
59restrict 127.0.0.1
60restrict ::1
61
62# Clients from this (example!) subnet have unlimited access, but only if
63# cryptographically authenticated.
64#restrict 192.168.123.0 mask 255.255.255.0 notrust
65
66##
67## Miscellaneous stuff
68##
69
70driftfile /var/lib/ntp/drift/ntp.drift # path for drift file
71
72logfile   /var/log/ntp		# alternate log file
73# logconfig =syncstatus + sysevents
74# logconfig =all
75
76# statsdir /tmp/		# directory for statistics files
77# filegen peerstats  file peerstats  type day enable
78# filegen loopstats  file loopstats  type day enable
79# filegen clockstats file clockstats type day enable
80
81#
82# Authentication stuff
83#
84keys /etc/ntp.keys		# path for keys file
85trustedkey 1			# define trusted keys
86requestkey 1			# key (7) for accessing server variables
87controlkey 1			# key (6) for accessing server variables
88
89