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


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 http://www.clevervest.com/htp/


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

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.