From owner-freebsd-questions@FreeBSD.ORG Mon Sep 19 15:16:43 2011 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 89AD7106566B for ; Mon, 19 Sep 2011 15:16:43 +0000 (UTC) (envelope-from moritz@barfooze.de) Received: from barfooze.de (barfooze.de [IPv6:2a01:4f8:7d:200:0:4e2e:75d4:1]) by mx1.freebsd.org (Postfix) with ESMTP id 2E9858FC0A for ; Mon, 19 Sep 2011 15:16:43 +0000 (UTC) Received: from moritz by barfooze.de with local (Exim 4.76) (envelope-from ) id 1R5faL-0008Mp-EG for freebsd-questions@freebsd.org; Mon, 19 Sep 2011 17:16:41 +0200 Date: Mon, 19 Sep 2011 17:16:41 +0200 From: Moritz Wilhelmy To: freebsd-questions@freebsd.org Message-ID: <20110919151641.GI22957@barfooze.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Passing additional options to jail(8) via rc.conf 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: Mon, 19 Sep 2011 15:16:43 -0000 Hello, let's say I want to pass additional options like ip4=inherit to my jails configured via /etc/rc.conf. How do I get this to work? Apparently, setting jail_www_flags="-l -U root ip4=inherit" is the wrong order, because these parameters are expected after -c, which is apparently inserted by the rc-script *after* the flags passed via the variable. Has anyone else had this problem, and is there a way to solve it rather than setting the jail up things by hand in rc.local? I'd prefer using the sugar rc.conf offers me. Maybe there is another, undocumented variable for this kind of options? Am I overlooking something? Thanks in advance, Moritz