From owner-freebsd-stable@FreeBSD.ORG Sun Feb 22 23:52:46 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C11116A4CE for ; Sun, 22 Feb 2004 23:52:46 -0800 (PST) Received: from zibbi.icomtek.csir.co.za (zibbi.icomtek.csir.co.za [146.64.24.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAAA843D1D for ; Sun, 22 Feb 2004 23:52:44 -0800 (PST) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: from zibbi.icomtek.csir.co.za (localhost [127.0.0.1]) i1N7qeiE042317; Mon, 23 Feb 2004 09:52:40 +0200 (SAST) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: (from jhay@localhost)i1N7qd2Q042316; Mon, 23 Feb 2004 09:52:39 +0200 (SAST) (envelope-from jhay) Date: Mon, 23 Feb 2004 09:52:39 +0200 From: John Hay To: babjak@neuron-ai.fei.tuke.sk Message-ID: <20040223075239.GA41617@zibbi.icomtek.csir.co.za> References: <20040223071023.GA4145@hilbert.chtf.stuba.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040223071023.GA4145@hilbert.chtf.stuba.sk> User-Agent: Mutt/1.4.1i cc: freebsd-stable@freebsd.org Subject: Re: problems with ntpd configuration X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 07:52:46 -0000 You might get better results to you ntp questions on the ntp news group: comp.protocols.time.ntp > I have a problem to configure properly a ntpd server for local network. I > followed a handbook example, but maybe I didn't understand something well. My > aim is to configure a ntpd server, allow to synchronize computers from local > network according to this server and hide mentioned ntpd server for all > computers out of local network. Start by removing all the restrict lines, then if it works, you know that you have the basic setup right. > Its IP is 147.175.67.128, network is class B: 147.175.0.0 with netmask > 255.255.0.0. My ntp.conf: > > server public.stratum2.server1 > server public.stratum2.server2 > server public.stratum2.server3 > driftfile /var/db/ntp.drift > # default to ignore > restrict default ignore > # allow my net to configure, byt not act my setting (according to handbook): > restrict 147.175.0.0 mask 255.255.0.0 notrust nomodify notrap You should also add restrict lines, with less restriction than the default, for the servers you use. Just adding a server line does not un-restrict it automatically. > Server synchronize itself well, but when I try query from 147.175.64.41, i > obtain: Are you really sure about this? Does a "ntpq -c rv" show the stratum as below 15? > > ntpdate -vq 147.175.67.128 > 23 Feb 07:54:52 ntpdate[6145]: ntpdate 4.1.0-a Fri Feb 6 09:54:31 CET 2004 (1) > server 147.175.67.128, stratum 16, offset 0.301619, delay 0.02689 > 23 Feb 07:54:52 ntpdate[6145]: no server suitable for synchronization found This looks like your server is not synchronized. Stratum 16 means not synced. John -- John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org