Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 2009 22:41:14 +0430
From:      Laszlo Nagy <gandalf@shopzeus.com>
To:        questions@freebsd.org
Subject:   Re: jail - beginner questions
Message-ID:  <4B02E742.4010705@shopzeus.com>
In-Reply-To: <44tyws3n28.fsf@be-well.ilk.org>
References:  <4B02A81F.1030101@shopzeus.com> <44tyws3n28.fsf@be-well.ilk.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

> No, I think you added the '/' before 'etc', which isn't in the web page.
>   
Gotcha.
>   
> Is the problem perhaps in your /etc/rc.d/vm1 script?  
> Normally you would use /etc/rc.d/jail.
>   
Yes, I'm. Sorry - it was a typo. I used this:

/etc/rc.d/jail start vm1
> Are those addresses already assigned on the host?
> Was the jail perhaps already running?
>   
My computer is a windows machine, with address 192.168.0.X
Then the FreeBSD host is actually a guest os running in wvmare. It has 
address 192.168.37.133
And finally, the vm1 jail should have 192.168.0.11

I don't know why 192.168.0.11 is not working for the jail. Anyway, if I 
change the jail's address to 192.168.10.11 then

/etc/rc.d/jail start vm1
Starting jails: vm1.localdomain.

Now the next question: how can I access the hosted (jailed) OS? I know 
it is a dumb question, but I have no idea. I would like to:

a.) run sshd in the jail
b.) login from the host to the jailed (hosted) OS
c.) install programs on the jail, configure them and finally
d.) use NATD to divert some pacakges from the host to the jail and back

Probably this is what everybody does, so if you could point me to a 
tutorial or something, I would appriciate it.

Thanks,

   Laszlo




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?4B02E742.4010705>