From owner-freebsd-questions@FreeBSD.ORG Fri Feb 23 19:38:40 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 15DAA16A403 for ; Fri, 23 Feb 2007 19:38:40 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.freebsd.org (Postfix) with ESMTP id 90ACB13C48D for ; Fri, 23 Feb 2007 19:38:39 +0000 (UTC) (envelope-from stapleton.41@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so736390nfc for ; Fri, 23 Feb 2007 11:38:38 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tzHgRNQFGR+jFyqQfYxWeUftz6QbG6a7OdS2mVW0NXJI7yYPboydSllYKZUEpTvgS3Si8J5uKwAU7yCkPtsEddyRHQcxoEco9REgtQ5s3nPuRSYRHKa/zOkVuEW0v8k9dhWKTRlV3zBT+PuBYxiRbdy7afCxluU3G/TnyQRc4BM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=P8ldrWBOoxEH7uS73d8w5mfpURa6tDxd4OUknVs4sIXzMcW7pRk7K0KykdQWboMpub0Lzqwt4s+0+wra5oeful53WavnHNRbtNx8AGnZ6rCnF3yWCzRB/G+gsyvrdjI8x2unu/jyPuSjM3hbzp+mQhGD41GMJut+QSlhreV0T3k= Received: by 10.82.114.3 with SMTP id m3mr924216buc.1172259517911; Fri, 23 Feb 2007 11:38:37 -0800 (PST) Received: by 10.82.191.16 with HTTP; Fri, 23 Feb 2007 11:38:37 -0800 (PST) Message-ID: <80f4f2b20702231138l122a0749hf790d3d67c411797@mail.gmail.com> Date: Fri, 23 Feb 2007 19:38:37 +0000 From: "Jim Stapleton" To: "Philipp Wuensche" In-Reply-To: <45DF3EE1.6030901@h3q.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <80f4f2b20702231107p1cf7f4f3n5896aa7e8ef0ecaf@mail.gmail.com> <45DF3EE1.6030901@h3q.com> Cc: freebsd-questions@freebsd.org Subject: Re: problems with jail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Feb 2007 19:38:40 -0000 new host rc.conf: hostname="elrond.ameritech.net" #ifconfig_nve0="inet 192.168.1.84 netmask 255.255.255.0" ipv4_addrs_nve0="192.168.1.84-85/24 netmask 255.255.255.0" defaultrouter="192.168.1.1" #ifconfig_nve0="DHCP" usbd_enable="YES" linux_enable="YES" sshd_enable="YES" sendmail_enable="NO" inetd_flags="-wW -a 192.168.1.84" rpcbind_enable="NO" attempts after rebooting still fail. The jail rc.conf: #hostname="legolas.ameritech.net" #ifconfig_nve0="inet 192.168.1.85 netmask 255.255.255.0" #defaultrouter="192.168.1.1" rpcbind_enable="NO" ifconfig_nve0="" I have tried this with both the above setup, and one setup commenting out the ifconfig_nve0="" line, and uncommenting the other ifconfig_nve0/defaultrouter lines (just in case I misread something). Neither worked. Thanks -Jim Stapleton On 2/23/07, Philipp Wuensche wrote: > Jim Stapleton wrote: > > Jail: > > sjss@elrond 14:04:11 (0) ~ > sudo jail /jail/ legolas 192.168.1.85 > > /bin/csh > > %telnet 192.168.1.4 25 > > Trying 192.168.1.4... > > ^Z > > Suspended > > %kill %1 > > [1] Terminated telnet 192.168.1.4 25 > > %ifconfig -a > > nve0: flags=8843 mtu 1500 > > ether 00:13:d4:2e:2f:62 > > media: Ethernet autoselect (100baseTX ) > > status: active > > plip0: flags=108810 mtu 1500 > > lo0: flags=8049 mtu 16384 > > > > > > OK, from host: > > sjss@elrond 14:02:11 (0) ~ > ifconfig -a > > nve0: flags=8843 mtu 1500 > > inet 192.168.1.84 netmask 0xffffff00 broadcast 192.168.1.255 > > ether 00:13:d4:2e:2f:62 > > media: Ethernet autoselect (100baseTX ) > > status: active > > plip0: flags=108810 mtu 1500 > > lo0: flags=8049 mtu 16384 > > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 > > inet6 ::1 prefixlen 128 > > inet 127.0.0.1 netmask 0xff000000 > > sjss@elrond 14:04:08 (0) ~ > jls > > JID IP Address Hostname Path > > 1 192.168.1.85 legolas /jail > > > > > > > > Is that what you needed > > You only have configured the 192.168.1.84 ipaddr on your nve0 interface, > you need to configure the 192.168.1.85 ipaddr. on the interface too. > > Delete the > > ifconfig_nve0="inet 192.168.1.84 netmask 255.255.255.0" > > line in rc.conf and replace it with > > ipv4_addrs_nve0="192.168.1.84-85/24" > > and do a reboot. If you don't want to reboot, use "ifconfig nve0 alias > 192.168.1.85/32" to configure the alias while the system is running. > > You could also use the jail_example_interface="nve0" option in rc.conf > and reboot, but I don't recommend that because it is somewhat broken and > poorly implemented. > > greetings, > philipp > > >