As stated in the question, I need to block all traffic out to internet except for one port on MAC OS X 10.8.x.  Can anyone assist?I just need the commands to run from a shell or edit any conf file?Thanks!
Block all traffic out except one port with pfctl for macOS
osx;firewall;pf