diff options
author | Jeff Geerling <geerlingguy@mac.com> | 2016-12-27 11:38:40 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-27 11:38:40 -0600 |
commit | 8f217a49ff730b799e913aeeaa140cffd9fa7f25 (patch) | |
tree | 8d17b5db6500db06203e8351c925957f753f8e09 /templates/ntp.conf.j2 | |
parent | dc2df3e38d64037d5d5f80eb246e10f05566cc76 (diff) | |
parent | 711363133f2644f2a6b690827a71607da08c0655 (diff) | |
download | ntp-8f217a49ff730b799e913aeeaa140cffd9fa7f25.tar.gz ntp-8f217a49ff730b799e913aeeaa140cffd9fa7f25.tar.bz2 ntp-8f217a49ff730b799e913aeeaa140cffd9fa7f25.tar.xz ntp-8f217a49ff730b799e913aeeaa140cffd9fa7f25.zip |
Merge pull request #21 from computersalat/add_restrict
add restrict as default values (by psaavedra)
Diffstat (limited to 'templates/ntp.conf.j2')
-rw-r--r-- | templates/ntp.conf.j2 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/ntp.conf.j2 b/templates/ntp.conf.j2 index cc1e0f0..e06ff1e 100644 --- a/templates/ntp.conf.j2 +++ b/templates/ntp.conf.j2 @@ -26,8 +26,9 @@ restrict default nomodify notrap nopeer noquery # Permit all access over the loopback interface. This could # be tightened as well, but to do so would effect some of # the administrative functions. -restrict 127.0.0.1 -restrict ::1 +{% for item in ntp_restrict %} +restrict {{ item }} +{% endfor %} # Clients from this (example!) subnet have unlimited access, but only if # cryptographically authenticated. |