summaryrefslogtreecommitdiffstats
path: root/templates/ntp.conf.j2
blob: b0ddb0c5419f1b1f8369c1f1dec12e99f9517265 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# {{ ansible_managed }}

# Default NTP servers for the operating system.
{% for item in ntp_servers %}
server {{ item }}
{% endfor %}

# Security:
#
# By default, only allow time queries and block all other requests
# from unauthenticated clients.
#
# See http://support.ntp.org/bin/view/Support/AccessRestrictions
# for more information.
#
restrict default kod limited nomodify notrap nopeer noquery
restrict -6 default kod limited nomodify notrap nopeer noquery

# The following settings allow unrestricted access from the localhost
restrict 127.0.0.1
restrict -6 ::1
restrict 127.127.1.0