From owner-freebsd-current@freebsd.org Sun Oct 28 20:27:04 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5EC2E10DFC91 for ; Sun, 28 Oct 2018 20:27:04 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 05FB86ED38; Sun, 28 Oct 2018 20:27:04 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.codepro.be", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: kp) by smtp.freebsd.org (Postfix) with ESMTPSA id B67A6128B3; Sun, 28 Oct 2018 20:27:03 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from [IPv6:2607:fb90:9d50:276:f41a:2f1:6f19:69ec] (unknown [IPv6:2607:fb90:9d50:276:f41a:2f1:6f19:69ec]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id 72C8223096; Sun, 28 Oct 2018 21:27:00 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: 12.0-BETA1 vnet with pf firewall From: Kristof Provost X-Mailer: iPhone Mail (16A404) In-Reply-To: <5BD61458.9040402@gmail.com> Date: Sun, 28 Oct 2018 13:26:55 -0700 Cc: "Bjoern A. Zeeb" , FreeBSD current Content-Transfer-Encoding: quoted-printable Message-Id: <318C4C04-2A28-43AA-AAC7-D4CE2E959569@FreeBSD.org> References: <5BD5D656.4050204@gmail.com> <6811B138-54C8-448F-A7F8-76374A077D8A@lists.zabbadoz.net> <5BD61458.9040402@gmail.com> To: Ernie Luzar X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2018 20:27:04 -0000 > On 28 Oct 2018, at 12:56, Ernie Luzar wrote: >=20 > Bjoern A. Zeeb wrote: >>> On 28 Oct 2018, at 15:31, Ernie Luzar wrote: >>> Tested with host running ipfilter and vnet running pf. Tried loading pf f= rom host console or from vnet console using kldload pf.ko command and get th= is error message; >>>=20 >>> linker_load_file: /boot/kernel/pf.ko-unsupported file type. >>>=20 >>> Looks like the 12.0 version of pf which is suppose to work in vnet indep= endent of what firewall is running on the host is not working. >> You cannot load pf from inside a jail (with or without vnet). Kernel mod= ules are global objects loaded from the base system or you compile the devic= es into the kernel; it is their state which is virtualised. >> If you load multiple firewalls they will all be available to the base sys= tem and all jails+vnet. Whichever you configure in which one is up to you. = Just be careful as an unconfigured firewall might have a default action aff= ecting the outcome of the overall decision. >> For example you could have: >> a base system using ipfilter and setting pf to default accept everything >> and a jail+vnet using pf and setting ipfilter there to accept everything.= >> Hope that clarifies some things. >> /bz >=20 > Hello Bjoern. >=20 > What you said is correct for 10.x & 11.x. But I an talking about 12.0-beta= 1. I have the ipfilter options enabled in rc.conf of the host and on boot i= pfilter starts just like it all ways does. Now to prep the host for pf in a v= net jail, I issue from the host console the > "kldload pf.ko" command and get this error message; >=20 > linker_load_file: /boot/kernel/pf.ko-unsupported file type. >=20 > Something is wrong here. This is not suppose to happen according to your p= ost above. >=20 > Remember that in 12.0 vimage is included in the base system=20 That sounds like something=E2=80=99s wrong with your install and the kernel m= odule does not match the kernel.=20 How did you install? Regards, Kristof=