From owner-freebsd-current@FreeBSD.ORG Tue Mar 23 04:23:26 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5B9D16A4DD for ; Tue, 23 Mar 2004 04:23:26 -0800 (PST) Received: from darkness.comp.waw.pl (unknown [195.117.238.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 384B243D41 for ; Tue, 23 Mar 2004 04:23:26 -0800 (PST) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 25D4CACAF8; Tue, 23 Mar 2004 13:23:25 +0100 (CET) Date: Tue, 23 Mar 2004 13:23:25 +0100 From: Pawel Jakub Dawidek To: freebsd-current@freebsd.org Message-ID: <20040323122325.GL8930@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="V4N4TvXMNzuFMHdo" Content-Disposition: inline User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 Subject: Multiple IPs in jails. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 12:23:27 -0000 --V4N4TvXMNzuFMHdo Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi. I've spent some time on my mijail5.patch and here it is: http://people.freebsd.org/~pjd/patches/mijail5.patch What is it for? - it allows to use multiple IPs inside a jail: # jail / temp 10.0.0.5,10.0.0.6,10.0.0.7 /bin/tcsh - it fix socket selection order - now when there is a open port outside a jail on INADDR_ANY and someone will open the same port inside a jail, connection goes to listner inside a jail; with this patch we have this order: 1. non-jailed && non-wild 2. non-jailed && wild (e.g. INADDR_ANY) 3. jailed && non-wild 4. jailed && wild - it handles INADDR_ANY behaviour in jail correctly - it is not translated to pr_ip. I had many reports releated to this patch about resolving doesn't work properly inside a jail. This bug is fixed here. Tests, reviews, comments, suggestions, etc. are welcome. --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --V4N4TvXMNzuFMHdo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAYCw9ForvXbEpPzQRAo1LAKC4q8IHjEqK6daIsEk0UR0Ll/C+gwCgwe7f dVpaiGqu/COBFMWyrsG0z5I= =zqa2 -----END PGP SIGNATURE----- --V4N4TvXMNzuFMHdo--