Date: Fri, 05 Mar 2004 09:27:10 -0600 From: Chris Meyers <chris@hddesign.com> To: Harald Schmalzbauer <h@schmalzbauer.de> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Jail setup Message-ID: <1078500430.648.12.camel@zim.hddesign.com> In-Reply-To: <200403050757.56345.h@schmalzbauer.de> References: <1078443115.662.61.camel@zim.hddesign.com> <200403050757.56345.h@schmalzbauer.de>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-5H+kXK/oBy2apmQ26VFd Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2004-03-05 at 00:57, Harald Schmalzbauer wrote: > ...cut... > > Things seem to be fine. I can see the jailed environment and everything > > looks fine. I log out and then try to set up the last configuations so = I > > can ssh in and run sendmail. In the non-jail /etc/rc.conf I added the > > following lines: > > > > ifconfig_fxp0_alias0=3D"10.0.0.203 netmask 255.255.255.0" >=20 > This is wrong. The jail can only have one IP so netmask has to be 0xfffff= fff=20 > (255.255.255.255) > Do you have something like this on the host? > fconfig_fxp0=3D"inet 10.0.0.202 netmask 0xffffff00" #host > ifconfig_fxp_alias0=3D"inet 10.0.0.203 netmask 0xffffffff" #jail 1=20 ...cut again... >=20 > Change the IP like I wrote above and everything should be fine. >=20 > -Harry This all worked (thank you Harry), but now I have a slightly different problem. I can ssh to the jail, but I get the following message: Warning: no access to tty (Bad file descriptor). Thus no job control in this shell. You can use the 'fetch' command to retrieve files over ftp or http.=20 fetch http://www.freebsd.org/index.html will download the front page of the FreeBSD web site. I figured this had something to do with my MAKEDEV problem so after re-reading the jail manpage (thanks albi) I found the following: mount_devfs devfs /usr/jail/dev Now I can ssh to the 10.0.0.203 address without problem. This is OK, but not ideal. I am wondering if there is something I need to do to set up the devfs in the jail permanantly, or do I have to run the mount_devfs command every time I start the jail. I was planning on writing a /usr/local/etc/rc.d shell script to start the jail on boot up anyway, so adding the mount command to that isn't a big deal, I was just wondering if there was another way. Thanks, Chris --=-5H+kXK/oBy2apmQ26VFd Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQBASJxOO2qgt+6sh1URAnsQAJ9SrDGuxtUjqAqVNRZOy89SWVRUtwCeML/4 DbZGQ9q8JuUO5neXKBEllQI= =VWBz -----END PGP SIGNATURE----- --=-5H+kXK/oBy2apmQ26VFd--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1078500430.648.12.camel>