Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2018 13:26:55 -0700
From:      Kristof Provost <kp@FreeBSD.org>
To:        Ernie Luzar <luzar722@gmail.com>
Cc:        "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>, FreeBSD current <freebsd-current@freebsd.org>
Subject:   Re: 12.0-BETA1 vnet with pf firewall
Message-ID:  <318C4C04-2A28-43AA-AAC7-D4CE2E959569@FreeBSD.org>
In-Reply-To: <5BD61458.9040402@gmail.com>
References:  <5BD5D656.4050204@gmail.com> <6811B138-54C8-448F-A7F8-76374A077D8A@lists.zabbadoz.net> <5BD61458.9040402@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


> On 28 Oct 2018, at 12:56, Ernie Luzar <luzar722@gmail.com> 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=




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?318C4C04-2A28-43AA-AAC7-D4CE2E959569>