Jail isolation from internal network and host (pf, vnet (vimage), freebsd 11.1)

Sami Halabi sodynet1 at gmail.com
Thu Nov 9 05:28:39 UTC 2017


Hi,
To completly isolate specific jail come to my mind the following solution:
1. use vimage.
2. setup 1 broker jail - that jail will have ipfw (or pf if but i recall it
have several bugs and kerbel panics ) with nat, will have 2 nics of 2
different epairs, one to the host and other to the isolated jail aka
'private lan'. you should nat all traffic from the nic with the isolated
jail to the world, and block access to your own networks all restrictions
you want.
3. setup your jail with the epair nic from the broker 'lan' jail.

just an idea.

Sami

בתאריך 8 בנוב׳ 2017 04:39 PM,‏ "Kristof Provost" <kristof at sigsegv.be> כתב:

> On 7 Nov 2017, at 23:43, irukandji via freebsd-pf wrote:
> > Hi Everyone,
> >
> > Problem: isolating jail away from internal network and host "hosting"
> > it.
> > Environment: jail with 192.168.1.100, host 192.168.1.200, VIMAGE
> > enabled kernel, VNET (vnet0:JID) over bridge interface (bridge0),
> > single network card on re0
> >
> Can you show how you’ve started the jail and configured the network setup?
> Are you running a vnet jail?
>
> > I am unable prevent jail accessing host (192.168.1.200) for any other
> > ip it is working, i have configured VNET just to have separated stack
> > but host is still accessible from jail.
> >
> What pf rules do you have?
>
> > Am I missing something or this is just something that cant be
> > accomplished using pf? I am banging my head to the wall with this issue
> > for past few months going radical lately (kernel recompile ;) )
> > but still without any result.
> >
> It should be possible to do this, but there’s a lot of ways to set this up.
>
> Also bear in mind that VIMAGE was experimental in 11.1. There are several
> important bugs that are not fixed in 11.1 (but are fixed in CURRENT),
> especially in combination with pf.
>
> Regards,
> Kristof
> _______________________________________________
> freebsd-pf at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-pf
> To unsubscribe, send any mail to "freebsd-pf-unsubscribe at freebsd.org"


More information about the freebsd-pf mailing list