From owner-freebsd-doc@FreeBSD.ORG Fri Feb 28 07:24:52 2014 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7E335F2E for ; Fri, 28 Feb 2014 07:24:52 +0000 (UTC) Received: from mxf1.bahnhof.se (mxf1.bahnhof.se [213.80.101.25]) by mx1.freebsd.org (Postfix) with ESMTP id 03517196E for ; Fri, 28 Feb 2014 07:24:51 +0000 (UTC) Received: from localhost (mxf1.local [127.0.0.1]) by mxf1-reinject (Postfix) with ESMTP id E30AC32BF37 for ; Fri, 28 Feb 2014 08:24:49 +0100 (CET) X-Virus-Scanned: by amavisd-new using ClamAV at bahnhof.se (MXF1) X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-99 required=5 tests=[SPF_PASS=-0.001] Received: from mxf1.bahnhof.se ([127.0.0.1]) by localhost (mxf1.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1M7pAFNi5EJL for ; Fri, 28 Feb 2014 08:24:44 +0100 (CET) Received: from mail.bjuv.org (h-84-63.a175.priv.bahnhof.se [79.136.84.63]) by mxf1.bahnhof.se (Postfix) with ESMTP id A8DEB32BF39 for ; Fri, 28 Feb 2014 08:24:44 +0100 (CET) Received: from [192.168.0.2] (unknown [192.168.0.2]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bjuv.org (Postfix) with ESMTPSA id 46936201E7 for ; Fri, 28 Feb 2014 08:24:44 +0100 (CET) Message-ID: <531039BB.4020004@cyberinfo.se> Date: Fri, 28 Feb 2014 08:24:43 +0100 From: Jack-Benny Persson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: freebsd-doc@freebsd.org Subject: Re: Patch to FreeBSD Handbook - jails References: <530F301B.7030101@cyberinfo.se> In-Reply-To: <530F301B.7030101@cyberinfo.se> X-Enigmail-Version: 1.6 Content-Type: multipart/mixed; boundary="------------060707080707080806070201" X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Feb 2014 07:24:52 -0000 This is a multi-part message in MIME format. --------------060707080707080806070201 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi again, I've changed my patch a bit since I'm figured it was a bad idea to remove the "old way" (keeping the jail settings in /etc/rc.conf) since /etc/jail.conf is rather new (from FreeBSD 9.1 and above). Included here is my new patch for the jail chapter in the Handbook. Best regards, Jack-Benny On 2014-02-27 13:31, Jack-Benny Persson wrote: > Hi, > > I've noticed that the Jails chapter in the Handbook is a bit out of > date. The handbook says one should place the jail_* config options in > the /etc/rc.conf file but this is deprecated. The config options should > now be placed in /etc/jail.conf. > > I've created a SVN patch here with an update. > > Best regards, > Jack-Benny Persson > > > > _______________________________________________ > freebsd-doc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-doc > To unsubscribe, send any mail to "freebsd-doc-unsubscribe@freebsd.org" > --------------060707080707080806070201 Content-Type: text/plain; charset=UTF-8; name="jails.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="jails.txt" Index: en_US.ISO8859-1/books/handbook/jails/chapter.xml =================================================================== --- en_US.ISO8859-1/books/handbook/jails/chapter.xml (revision 44074) +++ en_US.ISO8859-1/books/handbook/jails/chapter.xml (working copy) @@ -373,6 +373,25 @@ For a full list of available options, please see the &man.rc.conf.5; manual page. + + +From FreeBSD 9.1 and above the recommended way is to place the jail settings in /etc/jail.conf (see &man.jail.conf.5;). +For example a jail config similar to above would look like this in /etc/jail.conf. + +www { # Name of the jail from jail_list in /etc/rc.conf + host.hostname = www.example.org; # Hostname + ip4.addr = 192.168.0.10; # IP address of the jail + path = "/usr/jail/www"; # Path to the jail + devfs_ruleset = www_ruleset; # DevFS ruleset + mount.devfs; # Mount devfs inside the jail + exec.start = "/bin/sh /etc/rc"; # Start command to run + exec.stop = "/bin/sh /etc/rc.shutdown"; # Stop command to run to stop the jail +} + + + + + --------------060707080707080806070201--