NTPD connection refused & ntp keygen

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

NTPD connection refused & ntp keygen

Chris-439
I am running OpenNTPD in OpenBSD 3.8 and /var/log/daemon shows it is
working fine -

peer <IP> now valid
adjusting local clock by -0.434343
clock is now synced

But if I run ntpq -p (as root) it says

ntpp:read:Connection refused

lsof -i | grep ntpd shows ntpd is listening from local IP port 4345 to
remote IP port NTP and using UDP.

I have configured 2 files

[1] /etc/ntpd.conf

here I bind ntp to local IP address
and connect to the nearest NTP server.

[2] /etc/rc.conf

here I set the flag to "" for ntp to start during boot time.

I read the /usr/local/share/example/ntp/README.OpenBSD and did all the
configurations accordingly; since they are not working I have
commented out step 2(a), (b) and (c).

Also, I would like to generate keys (/usr/local/sbin/ntp-genkey), put
them in the conf file and encrypt the traffic. But I couldn't find any
documentat or manpage to tell me how to do that.
Running ntp-genkey usually creates 2 keys (RSA and MD5) in the home
directory and symlink them to another 2 files.

Any pointers?

Thanks in advaance for any help.

Reply | Threaded
Open this post in threaded view
|

Re: NTPD connection refused & ntp keygen

Lars Hansson
On Sat, 28 Jan 2006 21:29:12 +1100
atstake atstake <[hidden email]> wrote:

> But if I run ntpq -p (as root) it says

ntpq is not from OpenNTPD, it's from ntp.org's ntpd.

> I read the /usr/local/share/example/ntp/README.OpenBSD and did all the

Uh, this is not for OpenNTPD but for ntp.org's ntpd.

> Also, I would like to generate keys (/usr/local/sbin/ntp-genkey), put
> them in the conf file and encrypt the traffic. But I couldn't find any
> documentat or manpage to tell me how to do that.

OpenNTPD does not support keys.

> Any pointers?

Yes, dont mix ntpd (from ntp.org) and OpenNTPD.

---
Lars Hansson

Reply | Threaded
Open this post in threaded view
|

Re: NTPD connection refused & ntp keygen

Rod.. Whitworth
In reply to this post by Chris-439
On Sat, 28 Jan 2006 21:29:12 +1100, atstake atstake wrote:

>I am running OpenNTPD in OpenBSD 3.8 and /var/log/daemon shows it is
>working fine -
>
>peer <IP> now valid
>adjusting local clock by -0.434343
>clock is now synced
>
>But if I run ntpq -p (as root) it says

ntpq? Where did you get that?

>
>ntpp:read:Connection refused

ntpp? Is that ntpq being funny?

You don't seem to be running the same OpenBSD that I have but then you
didn't tell us the whole story, so I have to guess. Whoops! ESP failed!
segfault.

>
>lsof -i | grep ntpd shows ntpd is listening from local IP port 4345 to
>remote IP port NTP and using UDP.
>
>I have configured 2 files
>
>[1] /etc/ntpd.conf
>
>here I bind ntp to local IP address
>and connect to the nearest NTP server.
>
>[2] /etc/rc.conf
>
>here I set the flag to "" for ntp to start during boot time.
>
>I read the /usr/local/share/example/ntp/README.OpenBSD and did all the
>configurations accordingly; since they are not working I have
>commented out step 2(a), (b) and (c).
>
>Also, I would like to generate keys (/usr/local/sbin/ntp-genkey), put
>them in the conf file and encrypt the traffic. But I couldn't find any
>documentat or manpage to tell me how to do that.
>Running ntp-genkey usually creates 2 keys (RSA and MD5) in the home
>directory and symlink them to another 2 files.
>
>Any pointers?
>
>Thanks in advaance for any help.
>
>

From the land "down under": Australia.
Do we look <umop apisdn> from up over?

Do NOT CC me - I am subscribed to the list.
Replies to the sender address will fail except from the list-server.