Date: Wed, 23 Dec 2020 19:53:45 +0000 From: Steve O'Hara-Smith <steve@sohara.org> To: freebsd-questions@freebsd.org Subject: Re: Network namespaces in FreeBSD Message-ID: <20201223195345.7e68bc5827f5878d097864cb@sohara.org> In-Reply-To: <A577602D-C1A9-4B6E-822E-03641A4070A0@FreeBSD.org> References: <SG2PR01MB2443D481AC24AF7207218E0EF1DE0.ref@SG2PR01MB2443.apcprd01.prod.exchangelabs.com> <SG2PR01MB2443D481AC24AF7207218E0EF1DE0@SG2PR01MB2443.apcprd01.prod.exchangelabs.com> <20201223182227.da6c11d3604eb07bb4f18ce5@sohara.org> <A577602D-C1A9-4B6E-822E-03641A4070A0@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 23 Dec 2020 19:32:43 +0100 "Kristof Provost" <kp@FreeBSD.org> wrote: > On 23 Dec 2020, at 19:22, Steve O'Hara-Smith wrote: > > On Wed, 23 Dec 2020 16:48:11 +0000 > > Ameya Deshpande via freebsd-questions <freebsd-questions@freebsd.org> > > wrote: > > > >> Hi, > >> > >> I am new to FreeBSD. I was wondering if there is concept like Network > >> Namespaces in FreeBSD, like it is in Linux? > > > > There is something similar see man setfib for details. > > > I’ve only briefly played with linux network namespaces, but aren’t > vnet jails much closer to that? My understanding was that network namespaces are primarily a way of managing multiple routing tables which is exactly what setfib is for, while setfib is mostly useful in conjunction with jails[1] it is not connected with jails in any way it is purely a network level thing which AIUI linux network namespaces are. Vnet jails are just jails with their own network stack, which achieves much the same results but only for jails. [1] Jails can be set to have a default fib - I use fibs this way to connect jails to VPNs for various purposes. -- Steve O'Hara-Smith | Directable Mirror Arrays C:\>WIN | A better way to focus the sun The computer obeys and wins. | licences available see You lose and Bill collects. | http://www.sohara.org/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20201223195345.7e68bc5827f5878d097864cb>