Subject: Re: how to make ntpd listen only on ipv4
To: Brian A. Seklecki <lavalamp@spiritual-machines.org>
From: Bill Stouder-Studenmund <wrstuden@netbsd.org>
List: netbsd-users
Date: 10/03/2007 17:34:50
--cWoXeonUoKmBZSoM
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
>=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,

Bill

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)

iD8DBQFHBDUpWz+3JHUci9cRAoiUAJ4wstchNtKkP5PCJHhfjoJ62dofsQCghpTi
iLOT43+zd3U55m6msiUMz0k=
=fCFr
-----END PGP SIGNATURE-----

--cWoXeonUoKmBZSoM--