Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Mar 2004 13:23:25 +0100
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        freebsd-current@freebsd.org
Subject:   Multiple IPs in jails.
Message-ID:  <20040323122325.GL8930@darkness.comp.waw.pl>

next in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040323122325.GL8930>