Changed ntp config to more restrictive.

This commit is contained in:
Timo Mkinen 2012-01-03 15:53:07 +02:00
parent a5f30acd33
commit 1a8c48db00

View file

@ -3,9 +3,9 @@
tinker panic 0
<% end -%>
# By default, exchange time with everybody, but don't allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
# By default deny everything
restrict default ignore
restrict -6 default ignore
# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
@ -16,6 +16,7 @@ driftfile /var/lib/ntp/ntp.drift
# Remote servers.
<% ntp_server.each do |server| -%>
restrict <%= server %> mask 255.255.255.255 nomodify notrap noquery
server <%= server %>
<% end -%>
<% if is_virtual == "false" -%>