Multiple IPs in jails.

From: Pawel Jakub Dawidek <pjd_at_FreeBSD.org>
Date: Tue, 23 Mar 2004 13:23:25 +0100
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.

-- 
Pawel Jakub Dawidek                       http://www.FreeBSD.org
pjd_at_FreeBSD.org                           http://garage.freebsd.pl
FreeBSD committer                         Am I Evil? Yes, I Am!

Received on Tue Mar 23 2004 - 03:23:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:48 UTC