From owner-freebsd-stable Tue Jun 11 3:40:54 2002 Delivered-To: freebsd-stable@freebsd.org Received: from gs166.sp.cs.cmu.edu (GS166.SP.CS.CMU.EDU [128.2.205.169]) by hub.freebsd.org (Postfix) with SMTP id 37E8937B408 for ; Tue, 11 Jun 2002 03:40:49 -0700 (PDT) To: aaron g Cc: k.joch@kmjeuro.com, freebsd-stable@freebsd.org Subject: Re: Jail and if alias References: <20020610222302.307.qmail@operamail.com> From: Dan Pelleg Date: 11 Jun 2002 06:40:37 -0400 In-Reply-To: <20020610222302.307.qmail@operamail.com> Message-ID: Lines: 27 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "aaron g" writes: > > as far as i have found in the archives 4.x doesnt support > if alias in jails. > > is current already to be used on a production box where > > this is needed? want > > to avoid to setup 5 jails to have the needed 5 IPs? > > -- > > -- > > Best regards / Mit freundlichen Gruessen, > > > Karl M. Joch > > http://www.freebsd.at - Power Operating System > > The 4.x jailing subsystem does not support multiple IP's. > I am having the same difficulties as you and have decided > to try out -CURRENT. I'm not sure how fit it is for a > production environment but will find out soon ;) I've run into a similar problem myself, and the solution I found might work for you as well. Set the aliases on the host, and use natd with static NAT to funnel everything to the jail's IP. Not globally applicable (the application may or may not care what IP it binds to or what hostname it reports back), but it might do the trick for you. -- Dan Pelleg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message