From owner-freebsd-jail@freebsd.org Mon Aug 15 16:59:39 2016 Return-Path: Delivered-To: freebsd-jail@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4E36EBBBC0A; Mon, 15 Aug 2016 16:59:39 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (bird.sbone.de [46.4.1.90]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 02DFF17C6; Mon, 15 Aug 2016 16:59:38 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 6BC4825D3857; Mon, 15 Aug 2016 16:59:30 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 89195D1F891; Mon, 15 Aug 2016 16:59:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id MVCles0pq4yn; Mon, 15 Aug 2016 16:59:28 +0000 (UTC) Received: from [10.248.105.13] (fresh-tun0-ula.sbone.de [IPv6:fde9:577b:c1a9:4920:2ef0:eeff:fe03:ee34]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id A4BDFD1F814; Mon, 15 Aug 2016 16:59:27 +0000 (UTC) From: "Bjoern A. Zeeb" To: "Ernie Luzar" Cc: "Freebsd Questions" , "freebsd-jail@freebsd.org" Subject: Re: testing 11.0-RC1 vnet jails with ipfilter Date: Mon, 15 Aug 2016 16:59:24 +0000 Message-ID: <078403E1-D8A3-4E52-B218-7A8B4400749A@lists.zabbadoz.net> In-Reply-To: <57B1E1BC.4090205@gmail.com> References: <57B1E1BC.4090205@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailer: MailMate (2.0BETAr6048) X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2016 16:59:39 -0000 On 15 Aug 2016, at 15:37, Ernie Luzar wrote: > Hello list; > > Running 11.0-RC1 with only option vimage compiled into the generic > kernel. > > I can run ipfilter on the host and start vnet jails containing no > firewalls just fine. But when I try to also have ipfilter run in the > vnet jail nothing happens. I added this to the vnet jails rc.conf > ipfilter_enable="YES" > ipfilter_rules="/etc/ipf.boot.rules" > ipmon_enable="YES" > ipmon_flags="-Ds" > > Then start the vnet jail and its like those ipfilter statements in the > vnet jails rc.conf are not there. The vnet jails /var/log/messages > file is not even there. Issuing "ipfstat" inside the running vnet jail > to display the jails ipfilter rules gives this error message > "open(IPSTATE_NAME): No such file or directory" > To me this means ipfilter is not running in the vnet jail even though > I requested it in the vnet jails rc.conf file. > > So my question to this list is, has anyone managed to get ipfilter to > run inside a vnet jail using any of the 11.0 alpha, beta, or rc > versions? If so would you please share your setup with me? > > Maybe I am to close to the bleeding edge for there to be other users > in the same test loop? The startup script contains “nojail”. I think someone opened a bug report the other day but I can’t find it anymore; so the startup script won’t automatically run inside a jail. Can you remove that line and try again? /bz