Re: /etc/rc.d/jail script
Fbsd8 wrote: I have noticed that the /etc/rc.d/jail script will not start a jail that has the same ip address as a jail that is already running. But if I define 2 jails the manual way in rc.conf that have the same ip address they will start. So is this a bug in the jail script or is there some reason for this restriction? On deeper inspection of the /etc/rc.d/jail script, it seems the above only occurs if one or more jails are assigned the same ip address and one or more of the jails bound the shared ip address to a NIC device name. IE the auto creation and deletion of ip address aliases. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
/etc/rc.d/jail script
I have noticed that the /etc/rc.d/jail script will not start a jail that has the same ip address as a jail that is already running. But if I define 2 jails the manual way in rc.conf that have the same ip address they will start. So is this a bug in the jail script or is there some reason for this restriction? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: rc.d jail script
On Wed, 13 Aug 2003 13:21:45 +0200 (MET DST) Mipam [EMAIL PROTECTED] wrote: Thanks for your reply :-) I search for Mike Makonnen in the current achives but i didnt find the update mentioned above. I would really like to try it out because i need it. Even more, it'll be on a dell server running tomorrow as well. :-) Perhaps you could tell me the link with the updates? I presume the man jail is gonna be updated as well after everything is through? Maybe it would be nice to add how to active it on boot in jail(8) because it took me some time before i realised i had to look in rc.conf(5) to see how the jail name could be related the dir, ip and hostname. Or even more easy, tell ppl to look in rc.conf(5) when wishing to start a jail when booting. Have a look at : http://lists.freebsd.org/pipermail/freebsd-current/2003-July/007656.html and http://lists.freebsd.org/pipermail/freebsd-arch/2003-August/001146.html regards, clem ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: rc.d jail script
On Wed, 13 Aug 2003 11:53:47 +0200 (MET DST) Mipam [EMAIL PROTECTED] wrote: Hi, Hi ! First of all, thanks for your patch :-) But mounting devfs within a jail is deprecated. if you want you can test Mike Makonnen's update based on Scot W. Hetzel and Jens Rehsack patches, have a look at -current archives (july 2003). The original script was written when devfs wasn't mandatory. Anybody got any other hints for me so that running for example apache in the jail will be fine? Maybe I'll run into some other surprises? Bye, I use a couple of jails without any problem :) regards, clem ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
rc.d jail script
Hi, I setup a jail environment using man jail and with some more struggle man rc.conf helped me out putting the stuff in the rc.conf file to start at boot time. I created a user in the jail and in the jail sshd started so that the user could log on. However, then i got no access to tty (bad file descriptor). Then i looked into ${jail_rootdir}/dev and it was nearly empty. So i mounted the devfs in the jailenv. I also mounted a procfs in the jail. I attached a diff with the original rc.d/jail script, since i had to adjust mine to make things happen at boot time. Anybody got any other hints for me so that running for example apache in the jail will be fine? Maybe I'll run into some other surprises? Bye, Mipam. ps could you also cc to [EMAIL PROTECTED] since i aint subscribed to this list? --- /usr/src/etc/rc.d/jail Mon May 5 17:38:41 2003 +++ /etc/rc.d/jail Wed Aug 13 11:28:19 2003 @@ -54,7 +54,8 @@ eval jail_ip=\\$jail_${_jail}_ip\ eval jail_exec=\\$jail_${_jail}_exec\ [ -z ${jail_exec} ] jail_exec=/bin/sh /etc/rc - + mount_devfs devfs ${jail_rootdir}/dev + mount -t procfs proc ${jail_rootdir}/proc jail ${jail_rootdir} ${jail_hostname} ${jail_ip} ${jail_exec} done } ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]