unix - NTPD:使用不受限制的端口进行通信

标签 unix time ntpd

当使用命令 查询 ntp 服务器时ntpdate ,我可以用 -u 使源端口成为不受限制的端口(端口 1024 及以上)的参数。

使用旨在在后台运行的 ntpd,我似乎无法找到打开此选项的方法。所以源端口总是 123。它在我的防火墙配置中运行得很糟糕。

中是否有配置选项? ntp.conf 让它使用随机源端口?

最佳答案

听起来这不可能……参见 ntp troubleshooting page :

If you're going to run ntpd, you need to fix your network/firewall/NAT so that ntpd can have full unrestricted access to UDP port 123 in both directions.

If this is not possible, you may need to run ntpd on the firewall itself, so that it can have full unrestricted access to UDP port 123 in both directions, and then have it serve time to your internal clients.

If that's not possible, your only other option may be to buy the necessary hardware to connect to one or more of your own computers and run your own Stratum 1 time server or buy a pre-packaged Stratum 1 time server.

关于unix - NTPD:使用不受限制的端口进行通信,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/232722/

相关文章:

php - 如果超过给定时间则停止运行 php 函数

time - NTPD在校正时间上能不能严格一点?

linux - 保留文件中的前 5 行

linux - 给定两个目录树,我如何找出哪些文件因内容而异?

datetime - 如何使用谷歌分析API检索今日数据

r - 如何在 R 中比较和处理时间

time - 我期望来自以太网同一子网上的 0 层 NTP 服务器的时间有多准确?

linux - UNIX 中的终止命令

bash - 遍历数组并执行存储在变量中的命令