Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Aug 2010 19:30:08 +0200
From:      "Jack Raats" <jack@jarasoft.net>
To:        "Brice ERRANDONEA" <berrandonea@yahoo.fr>, "Roland Smith" <rsmith@xs4all.nl>, <freebsd-questions@freebsd.org>
Subject:   Re: How to connect a jail to the web ?
Message-ID:  <4343EF042C3146618D880FA39814C2DA@jarasc430>
References:  <268321.67123.qm@web24608.mail.ird.yahoo.com><20100810130834.GA48376@slackbox.erewhon.net><128012.76976.qm@web24611.mail.ird.yahoo.com><20100810152004.GB51287@slackbox.erewhon.net><994682.73446.qm@web24611.mail.ird.yahoo.com><20100811112334.GA19667@slackbox.erewhon.net> <463890.24711.qm@web24606.mail.ird.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
It seems that you have DNS problems.
Login in your jail
go to /etc

Make a file called resolv.conf
which contains:

domain    your_jail_domain
nameserver    your_namerserver

and it will work...

Jack

PS sorry for the top posting.
I'm using outlook express :-(






----- Original Message ----- 
From: "Brice ERRANDONEA" <berrandonea@yahoo.fr>
To: "Roland Smith" <rsmith@xs4all.nl>; <freebsd-questions@freebsd.org>
Sent: Wednesday, August 11, 2010 5:35 PM
Subject: Re : How to connect a jail to the web ?


I tried all of this without any result. But I won't give up.

What I want is a jail with an Apache http server running inside. So, the 
jail
must have a public IPv4 and access to the web.

What I'd understood of the jails' role (but I must have misunderstood) is 
that
it will have a different public ip than the host, so that if a pirate manage 
to
crack the server, he will only have access to the jail (the real public ip 
of
the host remaining secret). Then I'm surprised to learn that such traffic 
will
be routed through the host.

The jail is created. The next step now is to install the ports collection 
inside
with portsnap fetch. But each time I try to run this command inside the jail
(with jexec), I get the same answer :

Looking up portsnap.FreeBSD.org mirrors... none found.
Fetching public key from portsnap.FreeBSD.org... failed.
No mirrors remaining, giving up.

This makes me think my jail is not connected to the web. To check this, I 
tried
to ping various know websites. When I tried domain names, like "ping
www.freebsd.org", this error message appears :

ping: cannot resolve www.freebsd.org : Host name lookup failure

So, I can't contact DNS servers able to translate www.freebsd.org to its ip.
Since I know this ip, I tried : "ping 69.147.83.33". This time, the error
message is :




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4343EF042C3146618D880FA39814C2DA>