Multiple IPs in jails.
Pawel Jakub Dawidek
pjd at FreeBSD.org
Tue Mar 23 04:23:27 PST 2004
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!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040323/68f5b13e/attachment.bin
More information about the freebsd-current
mailing list