Local IP in jail

Miroslav Lachman 000.fbsd at quip.cz
Sat Oct 18 09:53:17 UTC 2008


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


More information about the freebsd-jail mailing list