Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jul 2007 09:39:32 -0500 (CDT)
From:      "Sean C. Farley" <scf@FreeBSD.org>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        "\[LoN\]Kamikaze" <LoN_Kamikaze@gmx.de>, freebsd-stable@FreeBSD.org
Subject:   Re: ntpd just sits there and does nothing
Message-ID:  <20070723093201.W9030@thor.farley.org>
In-Reply-To: <46A46C27.6050703@infracaninophile.co.uk>
References:  <469F9A85.4090209@gmx.de> <20070719192749.GG1141@turion.vk2pj.dyndns.org> <46A453A4.90008@gmx.de> <46A46C27.6050703@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070723093201.W9030>