Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jan 2021 16:49:26 -0500
From:      Ernie Luzar <luzar722@gmail.com>
To:        "Alexander V. Chernikov" <melifaro@ipfw.ru>
Cc:        qroxana <qroxana@protonmail.com>,  "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>
Subject:   Re: jail fib no longer works after net.add_addr_allfibs=0
Message-ID:  <5FFCC7E6.70401@gmail.com>
In-Reply-To: <4325361610393748@mail.yandex.ru>
References:  <E1kywTP-00076Z-81.qroxana-mail-ru@smtp40.i.mail.ru> <20210111155022.71549b54@bsd64.grem.de> <YOYA9CI5rRgTMRWDLmVLRmtFBUMupAM4NvDT2X01ic-tJHzRiJeA-j6ZSNU3CCDmIAUpclXnZQGEGstteJBRD44iS2ZxsG8yJG4OgKijA6U=@protonmail.com> <4325361610393748@mail.yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
I think you are all barking up the wrong tree

The default OS comes with only ONE fib.
You need to re-compile the kernel with "option ROUTETABLES=2"
or use the net.fibs=2 option in /boot/loader.config file.

0= default host routing table
1= first additional routing table
2= second additional routing table

Then issue host console commend;
setfib 1 route add default "that jails default route ip address"

Adding the above to /etc/rc.conf would make it happen on every boot of 
the host system.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5FFCC7E6.70401>