[ntp:questions] Re: MD5

Danny Mayer mayer at gis.net
Fri Sep 30 03:21:41 UTC 2005


Ronan Flood wrote:
> "DJ" <drnj at freemail.redherring.co.uk> wrote:
> 
> 
>>I have a stratum 3 server (serverA) and another server (serverB) which
>>I want to be stratum 4 i.e. serverB has the line
>>
>>server serverA
>>
>>in its ntp.conf
>>
>>Now I have generated an ntp.keys file using ntp-genkeys (ntp-keygen)
>>which contains 8 MD5 keys
>>
>>on ServerA
>>
>>keys /etc/ntp.keys
>>trustedkey 1 2 3 4 5
>>
>>on ServerB
>>
>>server serverA key 2
>>
>>keys /etc/ntp.keys
>>trustedkey 1 2 3 4 5
>>
>>
>>Now running ntpd in debug mode on ServerA and ServerB (ntpd -D3 -n) I
>>can see the traffic from ServerA to ServerB. ServerB includes Key 2
>>with    its requests to ServerA. ServerA responds with key 0...
>>
>>How do I configure serverA to use, say, Key 2, or key 3 when talking to
>>a client (i.e higher stratum server) ????
> 
> 
> It should automatically reply using the same key as the client used,
> unless it's not happy about something.  Someone else had a similar
> problem recently which turned out to be an extraneous carriage-return
> in the ntp.keys file transferred from Windows to Unix!
> 

I believe Heiko has submitted a fix for the extaneous EOL characters. I 
don't know if it's been added to the development pool.

Danny
> What version of ntpd are you using, on what OS(es) ?
> 





More information about the questions mailing list