Date: Wed, 4 May 2016 16:53:59 +0200 From: Kristof Provost <kristof@sigsegv.be> To: Alan Somers <asomers@freebsd.org> Cc: FreeBSD Net <freebsd-net@freebsd.org> Subject: Re: How to use pf with vimage jails? Message-ID: <4EBFFB72-B185-4272-ACDF-B6B576ADE0D2@sigsegv.be> In-Reply-To: <CAOtMX2hLhLGPU%2B6qb9ROd1P3vvazb_k3K6p0Q5A5a-znVzJQcg@mail.gmail.com> References: <CAOtMX2jtxjUxiOv_LqO8Gg5AhXrSBb%2BWatCktx7y03w=st=w3w@mail.gmail.com> <67045371-07B8-4718-8A8B-98E3FBFF994E@sigsegv.be> <CAOtMX2hLhLGPU%2B6qb9ROd1P3vvazb_k3K6p0Q5A5a-znVzJQcg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 04 May 2016, at 16:48, Alan Somers <asomers@freebsd.org> wrote: >=20 > On Wed, May 4, 2016 at 4:23 AM, Kristof Provost <kristof@sigsegv.be = <mailto:kristof@sigsegv.be>> wrote: >=20 > > On 04 May 2016, at 04:55, Alan Somers <asomers@freebsd.org = <mailto:asomers@freebsd.org>> wrote: > > > > Is there any documentation on how to run pf on a host, using it to = control > > access to vimage jails? I see that only ipfw can be run from = _inside_ of > > the jail, but I'm interested in running pf _outside_ of the jail. >=20 > That=E2=80=99s supported, and really no different from configuring pf = otherwise. > Just treat the vimage jails as if they were on different machines, = behind your firewall. >=20 > Regards, > Kristof >=20 >=20 > Then maybe it's the bridged aspect that's screwing me up. Is there a = guide for using pf on bridged interfaces? All I can find is this guide = for ipfw. >=20 Treat a bridge as a simple interface, pretend that the bridge members = are just devices plugged into a switch connected to the bridge = interface. > https://www.freebsd.org/doc/en/articles/filtering-bridges/article.html = <https://www.freebsd.org/doc/en/articles/filtering-bridges/article.html> >=20 That=E2=80=99s a filtering bridge, which is a different use case. On a = filtering bridge the firewall device doesn=E2=80=99t need an IP, instead = interpreting the layer 2 packets. pf can do this (see the net.link.bridge.pfil_bridge sysctl), but there = are major problems with the implementation. I=E2=80=99d discourage you = from using this. Regards, Kristof
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EBFFB72-B185-4272-ACDF-B6B576ADE0D2>