Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have some servers (Centos 5.3) that are behind a firewall without access to the Internet. We'd like all the logs to be synchronized, but NTP appears to want the authoritative server to be synchronized to a public NTP server. We've tried the -g option for ntpd, but this returns an error like "no appropriate server found". Does anyone have a working configuration?

share|improve this question
up vote 1 down vote accepted

You can setup one of the servers to be a NTP server and have all the other servers sync its time with the local NTP server. The time on all those servers will be accurate enough depending on how often it gets its time update from the local NTP server. But the time on the NTP server might not be accurate as the NTP server is not able to reach the internet for accurate time updates.

share|improve this answer
How do you configure the clients to trust the local NTP server? In the default configuration, they don't unless the server's strata is low enough. – John Whitlock Dec 3 '09 at 0:55
You can use the fudge parameter in ntp.conf to fudge the stratum number. – Kamil Kisiel Dec 3 '09 at 1:02

GPS satellites broadcast accurate time signals, you can buy boxes that pick those up and act as NTP sources. (I know nothing about that site except that it's a top hit in google and has the sort of products I expected to find.) Some of the boxes are expensive, you can do some of it with a cheap GPS hooked up to a serial port and the right software.

share|improve this answer

If you need to sync more than one machine in a network, it's considered good practice -- not to mention polite -- to setup your own central NTP server, letting it sync directly to the nearest public servers and letting the other machines on the LAN in turn sync to it.

This reduces the load on the public NTP servers enormously!

Additional bonus: if you lose your internet connection, all your servers still keep in sync with each other.

You could use your firewall to take over this roll, or better yet put the service into your DMZ—you have a DMZ, right?

share|improve this answer
Sorry, it was rather late, yesterday, and probably I have misunderstood your actual problem. – hop Dec 3 '09 at 12:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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