From owner-freebsd-questions Wed Dec 4 7:30:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D3DD537B401 for ; Wed, 4 Dec 2002 07:30:57 -0800 (PST) Received: from sphinx.mythic-beasts.com (sphinx.mythic-beasts.com [195.82.107.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0956543E4A for ; Wed, 4 Dec 2002 07:30:57 -0800 (PST) (envelope-from xelah@sphinx.mythic-beasts.com) Received: from xelah (helo=localhost) by sphinx.mythic-beasts.com with local-esmtp (Exim 3.33 #2) id 18JbTu-0000yn-00; Wed, 04 Dec 2002 15:30:34 +0000 Date: Wed, 4 Dec 2002 15:30:34 +0000 (GMT) From: Alex Hayward X-X-Sender: To: Jeff MacDonald Cc: Subject: Re: Another Jail Question In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Wed, 4 Dec 2002, Jeff MacDonald wrote: > Hi, > > I have been thinking about running 2 jails on my home server > one for "work sensitive" data, the other for personal fun stuff. > > However i only have 1 ip at my house [static]. > > Could i take the server taht will have jails on it, put it behind > a natd box so it has 2 ip's [192.168.0.1 and .2] and just make > the nat box, forward packets to teh appropriate jail based upon > what port they come in on ? Yes. Or you could just run both jails on the same IP address. > also, if i have host machine with 2 jails in it, i know i can't > run PostgreSQL in the jails, can i run it on the host environment > and make the jails access it via TCP ? You can run PostgreSQL in a jail - though you do need to turn the jail.sysvipc_allowed sysctl on first. You can also run it in the host environment and talk via TCP if you wish. > server is a dual PII 300 with 512 megs of ram, this should be fine > to handle 2 jails, right ? That depends what you run in them :-) I don't think there's any remotely significant overhead in having a process run in a jail compared to having one run outside a jail. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message