LuLu is the free open-source macOS firewall that aims to block unauthorized (outgoing) network traffic.
Full details and usage instructions can be found here.
https://github.com/objective-see/LuLu
Patrick Wardle - Objective-See