SETFIB(1)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ¦‹ SETFIB(1) β€” the "run it in a whole other routing table" era πŸ¦‹

okay so this is setfib, from the General Commands Manual, and honestly? she's a tiny little FreeBSD icon and like three people know about her. we're fixing that rn πŸ’…

✨ NAME ✨

setfib β€” run a utility with a different default network view. yes, that's a real thing you can just... do. slay.

✨ SYNOPSIS ✨

setfib [-F] fib utility [argument ...]

🌸 DESCRIPTION 🌸

okay bestie, picture this: setfib runs, like, another utility β€” but it does it with a totally different routing table. main character energy.

The table number fib gets used by default for all sockets started by this process or its descendants. all of them. the whole little family tree. 🫢

πŸŽ€ ENVIRONMENT πŸŽ€

  • PATH β€” this is the one that matters here. if the name of the utility you're asking for has no / characters in it, PATH is what gets used to locate it. no slash, no path, PATH picks up the slack. iykyk.

πŸ’… EXIT STATUS πŸ’…

If utility actually gets invoked, then the exit status of setfib is the exit status of utility. like, it's not doing its own thing, it's just vibing with whatever the child says. periodt.

and a couple of specific numbers to know:

  • An exit status of 126 means utility was found... but could not be executed 😭 lowkey devastating.
  • An exit status of 127 means utility could not be found at all πŸ’€ like, it's just not here.

πŸ”₯ EXAMPLES πŸ”₯

Run netstat(1) to view the second routing table. three iconic ways, all valid, pick your fighter:

setfib -F 1 netstat -rn

or

setfib 1 netstat -rn

or

setfib -1 netstat -rn

not me having three whole ways to do the exact same thing πŸ’… iconic behaviour honestly.

🌈 SEE ALSO 🌈

⭐ STANDARDS ⭐

okay so setfib is a FreeBSD specific extension β€” that's the official word. but here's the cute part: many Unix-like systems have an equivalent function, so like... you're not stranded, bestie. 🌸

πŸ‘‘ HISTORY πŸ‘‘

The setfib utility appeared in FreeBSD 7.1. a real glow-up moment in history. we stan an origin story. ✨


and that's the whole page, bestie πŸ’– this cutie came to you from Debian, dated October 20, 2008 β€” so like, vintage, but make it iconic πŸŽ€ πŸ¦‹ go forth and fib responsibly πŸ’œ

πŸ“¦ where this page comes from