Subject: Re: how to make ntpd listen only on ipv4
To: Brian A. Seklecki <>
From: Bill Stouder-Studenmund <>
List: netbsd-users
Date: 10/03/2007 17:34:50
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Oct 02, 2007 at 09:52:11PM -0400, Brian A. Seklecki wrote:
> On Sun, 2007-09-30 at 14:21 +0200, Zafer Aydogan wrote:
> > hello list,
> >=20
> > Giving -4 only affects name resolution and passing -I iface does use
> > ipv6 anyway on the given interface and on lo0.
> >=20
> Z:  Isn't there a syctl? net.inet6.bindv6only etc.?

If you look at the log, such a thing wouldn't help.

> > $ sockstat -l
> > root     ntpd       22109 20 udp    *.ntp                 *.*
> > root     ntpd       22109 21 udp6   *.ntp                 *.*

There are two separate sockets, a v4-only one and a v6-only one. Thus=20
something trying to keep v6 sticking to v6 won't work so well.

What needs to happen is for ntpd to not bind to all addresses.

Take care,


Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.4.7 (NetBSD)