If I am running ntp (via ntp.conf) heavily restricted, I cannot use a pool for a server. Why? Because the call to restrict (to allow access for the pool) seems to be another DNS Lookup, which returns another IP value than what was used to originally call the server. Please show me that I am wrong/being stupid about this.

如果我正在运行严重受限制的ntp(通过ntp.conf),则不能为服务器使用池。为什么?因为限制(允许对池进行访问)的调用似乎是另一个DNS查找,它返回的IP值比最初调用服务器的IP值要多。请让我知道我错了。

Crude Example (portion of ntp.conf):

粗略示例(ntk .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

This does not work (I think) because DNS calls to 0.debian.pool.ntp.org return different IP addresses and thus the wrong IP address is allowed via the (poorly named) restrict.

这是行不通的(我认为),因为DNS调用0.debian.pool.ntp.org会返回不同的IP地址,因此通过(命名不佳)限制允许错误的IP地址。

1 个解决方案

#1


3

Use the builtin source alias/directive/whatever:

使用内置源别名/指令/无论什么:

restrict source nomodify notrap noquery

Updatedd to include documentation for 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.

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

来自:http://www.eecis.udel.edu/ ~米尔斯/国家结核控制规划/ html / accopt.html #限制

更多相关文章

  1. Red Hat Linux下如何修改网卡MAC地址
  2. 一些下载交叉编译环境的地址
  3. 如何使用SQL语句查到当前SQL SERVER 2000服务器的IP地址
  4. 如何通过HttpURLConnection得到http 302的跳转地址
  5. Java Android套接字连接。错误的IP地址导致应用程序停止响应
  6. Android利用IP地址定位城市(全世界可用)
  7. Android获取WIFI状态下的IP地址以及MAC地址
  8. Android SDK更新以及ADT更新出现问题的解决办法(附google服务器

随机推荐

  1. 11种数据分析方法,别再说你不会了
  2. 认识Python中的闭包:闭包入门到自闭
  3. 用Python全自动下载抖音视频!
  4. 11个 Javascript 小技巧帮你提升代码质量
  5. Python数据可视化:豆瓣电影TOP250
  6. python入门教程12-05 (python语法入门之创
  7. Python数据科学:相关分析
  8. 一步步教你用CSS添加SVG过滤器[每日前端
  9. Python数据可视化:25年GDP之变
  10. Python数据科学:正态分布与t检验