Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jul 2005 13:16:48 +0200
From:      Michael Schuh <michael.schuh@gmail.com>
To:        delphij@frontfree.net, freebsd-security@freebsd.org
Subject:   Re: bind() on 127.0.0.1 in jail: bound to the outside address?
Message-ID:  <1dbad315050704041679890bb7@mail.gmail.com>

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

in Jails you cannot bound any application to the 127.0.0.1,
you ccan always bound only to the jail-ip.

If you setup sshd in jail (or an other way to get a shell in this jail) so=
=20
you can make the ifconfig -a so that you can see you have only the outbound
address 192.168.1.1 ( the jail-ip) to bind services to that address.

jou can not have more then one 127.0.0.1, because this address is
viewable in the Host
enviroment, but you can try to setting up 127.0.0.2 as second
ipdadress of the lo-device
and get these the jail, but you loose then the other ip ( i think, be not s=
ure).

try to set the second ip-address in rc.conf of the jail.

best regards

michael



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