diff options
author | hagbard <vyosdev@derith.de> | 2019-03-07 12:14:37 -0800 |
---|---|---|
committer | hagbard <vyosdev@derith.de> | 2019-03-07 12:14:37 -0800 |
commit | ad22cbd46f8036b59163cb88914a7a5e4c4dad4d (patch) | |
tree | 537c4b47deb7b10b0cbe56dc91a734b7cff71ce0 /src/conf_mode | |
parent | 5f7ff72ea44f3d5b53c8debf947e5c05f4a34aa8 (diff) | |
download | vyos-1x-ad22cbd46f8036b59163cb88914a7a5e4c4dad4d.tar.gz vyos-1x-ad22cbd46f8036b59163cb88914a7a5e4c4dad4d.zip |
[ntp] T1280 - restrict option for servers, so they can query upstream
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/ntp.py | 3 |
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 %} |