Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Dec 2006 10:13:00 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To:        Gergely CZUCZY <phoemix@harmless.hu>
Cc:        freebsd-net@freebsd.org
Subject:   Re: jail addresses and default bindings
Message-ID:  <20061216100556.T91892@maildrop.int.zabbadoz.net>
In-Reply-To: <20061216094004.GA24480@harmless.hu>
References:  <20061216094004.GA24480@harmless.hu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 16 Dec 2006, Gergely CZUCZY wrote:

Hi,

> whenever i try to connect to a port of a jail from the
> host system, the kernel automaticly assigns the
> jail's IP address as the source address to the socket.
>
> I'd assume that this is not a so welcomed behaviour, because

it is because that's the way it always works with inet socket
communitcation. Connect to the looback address and the source address
will be the looback address; connect to any of the other "host
addresses" and the source will be the same address (unless told
to be a different one; see further down).

> this way it's hard to distingvish in a packet filter(let's say pf),
> among connections originating from within the jail itself or
> from the host system to the jail.

I won't ask why you would want to do that if you control it
from the "host" system anyway...

> my question is, are there any work in progress around this?
> if it's going to be reviewed/fixed/etc, when will it going to
> happen, and into which stable/release branch is it planned?

No if you want that make sure your connections comes from the
"host system" bind to the IP of the "host system" (or one of
them).  telnet -s, BindAddress of ssh, ... are your friends.

-- 
Bjoern A. Zeeb				bzeeb at Zabbadoz dot NeT



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