Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Nov 2001 22:11:08 -0800
From:      "Crist J. Clark" <cristjc@earthlink.net>
To:        francisv@dagupan.com
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Help with setting up jail
Message-ID:  <20011119221108.X69555@blossom.cjclark.org>
In-Reply-To: <10F29E27A956D511B0940050DA8D86A9340BAA@apmail.dagupan.com>; from francisv@dagupan.com on Tue, Nov 20, 2001 at 10:42:59AM %2B0800
References:  <10F29E27A956D511B0940050DA8D86A9340BAA@apmail.dagupan.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 20, 2001 at 10:42:59AM +0800, francisv@dagupan.com wrote:
> Hi,
> 
> This is my first time to configure a jailed environment on FreeBSD
> 4.4-STABLE. I have read the `man jail(8)' and successfully installed the
> jail directory tree:
> 
>      D=/here/is/the/jail
>      cd /usr/src
>      make world DESTDIR=$D
>      cd etc
>      make distribution DESTDIR=$D NO_MAKEDEV=yes
>      cd $D/dev
>      sh MAKEDEV jail
>      cd $D
>      ln -sf dev/null kernel
> 
> But once inside the jail environment, I could not ping nor contact the
> outside world (even the parent environment). It displays an error:
> 
> 	ping: socket: Operation not permitted
> 
> How can I install other packages if I can't even ping the parent host?

ping(8) send out the ICMP echo datagram on a raw socket. You can't
open raw sockets in a jailed environment. You cannot ping(8). Opening
TCP connections or sending UDP datagrams should work fine. Try
traceroute(8) or telnet(1).
-- 
Crist J. Clark                     |     cjclark@alum.mit.edu
                                   |     cjclark@jhu.edu
http://people.freebsd.org/~cjc/    |     cjc@freebsd.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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