Enable internet only for specific apps

firewallinternet

I will need to spend few weeks with no internet, but I will still have my mobile hot spot. So I wonder if I can prohibit all apps including OS (which I know will try silently to update something) from using internet except terminal, as I still want to be able to connect to my remote server and code.

A free (and/or native) solution would be preferred but I would settle with something I have to pay for if necessary.

Best Answer

TCPBlock

TCPBlock is a lightweight and fast application firewall ... you can prevent selected applications on your computer from opening connections to the network.

The app also includes a white list mode which seems to be what you want in this case, where all connections are blocked except the ones you define.

TCPBlock is currently free and can be downloaded here.