From owner-freebsd-jail@FreeBSD.ORG Fri Nov 21 22:40:06 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 5FC3A1065670; Fri, 21 Nov 2008 22:40:06 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [62.111.66.27]) by mx1.freebsd.org (Postfix) with ESMTP id 13BB38FC18; Fri, 21 Nov 2008 22:40:05 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from localhost (amavis.str.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 3898541C670; Fri, 21 Nov 2008 23:40:05 +0100 (CET) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([62.111.66.27]) by localhost (amavis.str.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id yjYsm6eATW-7; Fri, 21 Nov 2008 23:40:04 +0100 (CET) Received: by mail.cksoft.de (Postfix, from userid 66) id BDB3541C679; Fri, 21 Nov 2008 23:40:04 +0100 (CET) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id BA3A64448DD; Fri, 21 Nov 2008 22:37:15 +0000 (UTC) Date: Fri, 21 Nov 2008 22:37:15 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Ruslan Ermilov In-Reply-To: <20081121202316.GB28339@edoofus.dev.vega.ru> Message-ID: <20081121223541.H61259@maildrop.int.zabbadoz.net> References: <20081116101126.T61259@maildrop.int.zabbadoz.net> <20081116135929.S61259@maildrop.int.zabbadoz.net> <20081121202316.GB28339@edoofus.dev.vega.ru> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 22:40:06 -0000 On Fri, 21 Nov 2008, Ruslan Ermilov wrote: 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. be aware that : might be problematic to parse from shell with IPv6 addresses as it would either be: bge0:2001:db8::1 or just 2001:db8::1 >> 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. Sounds like a plan then. Thanks a lot. /bz -- Bjoern A. Zeeb Stop bit received. Insert coin for new game.