summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-03-07 10:29:28 -0800
committerhagbard <vyosdev@derith.de>2019-03-07 10:29:28 -0800
commit853a68aae4bf8ec02d9c3fa78be084d7ba38d351 (patch)
tree0e1a39ff4ec876a9175e796873d96e38756ba7e7
parente9eb1d54d0b8844a4df77236c65b9d97bc718504 (diff)
downloadvyos-1x-853a68aae4bf8ec02d9c3fa78be084d7ba38d351.tar.gz
vyos-1x-853a68aae4bf8ec02d9c3fa78be084d7ba38d351.zip
[ntp] T1280 - allow-clients on NTP configuration
-rwxr-xr-xsrc/conf_mode/ntp.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/ntp.py b/src/conf_mode/ntp.py
index 37af02014..bdc8e574c 100755
--- a/src/conf_mode/ntp.py
+++ b/src/conf_mode/ntp.py
@@ -42,7 +42,6 @@ restrict default noquery nopeer notrap nomodify noquery notrust
restrict 127.0.0.1
restrict -6 ::1
-
#
# Configurable section
#
@@ -51,6 +50,8 @@ restrict -6 ::1
{% for s in servers -%}
# Server configuration for: {{ s.name }}
server {{ s.name }} iburst {{ s.options | join(" ") }}
+# allow server sync
+restrict {{ s.name }} nomodify notrap
{% endfor -%}
{% endif %}