How to connect a jail to the web ?
jcigar at ulb.ac.be
Tue Aug 10 11:32:16 UTC 2010
On 08/10/2010 13:01, Brice ERRANDONEA wrote:
> I've just created my first FreeBSD jail in order to install a web server inside.
> But I don't know how to connect it to the web. When I try pinging a http
> website, it doesn't work. Of course, it works when I do it from outside the
> Another problem, probably linked to the first one, I can't run rc within the
> jail, even as the jail's root. It says : permission denied.
> Here's how I built and started my jail. I had already run make buildworld when
> upgrading to 8.1 release :
> # mkdir /usr/prison
> # cd /usr/src
> # make installworld DESTDIR=/usr/prison
> # make distribution DESTDIR=/usr/prison
> # mount -t devfs devfs /usr/prison/dev
> # jail -c path=/usr/prison host.hostname=ServeurWeb ip4.addr=22.214.171.124 persist
> # jail /usr/prison ServeurWeb 126.96.36.199 csh
> I guess this must be a very basic question but please help me.
make sure NAT is enabled on the host..
I use PF for that with something like (/etc/pf.conf):
nat on $ext_if from $internal_net to any -> ($ext_if)
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.
More information about the freebsd-questions