Date: Sun, 03 Nov 2013 11:40:13 -0500 From: Boris Kochergin <spawk@acm.poly.edu> To: freebsd-net@freebsd.org Subject: Re: Jail FIB? Message-ID: <52767C6D.9010206@acm.poly.edu> In-Reply-To: <52767B9A.6090002@acm.poly.edu> References: <52767B9A.6090002@acm.poly.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Figured out my own question. I was jexec'ing into it, and jexec inherits FIB 0 from the host. SSHing into the jail results in the desired behavior. Thanks. -Boris On 11/03/2013 11:36, Boris Kochergin wrote: > Hi. > > I am running 9.2-RELEASE/amd64 and would like to have a jail use FIB 1. > The host portion of this seems to work fine: > > # sysctl net.fibs net.fibs: 2 > > # setfib 0 route -n get default > ... > gateway: 64.147.127.17 > > # setfib 1 route -n get default > ... > gateway: 216.168.38.241 > > In my /etc/rc.conf, I have: > > jail_wa_console_fib="1" > > And, with rc_debug="YES", rc.d tells me that it picked that up: > > /etc/rc.d/jail: DEBUG: wa_console fib: 1 > > But, inside the jail: > > # sysctl net.my_fibnum > net.my_fibnum: 0 > > And, indeed, it takes the FIB 0 route out to the world. Why? How do I > make it use FIB 1? > > -Boris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52767C6D.9010206>