From owner-freebsd-stable@FreeBSD.ORG Mon Jul 23 14:39:40 2007 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3FE4316A41F for ; Mon, 23 Jul 2007 14:39:40 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.freebsd.org (Postfix) with ESMTP id E1E0713C458 for ; Mon, 23 Jul 2007 14:39:39 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from thor.farley.org (thor.farley.org [192.168.1.5]) by mail.farley.org (8.14.1/8.14.1) with ESMTP id l6NEdXvc073433; Mon, 23 Jul 2007 09:39:33 -0500 (CDT) (envelope-from scf@FreeBSD.org) Date: Mon, 23 Jul 2007 09:39:32 -0500 (CDT) From: "Sean C. Farley" To: Matthew Seaman In-Reply-To: <46A46C27.6050703@infracaninophile.co.uk> Message-ID: <20070723093201.W9030@thor.farley.org> References: <469F9A85.4090209@gmx.de> <20070719192749.GG1141@turion.vk2pj.dyndns.org> <46A453A4.90008@gmx.de> <46A46C27.6050703@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.1 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on mail.farley.org Cc: "\[LoN\]Kamikaze" , freebsd-stable@FreeBSD.org Subject: Re: ntpd just sits there and does nothing X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 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 Jul 2007 14:39:40 -0000 On Mon, 23 Jul 2007, Matthew Seaman wrote: > [LoN]Kamikaze wrote: >> My original intention was just to say that openntpd works just out of >> the box, while ntpd doesn't. And since openntpd works fine for me, I >> am not really interested in resolving this. Anyway since so many of >> you seem to be, here is the requested data: >> >>> ntp.conf >> >> server 0.de.pool.ntp.org minpoll 4 maxpoll 8 >> server 1.de.pool.ntp.org minpoll 4 maxpoll 8 >> server 2.de.pool.ntp.org minpoll 4 maxpoll 8 >> server ntp1.rz.uni-karlsruhe.de minpoll 4 maxpoll 8 >> server ntp2.rz.uni-karlsruhe.de minpoll 4 maxpoll 8 >> server ntp3.rz.uni-karlsruhe.de minpoll 4 maxpoll 8 >> server ntp4.rz.uni-karlsruhe.de minpoll 4 maxpoll 8 >> >> restrict default ignore >> restrict 127.0.0.1 > > Err.. your configuration says "ignore all NTP servers except > localhost". You would need to let ntpd accept a time service from > all those machines you've told it are servers. Since you're using > pool.ntp.org, you're going to need a blanket 'allow any server' > config like: > > restrict default nomodify nopeer noquery > restrict 127.0.0.1 Do you actually need to open it up that way? I have this on my server which seems to work: server 0.us.pool.ntp.org server 1.us.pool.ntp.org server 2.us.pool.ntp.org server 3.us.pool.ntp.org restrict default ignore restrict 0.us.pool.ntp.org nomodify nopeer noquery notrap restrict 1.us.pool.ntp.org nomodify nopeer noquery notrap restrict 2.us.pool.ntp.org nomodify nopeer noquery notrap restrict 3.us.pool.ntp.org nomodify nopeer noquery notrap restrict AAA.BBB.CCC.0 mask 255.255.255.0 nomodify nopeer notrap restrict -6 aaaa:bbbb:cccc:dddd:eeee:: mask ffff:ffff:ffff:ffff:ffff: nomodify nopeer notrap restrict 127.0.0.1 restrict -6 ::1 # ntpdc -c peers remote local st poll reach delay offset disp ======================================================================= = AAA.BBB.CCC.DDD 3 1024 377 0.03639 0.014113 0.01482 *tock.jrc.us AAA.BBB.CCC.DDD 2 1024 377 0.05907 0.000169 0.01485 =nubtail.allbook AAA.BBB.CCC.DDD 3 1024 377 0.05696 0.000660 0.01485 =cletus.pettit.o AAA.BBB.CCC.DDD 2 1024 377 0.11273 -0.004489 0.01482 Sean -- scf@FreeBSD.org