From owner-freebsd-jail@FreeBSD.ORG Wed Jan 28 01:09:21 2009 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 9D42E106566B for ; Wed, 28 Jan 2009 01:09:21 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id 306698FC17 for ; Wed, 28 Jan 2009 01:09:21 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by fg-out-1718.google.com with SMTP id e12so303748fga.35 for ; Tue, 27 Jan 2009 17:09:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=T0/nyp0/7GP0sg08PUzZAwYseJBzNZpA4F+WtCjns5E=; b=a7TwbX7Fc/tNdZz0es2mYBg7IH15pP8dgrYGYn76QsXkyVTPG6PfGb5QCANY5WXHyN u8pkCiCGRUJpXnoJcycws8kUaDfigID37KTdVi7JVOu1XQU0XZX7ED6SfBiD22j846Rs X7RQS2oRQKNXKHukj/Racc5H+WWtQLZW+CY94= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=WKJ6zjwzjtbOjca7lKj6c2xcEIatXlelxYTktEBkPRLIh9qLW/gDvuA3nHV1CyHE/6 90P6XprK8POWkizL8RbGCXAXSm8z85A6DbzZLQXy7pmHk07VEgDuTzKmEABk/7BMhepD kU5trtqsfcA1Y2pYHAckpuhaDL9ecdFgq1IDw= MIME-Version: 1.0 Received: by 10.223.115.16 with SMTP id g16mr52848faq.93.1233103221171; Tue, 27 Jan 2009 16:40:21 -0800 (PST) In-Reply-To: References: Date: Tue, 27 Jan 2009 19:40:21 -0500 Message-ID: <4ad871310901271640u54c59366g7bb295a35e911d3f@mail.gmail.com> From: Glen Barber To: Kage Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-jail@freebsd.org Subject: Re: Multi-IP Jails (7.1-REL) 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: Wed, 28 Jan 2009 01:09:21 -0000 On Tue, Jan 27, 2009 at 7:09 PM, Kage wrote: > Hey, > > I need a solution for making jails use multiple IPs, be it a > /stable/, good patch, or a hacked solution via ipfw (preferred), or > pf. The one stipulation is that the jails must be able to connect > out, and MUST connect out via one of the IPs assigned to that jail. > Can anyone help me please? Thanks. > You could use pf to redirect aliased ip addresses (in the host's rc.conf) to specific jails, but this more of a hack than what you're looking for, I'm sure. Either way, it'll work. -- Glen Barber