From owner-freebsd-jail@FreeBSD.ORG Sat May 29 20:49:47 2010 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A946106564A for ; Sat, 29 May 2010 20:49:47 +0000 (UTC) (envelope-from SamanKaya@netscape.net) Received: from imr-mb02.mx.aol.com (imr-mb02.mx.aol.com [64.12.207.163]) by mx1.freebsd.org (Postfix) with ESMTP id BEAFB8FC15 for ; Sat, 29 May 2010 20:49:46 +0000 (UTC) Received: from mtaout-db03.r1000.mx.aol.com (mtaout-db03.r1000.mx.aol.com [172.29.51.195]) by imr-mb02.mx.aol.com (8.14.1/8.14.1) with ESMTP id o4TKnUo4024645 for ; Sat, 29 May 2010 16:49:30 -0400 Received: from [192.168.0.56] (81-178-2-118.dsl.pipex.com [81.178.2.118]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mtaout-db03.r1000.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id 41CF4E000098 for ; Sat, 29 May 2010 16:49:30 -0400 (EDT) Message-ID: <4C017D27.5000803@netscape.net> Date: Sat, 29 May 2010 23:46:31 +0300 From: Kaya Saman User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-jail@freebsd.org x-aol-global-disposition: G X-AOL-SCOLL-SCORE: 0:2:398793376:93952408 X-AOL-SCOLL-URL_COUNT: 0 x-aol-sid: 3039ac1d33c34c017dda6306 X-AOL-IP: 81.178.2.118 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Creating jails to run Squid and multiple Bind services - Newbee X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 May 2010 20:49:47 -0000 Hi, am attempting to create a set of Jails for the first time!! I have read some documentation: http://www.freebsd.org/doc/en/articles/portbuild/new-node.html http://www.freebsd.org/doc/en/books/handbook/jails-build.html http://www.section6.net/wiki/index.php/Creating_a_FreeBSD_Jail and finally for configuring Squid in FreeBSD: http://www.freebsddiary.org/squid.php (just as I currently run this on Solaris 9) So far what I've done is this: cd /usr/src make buildworld I straight away then get an error saying: /usr/src/usr.bin/make ***error code 2 Stop in /usr/src ***error code 1 Basically what I want to do is something very similar to how I use Solaris Zones; create a directory structure which will run 1 specific service only on a specific IP address.... I am not certain if I can run 2 instances of Bind in two different Jails but would be cool if I could. I just have no idea how to start!! :-( I also attempted using this: # setenv D//here/is/the/jail/ # mkdir -p $D # cd /usr/src # make buildworld # make installworld DESTDIR=$D # make distribution DESTDIR=$D # mount -t devfs devfs $D/dev which didn't get me anywhere either :-( In preparation I have created a directory called /var/jail which I have subdirectories with the desired config in them for the services I plan to run: named_1, named_2 and squid Although I have no idea how to proceed from here??? I really appreciate if someone could give me a hand getting started as I'm totally lost on creating the jails as I can configure the services that I need to run in them easily!! Am on BSD 8.0 RELEASE 'current' edition x64. Many thanks, Kaya