Mailinglist Archive: opensuse (982 mails)

< Previous Next >
Re: [opensuse] ntp default restrict options - seems to block broadcastclient ?
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Wed, 24 Sep 2014 08:41:25 +0200
  • Message-id: <lvtpr1$bu$1@saturn.local.net>
Per Jessen wrote:

John Andersen wrote:

On 9/23/2014 10:23 AM, Per Jessen wrote:
The current openSUSE packaged NTP config contains the following:

restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery

When they're enabled, ntp doesn't sync to my broadcast. Only when I
comment them out does it work.

Which one of "default kod notrap nomodify nopeer noquery" is
preventing my broadcast sync?


thanks
Per


Are you sure those are the only restrictions?
Some suggest you also need a line to allow management from locolhost
and specific server lines for it to query.

server ntp.ubuntu.com

restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery

restrict 127.0.0.1
restrict ::1
restrict <some-ip-that-y0u-trust> <-------

Right, the complete set is:

restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery

Found it -

http://datacurrent.blogspot.ch/2008/04/simple-ntp-network-time-protocol-server.html

Also you have to remove the _nopeer_ option from the default
restriction, otherwise ntpd will not open a new client connection to
the NTP server when it receives a broadcast packet.



--
Per Jessen, Zürich (15.1°C)
http://www.dns24.ch/ - your free DNS host, made in Switzerland.

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >