Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jun 2009 10:26:14 +0200
From:      Erik Norgaard <norgaard@locolomo.org>
To:        questions@freebsd.org
Subject:   Re: Problem with jail connecting out
Message-ID:  <4A38A8A6.4090702@locolomo.org>
In-Reply-To: <4A37F2B7.6000505@locolomo.org>
References:  <4A37F2B7.6000505@locolomo.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Erik Norgaard wrote:

> I have no problem connecting from the host to the jail, but the other 
> way around doesn't work.
> 
> Also, related, how do I configure multiple interfaces in a jail?

Second problem solved, starting jail with

   # jail /var/jail jail 127.0.0.2,172.16.0.2 /bin/sh /etc/rc

So, now I have:

vr1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 
mtu 1500
	options=2808<VLAN_MTU,WOL_UCAST,WOL_MAGIC>
	ether 00:40:63:ee:97:f1
	inet 172.16.0.2 netmask 0xffffffff broadcast 172.16.0.2
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	inet 127.0.0.2 netmask 0xffffffff

Now, I can connect out on vr1 to 172.16.0.1, but not on lo0 to 
127.0.0.1. Any suggestions what might be wrong?

Btw, this jail and host system is FBSD 7.2-STABLE.

Thanks, Erik

-- 
Erik Nørgaard
Ph: +34.666334818/+34.915211157                  http://www.locolomo.org



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