jail - beginner questions

Laszlo Nagy gandalf at shopzeus.com
Tue Nov 17 21:41:14 UTC 2009


> 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



More information about the freebsd-questions mailing list