Can I use NTP service through a proxy?

Can I use NTP service through proxy? how to do it? I want NTP auto sync my clock through proxy.

1

3 Answers

NTP uses UDP packets with port number 123. So if you are behind aproxy or firewall, and the proxy or firewall blocks the UDP port 123, the public NTP servers you specify in /etc/ntp.conf won't be reachable to your host. If you can't reach them then you need to use internal ntp servers if they are available on your network.

If internal NTP servers (with their own clock source; e.g. GPS) and dual-homed NTP servers are not an option, then a lower accuracy option is htpdate (Note: not ntpdate). This pulls time from the timestamp inside a HTTP header - so it is not the most accurate.

Note: this system presumes that the web servers used as a time source have accurate time

See

You can use NTP servers setup in your network DMZ or setup to also have direct access to the Internet. This way that NTP server can synchronize time via NTP servers on the Internet but also provide a time source to your internal servers.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like