From owner-freebsd-jail@FreeBSD.ORG Fri Nov 21 20:49:00 2008 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F6E61065673 for ; Fri, 21 Nov 2008 20:49:00 +0000 (UTC) (envelope-from ru@freebsd.org) Received: from mail.vega.ru (infra.dev.vega.ru [90.156.167.14]) by mx1.freebsd.org (Postfix) with ESMTP id F0F9C8FC13 for ; Fri, 21 Nov 2008 20:48:59 +0000 (UTC) (envelope-from ru@freebsd.org) Received: from gw1.masterhost.ru ([87.242.97.4]:63400 helo=edoofus.dev.vega.ru) by mail.vega.ru with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1L3cY6-0009TU-CD; Fri, 21 Nov 2008 23:24:18 +0300 Date: Fri, 21 Nov 2008 23:23:17 +0300 From: Ruslan Ermilov To: "Bjoern A. Zeeb" Message-ID: <20081121202316.GB28339@edoofus.dev.vega.ru> References: <20081116101126.T61259@maildrop.int.zabbadoz.net> <20081116135929.S61259@maildrop.int.zabbadoz.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081116135929.S61259@maildrop.int.zabbadoz.net> Cc: freebsd-jail@freebsd.org, Ruben van Staveren Subject: Re: can jail use 2 NICS? X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2008 20:49:00 -0000 Hi, Have been traveling, hence long "no reply"... On Sun, Nov 16, 2008 at 02:10:35PM +0000, Bjoern A. Zeeb wrote: > So the basic idea could be to only have > jail__ip="" > jail__ip6="" > > and each of them would have a format like: > > [iface|]address[/prefix] I'd suggest [iface:] instead. > where iface and prefix are optional and prefix only makes sense if > iface is given? > > If iface is given it means configure the address with prefix to the > given interface; if prefix is not given the default would be /32 for > ipv4 and /128 for ipv6. > > So now this would give really long and complicated lines in rc.conf. > Do you think we could have something like the _alias for interface > addresses so that it would be like: > > jail__ip="" # default > jail__ip_multi0="" # second IP of the jail > jail__ip_multi1="" # third IP of the jail > jail__ip_multi2="" # 4th IP of the jail > > and similar for IPv6? > > (multi might not be the best suffix) > > Something along those lines? > > Ruslan, what do you think about something like that? We could have > that for HEAD and 7 just now and add the _multi support with the > multi-IP jail patches? Could you and Ruben work together to build > this? > I think this is a good idea. My workaround with routes I mentioned doesn't actually work, so currently we use a version from HEAD on our production servers, and the modified version of ezjail port that supports netmasks. Cheers, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer