You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Block outgoing connections

Hello, i desire to know how to block outgoing connections on my macbook 12 using MacOs Sierra.

In firewall i only found i can block incomming connections.

Did i miss an option?

How can i do it form terminal?

macOS Sierra (10.12)

Posted on Sep 23, 2016 2:19 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 23, 2016 2:50 AM

You can edit the hosts file using terminal, although I'd not recommend it if you're unsure what you're doing. But doing so you can block outgoing access to specified IP addresses or websites.


If you simply want to stop your mac connecting out, why do you not simply turn off your wifi so you're not connected to the internet?


Alternatively a GUI firewall like Little Snitch would be a better option as it gives you very granular options for blocking incoming/outgoing traffic and is fairly easy to use and set up.

3 replies
Question marked as Top-ranking reply

Sep 23, 2016 2:50 AM in response to eradokir

You can edit the hosts file using terminal, although I'd not recommend it if you're unsure what you're doing. But doing so you can block outgoing access to specified IP addresses or websites.


If you simply want to stop your mac connecting out, why do you not simply turn off your wifi so you're not connected to the internet?


Alternatively a GUI firewall like Little Snitch would be a better option as it gives you very granular options for blocking incoming/outgoing traffic and is fairly easy to use and set up.

Block outgoing connections

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.