From 13835e152e9bc93d2d48a4809aa39dbf8f492946 Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Wed, 28 Nov 2012 11:40:01 -0500 Subject: Add restrict parameter NTP servers should not restrict themselves to 127.0.0.1, and this commit adds a `restrict` parameter to enable/disable this configuration block in the relevent templates. --- templates/ntp.conf.debian.erb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'templates/ntp.conf.debian.erb') diff --git a/templates/ntp.conf.debian.erb b/templates/ntp.conf.debian.erb index 7a3f690..5d966f8 100644 --- a/templates/ntp.conf.debian.erb +++ b/templates/ntp.conf.debian.erb @@ -30,6 +30,7 @@ filegen clockstats file clockstats type day enable server <%= server %> <% end -%> +<% if @restrict -%> # Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for # details. The web page # might also be helpful. @@ -50,6 +51,7 @@ restrict ::1 # cryptographically authenticated. #restrict 192.168.123.0 mask 255.255.255.0 notrust +<% end -%> # If you want to provide time to your local subnet, change the next line. # (Again, the address is an example only.) -- cgit v1.2.3