Solved FIB documentation

Hi all,
I have a happy server with ~10 jails on it and lots of IPv6 and lots of good stuff going on. However, my IPv6 tunnel broker (HurricaneElectric) blocks IRC ports, so I want to set up my ZNC jail so that it uses the IPv6 given to me by OVH. Therefore, I'm going to use FIBs. However, no documentation whatsoever is to be found. I was given this example this morning but am really unsure about how to play with it and adapt it to IPv6.

So I just want to create a FIB, which default route is fe80::1ee6:c7ff:fe52:740%em0 and then assign it to my jail (most certainly using iocage set exec_fib=1 znc). If possible, I'd like to see the rc.conf(5) syntax so that my bouncer can have its routes all set up when the server reboots.
Cheers,
 
Last edited by a moderator:
Hello,
I am assuming that you've already configured /boot/loader.conf with however many FIBs you will need. If not, this will be needed and you'll have to reboot any time you change this. Set it higher than you need and you'll be good to go.
echo 'net.fibs=2' >> /boot/loader.conf

An example /etc/rc.conf to start with would start with something like this.
Code:
static_routes="fib1default4"
ipv6_static_routes="fib1default6"
route_fib1default4="default x.x.x.1 -fib 1"
ipv6_route_fib1default6="default x:x:x:x:x:x:x:x -fib 1"
More syntax guidance is in rc.conf(5).
 
Back
Top