From owner-freebsd-questions Thu Sep 20 14: 5:52 2001 Delivered-To: freebsd-questions@freebsd.org Received: from robin.mail.pas.earthlink.net (robin.mail.pas.earthlink.net [207.217.120.65]) by hub.freebsd.org (Postfix) with ESMTP id 0208337B406 for ; Thu, 20 Sep 2001 14:05:48 -0700 (PDT) Received: from blossom.cjclark.org (dialup-209.245.131.52.Dial1.SanJose1.Level3.net [209.245.131.52]) by robin.mail.pas.earthlink.net (8.11.5/8.9.3) with ESMTP id f8KL5jH18744; Thu, 20 Sep 2001 14:05:45 -0700 (PDT) Received: (from cjc@localhost) by blossom.cjclark.org (8.11.4/8.11.3) id f8KL5iv01767; Thu, 20 Sep 2001 14:05:44 -0700 (PDT) (envelope-from cjc) Date: Thu, 20 Sep 2001 14:05:44 -0700 From: "Crist J. Clark" To: Maarten Koopmans Cc: freebsd-questions@FreeBSD.ORG Subject: Re: jail with two IP addresses Message-ID: <20010920140544.G309@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <001f01c14207$4fe38680$f4068418@a2000.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <001f01c14207$4fe38680$f4068418@a2000.nl>; from m.koopmans2@chello.nl on Thu, Sep 20, 2001 at 09:06:06PM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Sep 20, 2001 at 09:06:06PM +0200, Maarten Koopmans wrote: > Hi, > > I want to jail a webserver on a box with two NICs. One Internet domain and > one DMZ. > > In the DMZ there are application servers that connect to the webserver box > using NIC2, while the webserver serves on NIC1. I'd like to use the jail > facilitity, but I read that it only allows one IP address for incoming and > outgoing connections. So it seems that I cannot use jail. Is this correct? Yes and no. What you quote is true, but I believe you are misunderstanding it. A jail can only have one IP address. However, a system running jails can have as many as you wish. But each jail on the system can only have one IP. > What about localhost? Can two jailed processes (in different jails) connect > to each other using localhost? I have the feeling they can't but I can't > find a definitive no in the docs. The "real" system and each jail system will have different IP addresses. You may use those to communicate between them. -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message