Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 May 2016 02:42:37 +0000 (UTC)
From:      =?UTF-8?Q?Sebasti=C3=A1n_Maruca?= <juanperiz@yahoo.com.ar>
To:        wishmaster <artemrts@ukr.net>,  =?UTF-8?Q?Sebasti=C3=A1n_Maruca?= <seba@econ.uba.ar>
Cc:        "freebsd-jail@freebsd.org" <freebsd-jail@freebsd.org>
Subject:   Re: deploy multiple vnets with VIMAGE/VNET + Production Ready?
Message-ID:  <1681543684.2075452.1464662557505.JavaMail.yahoo@mail.yahoo.com>
In-Reply-To: <1464632136.649261509.wqj3p1n9@frv34.fwdcdn.com>
References:  <366569840.1294540.1464534933908.JavaMail.yahoo.ref@mail.yahoo.com> <366569840.1294540.1464534933908.JavaMail.yahoo@mail.yahoo.com> <1464632136.649261509.wqj3p1n9@frv34.fwdcdn.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I thank you all for your fast and kind reply!
I was in spite of building some kind of API above pf(4) to let each jail ac=
t as a tenant firewall... Maybe I should wait to 11-RELEASE birth to go for=
 it...=C2=A0
Meanwhile I think I'll get over it with an API/framework that can handle pf=
 with its anchor files doing basic VLAN acls as a virtual way of achieving =
this, aside security concerns...



      De: wishmaster <artemrts@ukr.net>
 Para: Sebasti=C3=A1n Maruca <seba@econ.uba.ar>=20
CC: freebsd-jail@freebsd.org
 Enviado: Lunes, 30 de mayo, 2016 15:31:27
 Asunto: Re: deploy multiple vnets with VIMAGE/VNET + Production Ready?
  =20

Hi,

> Hi to everyone!
> I want to deploy several "jailed" firewalls, where each one of them would=
 contain at least three multiple virtual interfaces (associated with virtua=
l internal nets) like "WAN", "LAN" and "DMZ" for example...
> First *innocent* question (I beg you pardon for my ignorance dealing with=
 jails!) Can vnet/vimage help me deploy such a complex jailed environment??=
?
=C2=A0 Yes. If you need help you can email me privately.

> Secod *innocent* question, so far so good, reading at jail manpage (circa=
 July 6, 2015/FreeBSD 10.3) it seems VNET/VIMAGE is fully integrated to the=
 FreeBSD kernel, is VNET/VIMAGE ready for production level???
=20
Yes. I have been using vneted Jail from 10.0 in quite complex scenarios. Ye=
s, there are some open issues with vnet (pf, memory leak on stopping jail a=
nd so on), but I think in 11-RELEASE this bugs will be fixed. Currently Bjo=
rn Zeeb works on this problems. See https://svnweb.freebsd.org/base/project=
s/vnet/
But for now, you can safely use vnet. Just use IPFW and do not start/stop j=
ails needlessly.

> As a side note, at the host level would a be some kind of API/service tha=
t would deal with pfctl in order to rule flows between all of them...
> Best regards,Seba

--
Vitaliy
=20
=20
_______________________________________________
freebsd-jail@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-jail
To unsubscribe, send any mail to "freebsd-jail-unsubscribe@freebsd.org"


  
From owner-freebsd-jail@freebsd.org  Tue May 31 06:39:37 2016
Return-Path: <owner-freebsd-jail@freebsd.org>
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 BAFC7B55B46
 for <freebsd-jail@mailman.ysv.freebsd.org>;
 Tue, 31 May 2016 06:39:37 +0000 (UTC)
 (envelope-from lars@e-new.0x20.net)
