From owner-freebsd-hackers Wed Dec 4 2: 6:49 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B309237B401; Wed, 4 Dec 2002 02:06:47 -0800 (PST) Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 50C7F43EAF; Wed, 4 Dec 2002 02:06:47 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0040.cvx40-bradley.dialup.earthlink.net ([216.244.42.40] helo=mindspring.com) by falcon.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 18JWQM-0001Fv-00; Wed, 04 Dec 2002 02:06:35 -0800 Message-ID: <3DEDD35B.A1E7638E@mindspring.com> Date: Wed, 04 Dec 2002 02:05:15 -0800 From: Terry Lambert Reply-To: net@freebsd.org X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Tony Finch Cc: wacky@ns1.vrx.net, hackers@freebsd.org, net@freebsd.org Subject: Re: jail: multiple ip's References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Note: Cross-post and "Reply-To:" of freebsd-net! Tony Finch wrote: > wacky@ns1.vrx.net (Mike Ghunt) wrote: > > Has anyone hacked the jail code to support more than one ip? > >Would it be wise to hack at the code to add such a feature? > > Probably the best way to address this issue is to incorporate the > network stack virtualization patch, then change the jail ID from > an IPv4 address into a network stack ID. I'm really tempted to say that the network virtualization patch is special purpose, and introduces a lot of overhead that would not be there without the network virtualization patch. It's the type of thing, IMO, that should be possible for an experimenter, but not integrated into the FreeBSD kernel itself. I'm also alarmed at the mbuf header bloat, in general, for some very specific and not very common uses, including the pushing up of the full Ethernet packet. The only use I can see for that particular trick is supporting VIPs on cards in promiscuous mode, which normally would not support VIPs (e.g. the Intele Gigabit ethernet car supports 16 of them) and did not support abusing the multicast mask to obtain VIPs (e.g. the FXP driver method). Finally, with the integration of the IPSEC stuff from OpenBSD that Sam Leffler has been doing, I worry that the IPSEC implementation is not going to be fixed. Specifically, the IPSEC data is cloned per socket opened in IPv4, if IPSEC is in the kernel at all, and it bloats the per connection memory cost considerably, even if the IPSEC is never used, or the security association never varies from the default. It's all well and good to have an IPSEC axe to grind (8-)) relative to the SSL stuff, but it's not a good idea to grind it against people's memory footprint unnecessarily. Note that Sam did not introduce this problem, KAME did, with the poor IPSEC integration into IPv4 (it looks very much like an afterthought), but his addition to the code perpetuates it. There are some things it's important to integrate/fix so that they are always there, there are some things which should be optioned, and there are some things which should remain in academia, until they are standardized, forcing them on everyone. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message