summaryrefslogtreecommitdiff
path: root/data/templates/chrony
diff options
context:
space:
mode:
authorKyle Mitchell <kyle.m.mitchell@oracle.com>2023-02-06 12:07:42 -0500
committerKyle Mitchell <kyle.m.mitchell@oracle.com>2023-02-06 14:06:30 -0500
commitba6277dfa0895a169b1e66e969a87b0e764bdcff (patch)
tree68b88ba8c31c248c03094346bea2049015e8495c /data/templates/chrony
parent2622902ac76bc1c3356bb722f63e931119f3eb04 (diff)
downloadvyos-1x-ba6277dfa0895a169b1e66e969a87b0e764bdcff.tar.gz
vyos-1x-ba6277dfa0895a169b1e66e969a87b0e764bdcff.zip
ntp: T4980: change chrony deny all logic
Diffstat (limited to 'data/templates/chrony')
-rw-r--r--data/templates/chrony/chrony.conf.j23
1 files changed, 2 insertions, 1 deletions
diff --git a/data/templates/chrony/chrony.conf.j2 b/data/templates/chrony/chrony.conf.j2
index b3bfc8c0c..711bbbec7 100644
--- a/data/templates/chrony/chrony.conf.j2
+++ b/data/templates/chrony/chrony.conf.j2
@@ -40,8 +40,9 @@ user {{ user }}
{% for address in allow_client.address %}
allow {{ address }}
{% endfor %}
-{% endif %}
+{% else %}
deny all
+{% endif %}
{% if listen_address is vyos_defined or interface is vyos_defined %}
# NTP should listen on configured addresses only