You are not logged in.

#1 2004-05-10 05:50:57

jak
Member
From: Charlotte, NC, USA
Registered: 2004-04-08
Posts: 84

ntp config

I noticed a default ntp.conf in /etc, but I could not see how the ntp package installed it. Anyway, it wasn't working very well so I went to the ntp web site to figure out why. One fix was eliminating the 127.0.0.1 local clock. Another was dropping notrust from the restrict command. Here's my new ntp.conf which works much better now, in case it might help someone else.

restrict default nomodify noquery
server ntp-2.vt.edu
server louie.udel.edu
server ntp-1.mcs.anl.gov
server clock.psu.edu
driftfile /etc/ntp.drift
logfile /var/log/ntp.log

Also note that http://www.eecis.udel.edu/~mills/ntp/html/accopt.html says, at the bottom of the page where it's easy to miss:

Default restriction list entries with the flags ignore, interface, ntpport, for each of the local host's interface addresses are inserted into the table at startup to prevent the server from attempting to synchronize to its own time.

AFAICT, that's why you should NOT use

restrict 127.0.0.1

which opens up the local clock as a time source, which is a bad thing.


The sturgeon general says don't smoke fish

Offline

#2 2004-05-10 06:01:39

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: ntp config

I'm pretty sure the /etc/ntp.conf is created by dhcpcd.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

Board footer

Powered by FluxBB