保护我的NTPconfiguration

需要一些帮助为我的主NTP服务器configuration我的ntp.conf文件。

我的configuration是否完成以下操作:

  • 防止轮询服务器更改我的configuration?
  • 允许我的同行同步?
  • 允许客户从我的服务器获得时间?

我是否缺less进一步的限制,选项等?

# Servers server time.example.com iburst server time.example.net server time.example.org peer ntp2.mydomain.com # Restrictions # Servers restrict time.example.com kod nomodify notrap nopeer noquery restrict time.example.net kod nomodify notrap nopeer noquery restrict time.example.org kod nomodify notrap nopeer noquery # Peers restrict ntp2.mydomain.com # Clients restrict 1.1.1.1 nomodify notrap restrict 10.0.0.0 mask 255.0.0.0 nomodify notrap # Loopback restrict 127.0.0.1 # Deny rest restrict default ignore restrict -6 default ignore 

我也打算修改iptables,只允许来自我的10.0.0.0/8子网和特定的公共托pipe服务器的入站连接。

另一个问题是,我可以删除time.example.xxx主机的nopeer,因为他们是服务器,而不是同龄人? 还是仍然需要?