|
Packit Service |
a04d08 |
## template:jinja
|
|
Packit Service |
a04d08 |
|
|
Packit Service |
a04d08 |
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
|
|
Packit Service |
a04d08 |
|
|
Packit Service |
a04d08 |
driftfile /var/lib/ntp/ntp.drift
|
|
Packit Service |
a04d08 |
|
|
Packit Service |
a04d08 |
# Enable this if you want statistics to be logged.
|
|
Packit Service |
a04d08 |
#statsdir /var/log/ntpstats/
|
|
Packit Service |
a04d08 |
|
|
Packit Service |
a04d08 |
statistics loopstats peerstats clockstats
|
|
Packit Service |
a04d08 |
filegen loopstats file loopstats type day enable
|
|
Packit Service |
a04d08 |
filegen peerstats file peerstats type day enable
|
|
Packit Service |
a04d08 |
filegen clockstats file clockstats type day enable
|
|
Packit Service |
a04d08 |
|
|
Packit Service |
a04d08 |
|
|
Packit Service |
a04d08 |
# You do need to talk to an NTP server or two (or three).
|
|
Packit Service |
a04d08 |
#server ntp.your-provider.example
|
|
Packit Service |
a04d08 |
|
|
Packit Service |
a04d08 |
# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will
|
|
Packit Service |
a04d08 |
# pick a different set every time it starts up. Please consider joining the
|
|
Packit Service |
a04d08 |
# pool: <http://www.pool.ntp.org/join.html>
|
|
Packit Service |
a04d08 |
{% if pools %}# pools
|
|
Packit Service |
a04d08 |
{% endif %}
|
|
Packit Service |
a04d08 |
{% for pool in pools -%}
|
|
Packit Service |
a04d08 |
pool {{pool}} iburst
|
|
Packit Service |
a04d08 |
{% endfor %}
|
|
Packit Service |
a04d08 |
{%- if servers %}# servers
|
|
Packit Service |
a04d08 |
{% endif %}
|
|
Packit Service |
a04d08 |
{% for server in servers -%}
|
|
Packit Service |
a04d08 |
server {{server}} iburst
|
|
Packit Service |
a04d08 |
{% endfor %}
|
|
Packit Service |
a04d08 |
|
|
Packit Service |
a04d08 |
# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
|
|
Packit Service |
a04d08 |
# details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
|
|
Packit Service |
a04d08 |
# might also be helpful.
|
|
Packit Service |
a04d08 |
#
|
|
Packit Service |
a04d08 |
# Note that "restrict" applies to both servers and clients, so a configuration
|
|
Packit Service |
a04d08 |
# that might be intended to block requests from certain clients could also end
|
|
Packit Service |
a04d08 |
# up blocking replies from your own upstream servers.
|
|
Packit Service |
a04d08 |
|
|
Packit Service |
a04d08 |
# By default, exchange time with everybody, but don't allow configuration.
|
|
Packit Service |
a04d08 |
restrict -4 default kod notrap nomodify nopeer noquery limited
|
|
Packit Service |
a04d08 |
restrict -6 default kod notrap nomodify nopeer noquery limited
|
|
Packit Service |
a04d08 |
|
|
Packit Service |
a04d08 |
# Local users may interrogate the ntp server more closely.
|
|
Packit Service |
a04d08 |
restrict 127.0.0.1
|
|
Packit Service |
a04d08 |
restrict ::1
|
|
Packit Service |
a04d08 |
|
|
Packit Service |
a04d08 |
# Needed for adding pool entries
|
|
Packit Service |
a04d08 |
restrict source notrap nomodify noquery
|
|
Packit Service |
a04d08 |
|
|
Packit Service |
a04d08 |
# Clients from this (example!) subnet have unlimited access, but only if
|
|
Packit Service |
a04d08 |
# cryptographically authenticated.
|
|
Packit Service |
a04d08 |
#restrict 192.168.123.0 mask 255.255.255.0 notrust
|
|
Packit Service |
a04d08 |
|
|
Packit Service |
a04d08 |
|
|
Packit Service |
a04d08 |
# If you want to provide time to your local subnet, change the next line.
|
|
Packit Service |
a04d08 |
# (Again, the address is an example only.)
|
|
Packit Service |
a04d08 |
#broadcast 192.168.123.255
|
|
Packit Service |
a04d08 |
|
|
Packit Service |
a04d08 |
# If you want to listen to time broadcasts on your local subnet, de-comment the
|
|
Packit Service |
a04d08 |
# next lines. Please do this only if you trust everybody on the network!
|
|
Packit Service |
a04d08 |
#disable auth
|
|
Packit Service |
a04d08 |
#broadcastclient
|