summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-02-06 22:15:42 +0100
committerGitHub <noreply@github.com>2023-02-06 22:15:42 +0100
commit6b9b36db47a44b688c0bf08649845012a2b13f67 (patch)
tree9b7cfcd6bcc00723dc44501405bcadaf772cb754 /data/templates
parent1f71a4f9d733e5f24b1f1648f68787dc2c5cef09 (diff)
parentba6277dfa0895a169b1e66e969a87b0e764bdcff (diff)
downloadvyos-1x-6b9b36db47a44b688c0bf08649845012a2b13f67.tar.gz
vyos-1x-6b9b36db47a44b688c0bf08649845012a2b13f67.zip
Merge pull request #1802 from kylem0/T4980
ntp: T4980: change chrony deny all logic
Diffstat (limited to 'data/templates')
-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