ntpd just sits there and does nothing
Sean C. Farley
scf at FreeBSD.org
Mon Jul 23 14:39:40 UTC 2007
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 at FreeBSD.org
More information about the freebsd-stable
mailing list