November 20, 2026
Backing up the routing table with netstat --libxo
FreeBSD netstat can emit JSON via libxo. A small script turns that JSON into route add commands, so routes added the normal way (route add) survive a reboot without being declared again in rc.conf.