eradokir

Q: 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

Close

Q: Block outgoing connections

  • All replies
  • Helpful answers

  • by stinkybumble,Helpful

    stinkybumble stinkybumble Sep 23, 2016 2:50 AM in response to eradokir
    Level 3 (557 points)
    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.

  • by eradokir,

    eradokir eradokir Sep 23, 2016 2:53 AM in response to stinkybumble
    Level 1 (4 points)
    Mac OS X
    Sep 23, 2016 2:53 AM in response to stinkybumble

    Im trying to block outgoing connections from my mac cause sometimes im using my iphone as a hotspot, and i have a limited data plan.

    I also saw an app called radio silence and it costs 3 times less than little snitch, will it do the same job? (deny apps to have  internet connection unless i want them to be able to connect)?

  • by stinkybumble,Solvedanswer

    stinkybumble stinkybumble Sep 27, 2016 9:58 AM in response to eradokir
    Level 3 (557 points)
    Sep 27, 2016 9:58 AM in response to eradokir

    Looking at their website it looks like it would do a similar job. Little Snitch has more in depth capability, but looking at Radio Silence it would do the job you're after. It offers a free trial so you could try it out and see if it works for you.