From owner-freebsd-questions@FreeBSD.ORG Tue Aug 10 11:15:09 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 6894510656B3 for ; Tue, 10 Aug 2010 11:15:09 +0000 (UTC) (envelope-from berrandonea@yahoo.fr) Received: from n20.bullet.mail.ukl.yahoo.com (n20.bullet.mail.ukl.yahoo.com [87.248.110.137]) by mx1.freebsd.org (Postfix) with SMTP id CACB78FC16 for ; Tue, 10 Aug 2010 11:15:08 +0000 (UTC) Received: from [217.146.182.180] by n20.bullet.mail.ukl.yahoo.com with NNFMP; 10 Aug 2010 11:01:24 -0000 Received: from [87.248.111.144] by t6.bullet.ukl.yahoo.com with NNFMP; 10 Aug 2010 11:01:24 -0000 Received: from [127.0.0.1] by omp201.mail.ukl.yahoo.com with NNFMP; 10 Aug 2010 11:01:24 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 436742.34328.bm@omp201.mail.ukl.yahoo.com Received: (qmail 68447 invoked by uid 60001); 10 Aug 2010 11:01:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1281438084; bh=zUDsFpVErcetsD7UseT/DwLELZYEF5V/7pVBM0PXbig=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=Fcigc+3wWU1q7Um+AZYncb3qernOBT/8B/chP8FxEqMwGyL7W9qx7azFC20n84/aJzo6rUxPQQzZsdtfUsh5kHi0GODlquS2/MeS2LzBlmG2/MNRf+DE9Uv8AbtVpy579tX+U8jS9upnVZ+sZ/s1Eo2sBjo/64iJKrz53bVfF0M= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=p4RIhPg2qkF4ZH9wk2XXDC4pKm2Ynilteg0PblEnF6UMnijJfSb4nNkRqJZL7QLL47bQA9Gbw0MYgmmhANnFt5VkUMZMILBwfPQJsy951M8gT8zO8cqQsdyEeqy14930TJ5Kowz3ECdZCozt/4hiwfgVgCxS1NPn5tI1aGOQEqc=; Message-ID: <268321.67123.qm@web24608.mail.ird.yahoo.com> X-YMail-OSG: BHvkT8wVM1n0Lh8xCdum4.JbP7YzYOEoZIPG3eGfHhI2UvX vBbrrmfgfxmTi2CpIcQal4w7RYs1jPol3GQMC6eO5QCXbXlSDAmD68HFde9b JN25OouQMZQvTPaV.Qh72TtcU.hVjOuIq1BbzFR2rml9hWYwFO1gDbUG6xSV CFjfBBsUnJ5RKcy94iw7ao3TD2N3iwyxAIu1oI.Tf.hvkfhMXmCLzNJJ8Z4H jkIVDzq.lkjhsVF7J_qFPNHcE06239nQ.Sok05ZVtzxaCNUS_3SDMbksJows - Received: from [93.0.168.17] by web24608.mail.ird.yahoo.com via HTTP; Tue, 10 Aug 2010 11:01:24 GMT X-Mailer: YahooMailRC/459 YahooMailWebService/0.8.105.279950 Date: Tue, 10 Aug 2010 11:01:24 +0000 (GMT) From: Brice ERRANDONEA To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: How to connect a jail to the web ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2010 11:15:09 -0000 Hello,=0A=0AI've just created my first FreeBSD jail in order to install a w= eb server inside. =0ABut I don't know how to connect it to the web. When I = try pinging a http =0Awebsite, it doesn't work. Of course, it works when I = do it from outside the =0Ajail.=0A=0AAnother problem, probably linked to th= e first one, I can't run rc within the =0Ajail, even as the jail's root. It= says : permission denied.=0A=0AHere's how I built and started my jail. I h= ad already run make buildworld when =0Aupgrading to 8.1 release :=0A=0A# mk= dir /usr/prison=0A# cd /usr/src=0A# make installworld DESTDIR=3D/usr/prison= =0A# make distribution DESTDIR=3D/usr/prison=0A# mount -t devfs devfs /usr/= prison/dev=0A# jail -c path=3D/usr/prison host.hostname=3DServeurWeb ip4.ad= dr=3D192.1.1.1 persist=0A# jail /usr/prison ServeurWeb 192.1.1.1 csh=0A=0AI= guess this must be a very basic question but please help me.=0A=0A=0A=0A =