From owner-freebsd-isp Sun Dec 31 16:58:43 2000 From owner-freebsd-isp@FreeBSD.ORG Sun Dec 31 16:58:41 2000 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from hex.databits.net (hex.databits.net [207.29.192.16]) by hub.freebsd.org (Postfix) with SMTP id 35DAC37B400 for ; Sun, 31 Dec 2000 16:58:41 -0800 (PST) Received: (qmail 23757 invoked by uid 1001); 1 Jan 2001 00:59:59 -0000 Date: Sun, 31 Dec 2000 19:59:59 -0500 From: Pete Fritchman To: Dave VanAuken Cc: freebsd-isp@FreeBSD.ORG Subject: Re: Jail problems Message-ID: <20001231195959.A23337@databits.net> References: <20001231183152.A68613@skriver.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from dave@hawk-systems.com on Sun, Dec 31, 2000 at 06:29:41PM -0500 Sender: petef@hex.databits.net Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org ++ 31/12/00 18:29 -0500 - Dave VanAuken: >4.1.1 on intel box If you get a chance, cvsup to 4.2-stable. > [snip] > >**problem 1: cannot set root password for jail - get "Mismatch; try >again, EOF to quit." continuously dumped to the screen... have to >reboot. weird.. maybe a stdin problem? It only asks you once, then it just scrolls that? (once you get your jail running below, try running this again and see if you get the same result...) > >skipping that problem... we set accounts, timezone, etc... not >installing any packages yet >add ip address to NIC... ifconfig... as in man for jail >mount the file system as in man >run jail command as in man > jail /usr/home/lcadmin testhostname 192.168.1.111 /bin/sh /etc/rc > >do a ps to ensure the jailed processes are running... yes > >**problem 2: cannot ping to IP address from host machine, cannot >connect to IP address via telnet - get "All Network ports in use" from >other machines and "time out" from host machine Time out from host machine and you can't ping it from the host machine -- sounds like you aliased the IP wrong. What is the exact ifconfig line you typed? All network ports == can't find ttys to use. Did you 'sh MAKEDEV jail' in your $jail/dev directory? >[snip] >chflags: /dev/tty[pqrsPQRS]*: No such file or directory >chmod: /dev/tty[pqrsPQRS]*: No such file or directory >chown: /dev/tty[pqrsPQRS]*: No such file or directory ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This confirms that you haven't MAKEDEV jail'd correctly (or the MAKEDEV you have is problematic -- this is why you might want to cvsup to 4.2-stable) >[snip] >/dev/ttyv0: no >such file Again.. >[snip] Good luck -- jail is a really neat toy once you have it running. -pete -- Pete Fritchman Databits Network Services, Inc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message