From owner-freebsd-questions@FreeBSD.ORG Fri Mar 5 07:27:22 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 644C016A4CE for ; Fri, 5 Mar 2004 07:27:22 -0800 (PST) Received: from proxy.hddesign.com (dsl-194.madison.chorus.net [216.165.159.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5CFB43D31 for ; Fri, 5 Mar 2004 07:27:21 -0800 (PST) (envelope-from chris@hddesign.com) Received: from [10.0.0.219] (bob.hddesign.com [192.168.1.254]) by proxy.hddesign.com (8.12.8p1/8.12.8) with ESMTP id i25FRArm068891; Fri, 5 Mar 2004 09:27:16 -0600 (CST) (envelope-from chris@hddesign.com) From: Chris Meyers To: Harald Schmalzbauer In-Reply-To: <200403050757.56345.h@schmalzbauer.de> References: <1078443115.662.61.camel@zim.hddesign.com> <200403050757.56345.h@schmalzbauer.de> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-5H+kXK/oBy2apmQ26VFd" Message-Id: <1078500430.648.12.camel@zim.hddesign.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Fri, 05 Mar 2004 09:27:10 -0600 X-MailScanner: Found to be clean cc: FreeBSD Questions Subject: Re: Jail setup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: chris@hddesign.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2004 15:27:22 -0000 --=-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--