Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Dec 2002 15:30:34 +0000 (GMT)
From:      Alex Hayward <xelah-freebsd@xelah.com>
To:        Jeff MacDonald <jeff@interchange.ca>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Another Jail Question
Message-ID:  <Pine.LNX.4.33.0212041526580.13285-100000@sphinx.mythic-beasts.com>
In-Reply-To: <HJEPJELDKPJEEIIFNLNHAEBLCBAA.jeff@interchange.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.33.0212041526580.13285-100000>