From owner-freebsd-questions@FreeBSD.ORG Thu May 15 02:00:18 2003 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 611ED37B401 for ; Thu, 15 May 2003 02:00:18 -0700 (PDT) Received: from smtp.hispeed.ch (isp247n.hispeed.ch [62.2.95.247]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0A7E43F93 for ; Thu, 15 May 2003 02:00:14 -0700 (PDT) (envelope-from locus@hispeed.ch) Received: from rock.stable.ch (dclient217-162-34-199.hispeed.ch [217.162.34.199])h4F90C24018761 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 15 May 2003 11:00:13 +0200 Received: from locus by rock.stable.ch with local (Exim 3.33 #1) id 19GEao-0004KM-00; Thu, 15 May 2003 11:00:02 +0200 Date: Thu, 15 May 2003 11:00:02 +0200 From: Thomas Spreng To: questions@freebsd.org Message-ID: <20030515090002.GA16590@rock.stable.ch> Mail-Followup-To: questions@freebsd.org, Matthew Seaman References: <20030515071046.GA13951@rock.stable.ch> <20030515084310.GA76063@happy-idiot-talk.infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030515084310.GA76063@happy-idiot-talk.infracaninophile.co.uk> User-Agent: Mutt/1.4i Sender: locus Subject: Re: jail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 May 2003 09:00:18 -0000 On Thu, May 15, 2003 at 09:43:10AM +0100, Matthew Seaman wrote: > On Thu, May 15, 2003 at 09:10:46AM +0200, Thomas Spreng wrote: > > hi, > > > > > 2) I am having trouble connecting jail to the internet. > > > here is an output of my ifconfig > > > harry@requiem:/home/harry# ifconfig rl0 > > > rl0: flags=8843 mtu 1500 > > > inet 209.94.197.222 netmask 0xffffffe0 broadcast 209.94.197.223 > > > inet6 fe80::230:f1ff:fe44:9768%rl0 prefixlen 64 scopeid 0x1 > > > inet 192.168.1.223 netmask 0xffffff00 broadcast 192.168.1.255 > > > ether 00:30:f1:44:97:68 > > > media: Ethernet autoselect (10baseT/UTP) > > > status: active > > > > afaik, inet aliases need a netmask of 0xffffffff. > > Usually you'ld be quite right in saying that, but unfortunately in > this case I'm afraid it is not correct. The rule is that the second > and subsequent addresses from any particular netblock get a netmask of > 0xffffffff. In this case, where the alias address comes from a > different netblock to the original address (so that the alias is the > first address from that netblock) it gets the natural netmask as the > original poster showed. of course! you're right. sorry for the confusion :) cheers