pfSense, a firewall distribution based on FreeBSD. Similar to Matt’s suggestion, but prepackaged and with a GUI. https://www.pfsense.org/