I spent several hours trying to get broadcast NTP to work properly
with authentication enabled using private keys. I was also seeing
'Transmit: no encryption key found', and despite reading the included
documentation, the ntp online web documentation, and the source
code, the answer did not leap out at me.
I am posting here in case other people having the same problem do
a web search as I did and hopefully find this information useful.
For both 'broadcast' (broadcast server) and 'broadcastclient', I
had to also include 'trustedkey N' in my config for private key
authentication to work. Of course, the same key text must be present on
both the client and server, plus the 'broadcast' statement on the
server must say which specific key to use. Yes, the documentation
implicitly explains that trustedkey is needed for a key to be valid,
but there is no private key broadcastclient example to show simply that
trustedkey is needed in that case, so it took me a while to connect the
dots. The autokey scheme definitely appears superior, and I would use
it if I had rsaref installed. So my server ntp.conf contains:
server server1.xyz.com iburst
server server2.abc.edu iburst
requestkey 15
controlkey 15
trustedkey 1 2 15
keys /etc/ntp.keys
broadcast 192.168.255.255 key 1
driftfile /etc/ntp.drift
and /etc/ntp.keys contains only MD5 keys that were generated by
ntp-genkeys. A client configuration contains:
broadcastclient
keys /etc/ntp.keys
trustedkey 1 2 15
driftfile /etc/ntp.drift
and /etc/ntp.keys on the client is a duplicate of the server copy.
I was previously running with authentication disabled, but I do not
want remote ntpq or ntpdc clients to alter any of my server settings,
and wasn't sure if I would be protected from that when invoking ntpd
with the -A option. Turning on authentication caused regular time
synchronization to cease until I changed my configs as above.
Many thanks to David Mills for all his work on NTP!
-Marc
------------------------------------------------------------------------
On Mon Aug 4 14:37:38 UTC 2003, David Mills wrote:
> Bernhard,
>
> As you will see in the documentation, the pps and authenticate statments
> are deprecated. The best way to debug things like this is using the
> debug trace.
>
> Folks bitch at me about the volume of icky detail in the NTPv4
> documentation pages. Those pages are intended primarily as reference
> documentation and somebody else gets to write the touchy feely faq. But,
> it's all there in the authentication options page and ntp_keygen program
> manual page. I just checked carefull that the specific questions you
> raise are in fact prominent in the prose, although you do have to slog
> through a couple of dreary background before getting to the answers.
> That's done on purpose.
>
> Be careful to use the latest NTP version. I'm completely confused as to
> the state of the release and development versions now at www.ntp.org, as
> the release version is later than the development version.
>
> Dave
>
> Bernhard Dobbels wrote:
>
> > I have two stratum 1 servers and 10 stratum 2 servers. There should
> > exist authentication between the peers and also between the stratum 2
> > and 1 servers.
> >
> > I'll start with using MD5, but in the end would like to use Autokey
> > protocol.
> >
> > I always get the error 'Transmit: no encryption key found', while
> > updates with ntpdate and encryption do work.
|
|
0
|
|
|
|
Reply
|
mafn
|
1/1/2004 7:42:03 PM |
|
mafn@enginet.com (Marc) wrote in message news:<mailman.17.1072986139.1757.questions@ntp.org>...
> I spent several hours trying to get broadcast NTP to work properly
> with authentication enabled using private keys. I was also seeing
> 'Transmit: no encryption key found', and despite reading the included
> documentation, the ntp online web documentation, and the source
> code, the answer did not leap out at me.
>
> I am posting here in case other people having the same problem do
> a web search as I did and hopefully find this information useful.
>
> For both 'broadcast' (broadcast server) and 'broadcastclient', I
> had to also include 'trustedkey N' in my config for private key
> authentication to work. Of course, the same key text must be present on
> both the client and server, plus the 'broadcast' statement on the
> server must say which specific key to use. Yes, the documentation
> implicitly explains that trustedkey is needed for a key to be valid,
> but there is no private key broadcastclient example to show simply that
> trustedkey is needed in that case, so it took me a while to connect the
> dots. The autokey scheme definitely appears superior, and I would use
> it if I had rsaref installed. So my server ntp.conf contains:
>
> server server1.xyz.com iburst
> server server2.abc.edu iburst
> requestkey 15
> controlkey 15
> trustedkey 1 2 15
> keys /etc/ntp.keys
> broadcast 192.168.255.255 key 1
> driftfile /etc/ntp.drift
>
> and /etc/ntp.keys contains only MD5 keys that were generated by
> ntp-genkeys. A client configuration contains:
>
> broadcastclient
> keys /etc/ntp.keys
> trustedkey 1 2 15
> driftfile /etc/ntp.drift
>
> and /etc/ntp.keys on the client is a duplicate of the server copy.
>
> I was previously running with authentication disabled, but I do not
> want remote ntpq or ntpdc clients to alter any of my server settings,
> and wasn't sure if I would be protected from that when invoking ntpd
> with the -A option. Turning on authentication caused regular time
> synchronization to cease until I changed my configs as above.
>
> Many thanks to David Mills for all his work on NTP!
>
> -Marc
Broadcast client was broken in 4.2.0 for some systems, particularly Solaris,
if it had IPv6 capability. I just fixed it. If that's what you are running
you will need to wait for the fix. If not, make sure that the client is
receiving the broadcast packets.
Danny
|
|
0
|
|
|
|
Reply
|
mayer
|
1/2/2004 2:30:17 PM
|
|
Marc,
Please consider adding this info to twiki.ntp.org so it can be more
easily found and maintained.
H
|
|
0
|
|
|
|
Reply
|
stenn
|
1/2/2004 10:11:13 PM
|
|
|
2 Replies
127 Views
(page loaded in 0.038 seconds)
Similiar Articles: Hardware SNTP server - comp.protocols.time.ntp... completely > destroy the NTP protocol itself. Even if they're ... 99% of the users of NTP are not using authentication ... Describes the Simple Network Time Protocol ... Test ntpd performance - comp.protocols.time.ntp... bad length or format: 16152355 authentication ... 2000pps, which ntpd will have no problems handling. For a more normal case, the NTP ... Re:NTP Performance - comp.protocols ... Time sync with milliseconds with Windows XP - comp.protocols.time ...... sync them, then they're going to have the same problems ... that by using "real" NTP on the box, but you can't get around the OS issues ... Kerberos V5 authentication, and ... ntpd, boot time, and hot plugging - comp.protocols.time.ntp ...... for the reasons I've previously given you, not to mention the issues that ... bit more work before it sets the clock > and 'ntpd -gq' can use NTP authentication. You're ... Insertion of a leap second for test purposes - comp.protocols.time ...This has failed because of authentication problems (which I have not yet overcome ... Change Improvements - comp.protocols.time ..... moment we're making our tests with NTP ... basic questions about the leapsecond - comp.protocols.time.ntp ...... To: questions@lists.ntp.org Subject: Re ... if I have similar problems to last time! >> >> http://www.satsignal.eu/ntp ... comp.protocols.time.ntp ... From Basic Authentication ... Bad File Descriptor - comp.protocols.time.ntpHello, I'm having an issue with ntp 4.2.0-a on ... amount of time learning about cross-platform issues ... But too late to be included in the message authentication code ... JAAS and user specific access to external system functionality ...My Java app has its own authentication scheme that uses JAAS. ... each external system, but there are a couple of issues ... time, and hot plugging - comp.protocols.time.ntp ... ulimit does not work correctly on remote ssh - comp.os.linux.misc ...Now all the bad guy has to > guess is the authentication token ... needed for ntpd ipv6 setup - comp.protocols.time.ntp ..... ... Re: ulimit change still does not persist across ... 9. Troubleshooting NTP - ntp.org: Home of the Network Time ProtocolTroubleshooting NTP . First things ... etc/ntp.conf file, and then they find that they can't talk to anyone. If you're having problems with your ... configuring NTP Authentication Secure NTP Template - Team Cymru - Internet Security Research and ...The Network Time Protocol (NTP) is the de ... that you create an 'ntp authentication-key' for each peer/server. The key can be re-used ... to monitor or debug NTP issues on ... 7/15/2012 5:59:57 AM
|