Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Apr 2003 15:49:20 +0200 (CEST)
From:      Oliver Fromme <olli@secnetix.de>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Multiple ip-numbers in jails (fixed INADDR_ANY behaviour).
Message-ID:  <200304161349.h3GDnKxl008394@lurza.secnetix.de>
In-Reply-To: <20030416120259.GB92137@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
Pawel Jakub Dawidek <nick@garage.freebsd.pl> wrote:
 > On Wed, Apr 16, 2003 at 12:25:11PM +0100, Jan Grant wrote:
 > +> Hang on, so you're saying that if my machine has (say) 4 IP addresses,
 > +> and the jail has two of them, and I've a process listening on INADDR_ANY
 > +> in a non-jail, and one listening on INADDR_ANY in a jail,

That shouldn't be possible at all.  You cannot have multiple
processes listen on the same address and port, no matter
whether they're in a jail or not.

If this patch for multiple IP numbers in jails breaks that
behaviour, then it does not fix INADDR_ANY behaviour, despite
what the subject says.  :-)

 >         # /usr/sbin/sshd -p 666
 >         # jail / temp <yourip> /usr/sbin/sshd -p 666

That last command _must_ fail with errno EADDRINUSE.

Regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"If you do things right, people won't be sure you've done
anything at all." -- God in Futurama season 4 episode 8



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