From owner-freebsd-stable@FreeBSD.ORG Fri Jul 20 10:12:58 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 2688616A41A for ; Fri, 20 Jul 2007 10:12:58 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (unknown [IPv6:2001:470:1f01:ffff::121]) by mx1.freebsd.org (Postfix) with ESMTP id 84E5713C458 for ; Fri, 20 Jul 2007 10:12:57 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from prawn.unsane.co.uk (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id l6KABuuM023551 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 20 Jul 2007 11:11:57 +0100 (BST) (envelope-from jhary@unsane.co.uk) Message-ID: <46A08AA2.8090406@unsane.co.uk> Date: Fri, 20 Jul 2007 11:12:50 +0100 From: Vince User-Agent: Thunderbird 2.0.0.4 (X11/20070717) MIME-Version: 1.0 To: "[LoN]Kamikaze" References: <469F9A85.4090209@gmx.de> <469FA50E.9080705@gmx.de> <46A0662A.7060401@sun-fish.com> <46A081A1.3040003@gmx.de> In-Reply-To: <46A081A1.3040003@gmx.de> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: FreeBSD Stable , Stefan Lambrev 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: Fri, 20 Jul 2007 10:12:58 -0000 Can you send the output of ntp.conf? [LoN]Kamikaze wrote: > Stefan Lambrev wrote: >> Hi, >> >> [LoN]Kamikaze wrote: >>> Doug Hardie wrote: >>> >>>> On Jul 19, 2007, at 10:08, [LoN]Kamikaze wrote: >>>> >>>> >>>>> As the subject says, on my 6-stable systems ntpd just sits there and >>>>> does >>>>> nothing. The logs only mention when the daemon gets started or shut >>>>> down. It >>>>> complains when servers are not reachable, but does nothing when they >>>>> are available. >>>>> >>>>> The drift file always contains 0.00. >>>>> >>>>> ntpdate and openntpd both successfully manage to set the time, so I >>>>> suppose >>>>> it's a problem with ntpd. >>>>> >>>> Are you on a static IP address? If not, ntpd obtains its IP address >>>> when it starts up and uses it forever. If your IP address changes then >>>> it will not be able to communicate with the upstream ntp servers. It >>>> has to be restarted everytime your IP address changes. >>>> >>> I have a static address. The trouble is it seems to operate fine, only it >>> forgets to change the time when it differs from the time servers too >>> much. >>> Sometimes my clock goes wrong more than 1 second within a day. >>> >> ntpd will not change time if the difference is too big - I think it >> should be less then 1000s. >> ntpdate will :) >> >> Also if you have increased your kernel secure level 2+ : >> >> In addition, kernel time changes are restricted to less than or >> equal to one second. Attempts to change the time by more than >> this >> will log the message ``Time adjustment clamped to +1 second''. >> >> So grep for ntpd in /var/log/messages and I'm sure you will find the >> problem. >> >> Other problem that I see is if you are behind NAT/firewall. >> Because ntpd make a request and wait for response on different port, so >> check your firewall configuration and blocked packets. > > My securelevel is -1, even starting with an accurate clock ntpd just slowly > lets it drift away. I'm behind a 2 NATs, one of which I have no access to. > However openntpd and ntpdate don't seem to be troubled by this. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"