首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >NTP没有正确处理池服务器上的限制。

NTP没有正确处理池服务器上的限制。
EN

Stack Overflow用户
提问于 2013-07-31 19:11:18
回答 1查看 1.5K关注 0票数 2

如果我运行的ntp (通过ntp.conf)受到严格限制,我就不能为服务器使用一个池。为什么?因为对限制的调用(允许对池的访问)似乎是另一个DNS查找,它返回的IP值比最初调用服务器的值还要多。请告诉我我在这件事上是错的[愚蠢的]。

粗略的例子(ntp.conf的一部分):

代码语言:javascript
复制
server 0.debian.pool.ntp.org iburst
restrict default ignore
restrict -6 default ignore
restrict 0.debian.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery

这不起作用(我认为),因为对0.debian.pool.ntp.org的DNS调用返回不同的IP地址,因此通过(名称不当)限制允许错误的IP地址。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-01-21 06:03:19

使用内置的source别名/指令/任何东西:

代码语言:javascript
复制
restrict source nomodify notrap noquery

包括source文档的更新

代码语言:javascript
复制
restrict source configures a template restriction automatically added
at runtime for each association, whether configured, ephemeral, or
preemptible, and removed when the association is demobilized.

来自:http://www.eecis.udel.edu/~mills/ntp/html/accopt.html#restrict

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17978897

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档