Subject: Re: how to make ntpd listen only on ipv4
To: Zafer Aydogan <zafer@aydogan.de>
From: Brian A. Seklecki <lavalamp@spiritual-machines.org>
List: netbsd-users
Date: 10/02/2007 21:52:11
On Sun, 2007-09-30 at 14:21 +0200, Zafer Aydogan wrote:
> hello list,
> 
> Giving -4 only affects name resolution and passing -I iface does use
> ipv6 anyway on the given interface and on lo0.
> 

Z:  Isn't there a syctl? net.inet6.bindv6only etc.?

~BAS

> My Log:
> 
> Sep 30 14:06:04 pembe ntpd[14520]: ntpd 4.2.4-o Sat Apr 28 14:18:06 UTC 2007 (1)
> Sep 30 14:06:04 pembe ntpd[22109]: precision = 2.514 usec
> Sep 30 14:06:04 pembe ntpd[22109]: Listening on interface #0 wildcard,
> 0.0.0.0#123 Disabled
> Sep 30 14:06:04 pembe ntpd[22109]: Listening on interface #1 wildcard,
> ::#123 Disabled
> Sep 30 14:06:04 pembe ntpd[22109]: Listening on interface #2 fxp0,
> fe80::202:b3ff:ff14:432e#123 Enabled
> Sep 30 14:06:04 pembe ntpd[22109]: Listening on interface #3 fxp0,
> 162.115.163.100#123 Enabled
> Sep 30 14:06:04 pembe ntpd[22109]: Listening on interface #4 lo0,
> 127.0.0.1#123 Enabled
> Sep 30 14:06:04 pembe ntpd[22109]: Listening on interface #5 lo0,
> ::1#123 Enabled
> Sep 30 14:06:04 pembe ntpd[22109]: Listening on interface #6 lo0,
> fe80::1#123 Enabled
> Sep 30 14:06:04 pembe ntpd[22109]: Listening on routing socket on fd
> #27 for interface updates
> Sep 30 14:06:04 pembe ntpd[22109]: kernel time sync status 2040
> Sep 30 14:06:04 pembe ntpd[22109]: frequency initialized 27.055 PPM
> from /var/db/ntp.drift
> 
> $ sockstat -l
> root     ntpd       22109 20 udp    *.ntp                 *.*
> root     ntpd       22109 21 udp6   *.ntp                 *.*
> root     ntpd       22109 22 udp6   fe80:1::202:b3ff:ff14:432e.ntp *.*
> root     ntpd       22109 23 udp    pembe.aydogan.net.ntp *.*
> root     ntpd       22109 24 udp    localhost.ntp         *.*
> root     ntpd       22109 25 udp6   localhost.ntp         *.*
> root     ntpd       22109 26 udp6   fe80:2::1.ntp         *.*
> 
> Any ideas how to turn off ipv6 other than disabling INET6 in the kernel ?
> 
> Zafer.
> 
> 
> 
> 
> 
>