Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Oct 2008 11:53:47 +0200
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        =?UTF-8?B?VXJvxaEgR3J1YmVy?= <uros.gruber@gmail.com>
Cc:        freebsd-jail@freebsd.org
Subject:   Re: Local IP in jail
Message-ID:  <48F9B22B.4060200@quip.cz>
In-Reply-To: <3ef844230810180107k6d1c4c67vd33f83aa25960ee@mail.gmail.com>
References:  <3ef844230810180107k6d1c4c67vd33f83aa25960ee@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Uroš Gruber wrote:
> Hi,
> 
> I'm setting up new jail and I was thinking enabling it on some local
> IP (10.1.1.1 for example). I added an alias in rc.conf and also
> created the jail. The only problem I have is routing is not working as
> it should. I don't know if it is because of jail or do I need to add
> manual
> routing for this IP to be able comunicate with outside world. Is it
> even possible to work this way and than use ipf to redirect trafic
> onto jail itself?

It is possible. I am using Jails only this way (with private IPs and 
NAT+RDR in PF)
Maybe you need to set net.inet.ip.forwarding=1 (in sysctl.conf) or 
gateway_enable="YES" in rc.conf

Miroslav Lachman



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