[PATCH] freebsd: Implement selection of FIB (routing table) for tunneled packets

Frank Behrens frank at harz.behrens.de
Sat Apr 17 15:23:17 UTC 2021


Am 17.04.2021 um 17:00 schrieb Jason A. Donenfeld:
> Does this actually fix or change anything? Don't new sockets have
> fib==0 right out of the gate already?

New sockets inherit the fib from the current process. If you create
the wg interface from a process with different fib, that fib will also 
be used for this socket. Probably the difference in code is not very
important for the case of a system default boot. But that may vary
for jails/vnets with different default fibs.

In my test case the sequence
 > setfib 1 ifconfig wg0 create ....
 > ifconfig wg0 tunnelfib 0
failed.

    Frank

-- 
Frank Behrens
Osterwieck, Germany


More information about the WireGuard mailing list