mca1
January 8th, 2003, 09:28
Hi All
Hopefully some one can help me. I am trying to set up a time server so that my local machines can get time from this server than remotes ones.

I've done the following but am a bit stuck :/

Installed ntp from ports net/ntp

Modified rc.conf so ntp entries are as follows:
ntpdate_flags="-sv ntp0.fau.de"
ntpd=YES

rc.local has the standard lines to start ntpd on boot.

my /etc/ntp.conf is as follows:
#####
# File /etc/ntp.conf
#
logfile /var/log/ntpd.log
#
# Stratum2 time servers:
server ntp.maths.tcd.ie
server ntp.cs.strath.ac.uk
server tick.usno.navy.mil
driftfile /etc/ntp.drift
#
restrict default nomodify notrust
restrict 192.168.0.10
restrict 127.0.0.1
#end ntp.conf
############

Is there something different I should be doing so I can point clients at this server to get time?

mca1
January 8th, 2003, 09:35
Almost forgot, from logs I get the following

/var/log/messages:

Jan 8 13:31:26 aaa ntpdate[3301]: ntpdate 4.1.71-a Mon Jan 6 15:18:12 GMT 2003 (1)
Jan 8 13:31:31 aaa ntpdate[3301]: step time server 131.188.3.220 offset 3.600378 sec
Jan 8 13:31:31 aaa ntpd[32631]: ntpd 4.1.71-a Mon Jan 6 15:18:07 GMT 2003 (1)
Jan 8 13:31:31 aaa ntpd[32631]: kernel time discipline status 0040

/var/log/ntpd.log

8 Jan 13:30:11 ntpd[20325]: ntpd exiting on signal 15
8 Jan 13:31:31 ntpd[32631]: frequency initialized -111.646 from /etc/ntp.drift

# ps -aux | grep ntp
root 32631 0.0 0.6 672 992 ?? Ss 1:31PM 0:00.07 /usr/local/sbin/ntpd -p /var/run/ntpd.pid

KrUsTy!
January 8th, 2003, 12:31
Well, the 2 differences between yours and my setup is that you don't have an enable line in your ntp.conf, and I don't have any of the restrict lines in my conf. I am able to sync all sorts of clients with my setup of ntpd, Mac OS X, WinXP, other BSDs (Free and Open clients).

So here is what my ntp.conf file looks like;

######
enable ntp
driftfile /var/db/ntp.drift
pidfile /var/run/ntpd.pid

server time.nrc.ca
server ntp1.cmc.ec.gc.ca
#######

I have put my driftfile in another place, but that should not make a diferrence. I would also comment out the restrict lines and see if you can get it working without those and then put them back in when you have it working. If it stops then you know its something with those lines. Not sure why you would want to restrict localhost....

Hope this helps!

{K}