gpt4 book ai didi

linux - NTP 未正确处理对池服务器的限制

转载 作者:太空狗 更新时间:2023-10-29 11:45:40 24 4
gpt4 key购买 nike

如果我正在运行 ntp(通过 ntp.conf)受到严格限制,我不能将池用于服务器。为什么?因为调用限制(允许访问池)似乎是另一个 DNS 查找,它返回另一个 IP 值,而不是最初用于调用服务器的 IP 值。请告诉我我错了/对此很愚蠢。

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

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 地址。

最佳答案

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

restrict source nomodify notrap noquery

已更新以包含source 的文档:

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

关于linux - NTP 未正确处理对池服务器的限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17978897/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com