From owner-freebsd-questions@FreeBSD.ORG Wed Aug 11 17:42:21 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2BC4D1065811 for ; Wed, 11 Aug 2010 17:42:21 +0000 (UTC) (envelope-from jack@jarasoft.net) Received: from raats.xs4all.nl (raats.xs4all.nl [82.95.230.43]) by mx1.freebsd.org (Postfix) with ESMTP id C95448FC12 for ; Wed, 11 Aug 2010 17:42:20 +0000 (UTC) Received: from raats.xs4all.nl (orac.jarasoft.net [10.10.10.10]) by raats.xs4all.nl (Postfix) with ESMTP id 8D1733D8194; Wed, 11 Aug 2010 19:30:13 +0200 (CEST) Received: from jarasc430 (raats.xs4all.nl [82.95.230.43]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client did not present a certificate) by raats.xs4all.nl (Postfix) with ESMTPSA id 56CDD3D8193; Wed, 11 Aug 2010 19:30:13 +0200 (CEST) Message-ID: <4343EF042C3146618D880FA39814C2DA@jarasc430> From: "Jack Raats" To: "Brice ERRANDONEA" , "Roland Smith" , 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> Date: Wed, 11 Aug 2010 19:30:08 +0200 Organization: JaRaSoft, Steenbergen, Nederland MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 1 X-MSMail-Priority: High X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-Virus-Scanned: ClamAV using ClamSMTP on orac.jarasoft.net X-Mailman-Approved-At: Wed, 11 Aug 2010 18:21:48 +0000 Cc: Subject: Re: How to connect a jail to the web ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jack Raats List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2010 17:42:21 -0000 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" To: "Roland Smith" ; 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 :