Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Aug 2013 08:56:28 -0400
From:      Fbsd8 <fbsd8@a1poweruser.com>
To:        Karl Pielorz <kpielorz_lst@tdx.co.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: jail.conf ignoring exec.fib?
Message-ID:  <520F72FC.90206@a1poweruser.com>
In-Reply-To: <1960A5B02323B4982B4C0320@Mail-PC.tdx.co.uk>
References:  <98486B2D79D00F0898B7C9E6@Mail-PC.tdx.co.uk> <520B7F0F.7020006@a1poweruser.com> <1960A5B02323B4982B4C0320@Mail-PC.tdx.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Karl Pielorz wrote:
> 
> 
> --On 14 August 2013 08:58 -0400 Fbsd8 <fbsd8@a1poweruser.com> wrote:
> 
>> The jail(8) man page lacks details about how to use exec.fib.
>>
>> It requires either a new kernel (with "options ROUTETABLES=2" or however
>> many you want), or a boot-time setting with "net.fibs=2" in
>> /boot/loader.conf (requiring a reboot).
> 
> Yup, done that :)
> 
>> setfib 1 route add default 198.192.64.21
>> creates routing table number 1 with that IP address.
>>
>> In this example exec.fib="1" would be coded.
>>
>> See setfib(8) and setfib(2) for details.
> 
> Yeah, I do that as well - but 'netstat -r -n' from within the jail shows 
> the systems default routing table.
> 
> As opposed to 'setfib 1 netstat -r -n' (outside the jail) which shows 
> fib either has no default gateway, or the one I set (which is right).
> 
> Just within the jail, it only every shows it's using the systems default 
> routing table :(
> 
> Fib's work fine outside the jail (i.e. I can show them, set differing 
> default gateways) - but no matter what I do, the 'exec.fib=' line in 
> jail.conf seems to be ignored, when the jail is run up - it only ever 
> sees the default routing table :(
> 
> -Karl
> 


What your describing seems that the netstat command issued from within 
the jail is not "JAIL" aware. Develop another way from the host to 
verify that jail's  'exec.fib=' parameter is working or not.







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