Received: from mail.0x20.net (mail.0x20.net [217.69.76.211])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "mail.0x20.net", Issuer "mail.0x20.net" (not verified))
 by mx1.freebsd.org (Postfix) with ESMTPS id 46B251772
 for <freebsd-jail@freebsd.org>; Tue, 31 May 2016 06:39:36 +0000 (UTC)
 (envelope-from lars@e-new.0x20.net)
Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3])
 (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
 (No client certificate requested)
 by mail.0x20.net (Postfix) with ESMTPS id 83B4F6E0081;
 Tue, 31 May 2016 08:39:33 +0200 (CEST)
Received: from e-new.0x20.net (localhost [127.0.0.1])
 by e-new.0x20.net (8.14.7/8.14.7) with ESMTP id u4V6dXFn014545;
 Tue, 31 May 2016 08:39:33 +0200 (CEST)
 (envelope-from lars@e-new.0x20.net)
Received: (from lars@localhost)
 by e-new.0x20.net (8.14.7/8.14.7/Submit) id u4V6dUMs011238;
 Tue, 31 May 2016 08:39:30 +0200 (CEST) (envelope-from lars)
Date: Tue, 31 May 2016 08:39:30 +0200
From: Lars Engels <lars.engels@0x20.net>
To: Ernie Luzar <luzar722@gmail.com>
Cc: =?utf-8?Q?Sebasti=C3=A1n?= Maruca <seba@econ.uba.ar>,
 freebsd-jail@freebsd.org
Subject: Re: deploy multiple vnets with VIMAGE/VNET + Production Ready?
Message-ID: <20160531063930.GE15808@e-new.0x20.net>
References: <366569840.1294540.1464534933908.JavaMail.yahoo.ref@mail.yahoo.com>
 <366569840.1294540.1464534933908.JavaMail.yahoo@mail.yahoo.com>
 <574C42DA.6030101@gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature"; boundary="Vx/N56bIaYnO6ICL"
Content-Disposition: inline
In-Reply-To: <574C42DA.6030101@gmail.com>
X-Editor: VIM - Vi IMproved 7.4
X-Operation-System: FreeBSD 8.4-RELEASE-p23
User-Agent: Mutt/1.5.23 (2014-03-12)
X-BeenThere: freebsd-jail@freebsd.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Discussion about FreeBSD jail\(8\)" <freebsd-jail.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-jail>,
 <mailto:freebsd-jail-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-jail/>;
List-Post: <mailto:freebsd-jail@freebsd.org>
List-Help: <mailto:freebsd-jail-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-jail>,
 <mailto:freebsd-jail-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 31 May 2016 06:39:37 -0000


--Vx/N56bIaYnO6ICL
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 30, 2016 at 09:40:42AM -0400, Ernie Luzar wrote:
> Here are the bare truths without any sugar coating.
> Vimage is officially described as experimental. You have to recompile=20
> the kernel to included vimage. Enabling pf or ipf firewalls cause the=20
> host to crash. ipfw firewall does not cause a crash but has next to no=20
> real life usage on vimage. When stopping vimage jails there is a problem=
=20
> with memory loss. You need a high proficiency in coding netgraph which=20
> is used to tie the hosts network to each vimage jail. Needs a public=20
> network with multiple static ip address & registered domain names even=20
> to test it.
>=20
> A few brave soles have accepted these short comings and have deployed=20
> vimage in a production environment with good results so they say, or at=
=20
> best they have not reported any problems. I guess it all depends of what=
=20
> your shop defines "production ready" as. At my shop vimage is NOT=20
> considered something management is willing to base the business on.=20
> Maybe your shop is different.
>=20
> There are a few write ups about how to configure vet/vimage jails, but=20
> their out of date. IE: 8.x & 9.x releases which are at EOL [end of life,=
=20
> unsupported]. The current production version of Freebsd is at 10.3 with=
=20
> 11.0 due out in August. Only know of one utility jail tool that has=20
> vnet/vimage function. Try the qjail port, it will shorten your learning=
=20
> curve.

sysutils/iocage also supports VIMAGE

>=20
> Now there is a guy who is patching vimage trying to get it so it can be=
=20
> incorporated into the base kernel. His goal was to get it into release=20
> 11.0, but updates to 11.0 source are now suspended until 11.0 is=20
> published so thats not going to happen. They sure would not incorporate=
=20
> viamge without a general announcement calling for users to test drive it=
=20
> first. This has not happened yet that I know of.

You seem to forget that there have been fixes already in HEAD:=20

http://freshbsd.org/search?branch=3DHEAD&project=3Dfreebsd&q=3Dvimage+OR+vn=
et

--Vx/N56bIaYnO6ICL
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQF8BAEBCgBmBQJXTTGiXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RjQwMDE3RTRERjUzMTI1N0FGRTUxNDlF
NTRDQjM3RDNBMDg5RDZEAAoJEOVMs306CJ1t7DgIAJEju0efxuggs+whRmfPSRDj
nRjtMgZPmMhgtzMaAX2WndlEvgWEXeyrKzCUYDzVRbcPHqYTGRI3NVUTXRd4PGaf
/4fwBusT0Uc1X0A5A7opO9Yx/aYkh1cKYYy/yvb/wRBpe81W69h/zAkfv1q0+UxZ
FaJWerInmxX9xEg9AVdbtvXLchlpMMG8dgyj6O2HI2YA72ijq//8PT2CdP3HVKu1
sYakwJQOi73wztbgDqtW/uDW34xJDNpIOOiLCM6Fhg4t7RK4sMQ50JeCds1qu+LB
CZdH/YVT+VFal9ub5f+0w7to1ORWqO6kqfLCH31o336S17JGLEb6/IytiiaH+uQ=
=DxQm
-----END PGP SIGNATURE-----

--Vx/N56bIaYnO6ICL--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1681543684.2075452.1464662557505.JavaMail.yahoo>