How to block and unblock https access on OS X 10.9 I am working on a test project that requires me to block https access for a specific app on my Mac (OS X 10.9). 

The instruction provided are "Chinese" to me and I have no idea where to start:

(Example: Alter the iptables)
Steps:


Block the port:

root@QA9:/opt/appname/appnamerouter2# iptables --list
root@QA9:/opt/appname/appnamerouter2# iptables -A INPUT -p tcp --destination-port 443/8443 -j DROP
root@QA9:/opt/appname/appnamerouter2# iptables --list

For Open the Port:

root@QA9:/opt/appname/appnamerouter2# iptables -D INPUT 1
It is not an answer in regards of the commands you have but a quick solution/workaround might be Little Snitch which doesn't force you to learn the terminal commands - but does need a little work to learn how to engage it selectively. 

It's a graphical tool which makes some people much more comfortable when configuring an application firewall. It also comes with great support and several nice guides for getting started.