Date: Mon, 03 May 1999 15:52:34 +0200 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Rudolf Cejka <cejkar@dcse.fee.vutbr.cz> Cc: freebsd-current@FreeBSD.ORG (freebsd-current@freebsd.org) Subject: Re: Jail - any success? Message-ID: <7998.925739554@critter.freebsd.dk> In-Reply-To: Your message of "Mon, 03 May 1999 15:39:32 %2B0200." <199905031339.PAA20535@kazi.dcse.fee.vutbr.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <199905031339.PAA20535@kazi.dcse.fee.vutbr.cz>, Rudolf Cejka writes: > >I'm trying to test the new jail feature. It looks it works. But I can't >find, how to setup the network communication. Is there anybody who >successfully took a run of jail virtual serverrs with networking? You need to put ip aliases on your loopback interface, forinstance: ifconfig lo0 10.0.0.1 netmask 255.255.255.255 alias ifconfig lo0 10.0.0.2 netmask 255.255.255.255 alias ifconfig lo0 10.0.0.3 netmask 255.255.255.255 alias ifconfig lo0 10.0.0.4 netmask 255.255.255.255 alias ifconfig lo0 10.0.0.5 netmask 255.255.255.255 alias Then you give each jail one of these ipnumbers and start whatever daemons you want in the jail (inetd, sshd, apache...) Of course your routing needs to work such that these ip numbers end up on your machine, you can also do this by adding multiple IP# to the ethernet of the machine. -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7998.925739554>
