From owner-freebsd-questions Mon Aug 19 7: 8:30 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CDE837B400 for ; Mon, 19 Aug 2002 07:08:25 -0700 (PDT) Received: from chicken.orbitel.bg (chicken100.orbitel.bg [195.24.32.21]) by mx1.FreeBSD.org (Postfix) with SMTP id B348F43E72 for ; Mon, 19 Aug 2002 07:08:23 -0700 (PDT) (envelope-from i.tanusheff@procreditbank.com) Received: (qmail 21123 invoked from network); 19 Aug 2002 14:08:20 -0000 Received: from unknown (HELO procreditbank.com) (212.95.171.143) by chicken.orbitel.bg with SMTP; 19 Aug 2002 14:08:20 -0000 Received: from itaush [172.16.248.203] by Proxy+; Mon, 19 Aug 2002 16:43:56 +0300 for multiple recipients From: "Ivailo Tanusheff" To: "'Roman Neuhauser'" Cc: Subject: RE: running my own local time server Date: Mon, 19 Aug 2002 16:43:56 +0300 Message-ID: <005a01c24786$76c29a90$cbf810ac@sof.procreditbank.bg> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <20020819120940.GW389@freepuppy.bellavista.cz> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 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 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" > 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