Date: Mon, 19 Aug 2002 16:43:56 +0300 From: "Ivailo Tanusheff" <i.tanusheff@procreditbank.com> To: "'Roman Neuhauser'" <neuhauser@bellavista.cz> Cc: <freebsd-questions@FreeBSD.ORG> Subject: RE: running my own local time server Message-ID: <005a01c24786$76c29a90$cbf810ac@sof.procreditbank.bg> In-Reply-To: <20020819120940.GW389@freepuppy.bellavista.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
Install and run ntp (/usr/ports/net/ntp).
Then edit /etc/ntp.conf , mine is:
server ntp2.usno.navy.mil
server tock.usno.navy.mil
server tick.usno.navy.mil
server ntp.colby.edu
server navobs1.oar.net
server gnomon.cc.columbia.edu
server tick.gatech.edu
server ntp0.mcs.anl.gov
driftfile /var/db/ntp.drift
restrict default notrust nomodify
restrict 127.0.0.1
restrict <net number> mask <net mask>
NB: Correct net number and net mask with yours!
Start your ntpd daemon in startup scripts, per example:
/usr/local/etc/rc.d/ntpd.sh
#!/bin/sh
case "x$1" in
x)
xstart)
/usr/sbin/ntpd -p /var/run/ntpd.pid
;;
xstop)
/bin/kill -9 `/bin/cat /var/run/ntpd.pid`
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
Your clients may use /usr/sbin/ntpdate -b -p 8 -u -s <server ip>
To sync with your local time server.
Regards,
Ivailo Tanusheff
System administrator and Security advisor
ProCredit Bank, Bulgaria
-----Original Message-----
From: owner-freebsd-questions@FreeBSD.ORG
[mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of Roman
Neuhauser
Sent: Monday, August 19, 2002 3:10 PM
To: Michael A. Smith
Cc: freebsd-questions@FreeBSD.ORG
Subject: Re: running my own local time server
> Date: Mon, 19 Aug 2002 07:45:29 -0400
> From: "Michael A. Smith" <msmith@code-fu.com>
> To: freebsd-questions@FreeBSD.ORG
> Subject: running my own local time server
>
> There was a good thread a few days ago about using ntpd/ntpdate to
sync
> a machine to a public timeserver. I've got a number of machines and
> don't want to flood public timeservers with requests (even Stratum 2
> servers). I'd rather sync just ONE machine and sync all my other
> machines to it.
>
> Checking /etc/defaults/rc.conf and "man timed", I've found out a
little
> about timed. My question is this: Are timed and ntpd compatible? Can I
> use ntpd (which I know how to use and like) to sync to a machine
running
> timed? If not, can I run a NTP server? (maybe there's a port I don't
> know about)
>
> A quick look through the man pages makes me think that this will not
> work, that timed and ntpd are different beasts.
set one machine to sync from outside stratum 2 servers, and the rest
of your network to sync from that machine. you'll be running ntpd
everywhere.
see /usr/share/doc/ntp/ and http://www.ntp.org/
--
FreeBSD 4.6-STABLE
2:08PM up 10 days, 2:02, 20 users, load averages: 0.07, 0.03, 0.01
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?005a01c24786$76c29a90$cbf810ac>
