In message <199905031339.paa20...@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
p...@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 majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to