From owner-freebsd-questions@FreeBSD.ORG Thu May 15 01:43: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 AAEFA37B401 for ; Thu, 15 May 2003 01:43:18 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id B731C43F3F for ; Thu, 15 May 2003 01:43:16 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h4F8hBJG076357 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 15 May 2003 09:43:11 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h4F8hAj3076356 for questions@freebsd.org; Thu, 15 May 2003 09:43:10 +0100 (BST) (envelope-from matthew) Date: Thu, 15 May 2003 09:43:10 +0100 From: Matthew Seaman To: questions@freebsd.org Message-ID: <20030515084310.GA76063@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , questions@freebsd.org References: <20030515071046.GA13951@rock.stable.ch> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline In-Reply-To: <20030515071046.GA13951@rock.stable.ch> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-38.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT version=2.53 X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) 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 08:43:19 -0000 --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 15, 2003 at 09:10:46AM +0200, Thomas Spreng wrote: > hi, >=20 > > 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=3D8843 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 >=20 > 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. Cheers, Matthew=09 --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --PNTmBPCT7hxwcZjr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+w1MedtESqEQa7a0RArNgAJ4irPVUo4AcP2UW5ijR3JsxKsIlGQCdHRW3 C2ZWLMfnjKDuepXMC9nqGHE= =ldWv -----END PGP SIGNATURE----- --PNTmBPCT7hxwcZjr--