Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Nov 2002 11:40:05 -0800 (PST)
From:      marius@alchemy.franken.de
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: i386/39327: bind ntpd to only one IP
Message-ID:  <200211071940.gA7Je5AH068132@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/39327; it has been noted by GNATS.

From: marius@alchemy.franken.de
To: Dmitry Morozovsky <marck@rinet.ru>
Cc: fbsd@koethe.net, "."@babolo.ru, dougb@FreeBSD.org,
	freebsd-gnats-submit@FreeBSD.org, roberto@keltia.freenix.fr
Subject: Re: i386/39327: bind ntpd to only one IP
Date: Thu, 7 Nov 2002 20:34:37 +0100

 On Thu, Nov 07, 2002 at 08:55:47PM +0300, Dmitry Morozovsky wrote:
 > Actually, your patch works if and only if alias addresses are in the same
 > subnet as main address, which is not always true.
 > 
 > For example, our typical jail scheme is as follows:
 > 
 > ifconfig_xx0="A.B.C.D ..."
 > 
 > xx0_alias0="A.B.X.0 netmask 0xffffffff"
 > xx0_alias1="A.B.X.1 netmask 0xffffffff"
 > xx0_alias2="A.B.X.2 netmask 0xffffffff"
 > ...
 > 
 > where A.B.X.0/28 is aliases via 16 /32s to A.B.C.D, which is on colocation
 > segment.
 > 
 > Moreover, I can easily imagine scheme where there would me more than one
 > subnet attached to the same physical interface, which renders your approach
 > even less useable.
 > 
 > I think we need somewhat more generic solution...
 > 
 
 [Added Ollivier Robert to CC: as he seems to maintain ntp on FreeBSD.]
 
 Well, my primary concern was consistent behaviour with what ntpd does
 on BSD/OS, NetBSD and OpenBSD and that code will also fail (i.e. bind
 to one ip-address per subnet) if there are multiple ("real") subnets
 configured on the same interface. I'm not sure what the right thing to
 do is as ntpd behaves differently and has different options on dirrent
 operating-systems, e.g. the manpage lists "-L Listen to virtual IPs."
 (with the implicit default of binding to only one ip-address) which
 only works on Windows if I remember the source correct.
 Changing ntpd to behave the same way regarding alias addresses on
 FreeBSD like on the other BSDs and adding an option to bind only to
 a specified ip-address really are orthogonal but the former should
 already catch several (most ?) cases the second would be good for.
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211071940.gA7Je5AH068132>