ntpd time server

David Kelly dkelly at hiwaay.net
Sat Sep 15 14:03:47 PDT 2007


On Sat, Sep 15, 2007 at 08:46:09PM -0000, jhall at vandaliamo.net wrote:
> Is it possible to use ntpd as a client as well as a server?

Of course. Your server is a client of its own ntpd.

> I have my firewall setup to get updates from the Internet which it does
> without any problem.  However, I am not seeing any clients syncrhonizing
> with the firewall.
> 
> The firewall ntp.conf files contains the following.
> 
> server ntp-2.mcs.anl.gov prefer
> driftfile /data_prgs/local/etc/ntp.drift

Is my understanding these days the Politically Correct and Polite thing
to do is not list a specific machine (unless its yours) as ntp server
but to use servers which have volunteered to be placed in a revolving
DNS pool, like this:

server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server pool.ntp.org

> The clients contain the following.
> server firewall
> driftfile /var/db/ntp.drift
> 
> firewall is a resolved via internal DNS, and it is resolved to the correct
> IP address.
> 
> Any suggestions would be greatly appreciated.

On your clients type "ntpd -c peers" and one machine should be listed,
your "server" named "firewall" something like this (on MacOS X):

% ntpdc -c peers
     remote           local      st poll reach  delay   offset    disp
=======================================================================
=andraia.local   192.168.123.177  2 4096    3 0.00085 -0.231870 3.95285


Do the same thing on the "server" to see what it thinks of the servers
it is connected to.

-- 
David Kelly N4HHE, dkelly at HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.


More information about the freebsd-questions mailing list