Changed ntp config to more restrictive.
This commit is contained in:
parent
a5f30acd33
commit
1a8c48db00
1 changed files with 4 additions and 3 deletions
|
@ -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" -%>
|
||||
|
|
Loading…
Add table
Reference in a new issue