当使用命令ntpdate查询ntp服务器时,可以使用-u参数来使源端口成为无限制端口(端口1024及以上).
使用ntpd,这意味着在后台运行,我似乎找不到打开此选项的方法.所以源端口总是123.我的防火墙配置正在玩耍.
ntp.conf中是否有配置选项使其使用随机源端口?
听起来不是这样可能…看到
ntp troubleshooting page:
原文链接:https://www.f2er.com/bash/383612.htmlIf 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.