How To Block Outgoing Connections Mac With Little Snitch

Here is a script to take the hosts from From http://pgl.yoyo.org/adservers/ and convert them to rules for Little Snitch.

Aug 25, 2019  Just grab the output and copy/paste into Little Snitch. The script is written to block access to any process, any port. You can also delete those lines and it will only block Mail. Or use the options to enter any process, port or protocol you want to block. LuLu is a great free, shared-source, macOS firewall that can block unknown outgoing connections, unless explicitly approved by the user. It runs on OSX 10.12+ and runs well on macOS Mojave. It can be configured to allow or block Apple signed binaries and has clear GUI based rule set that can be edited.

It has options to grab the entire list or grab new entries past a certain date.

How To Block Outgoing Connections Mac With Little Snitch

Just grab the output and copy/paste into Little Snitch.

The script is written to block access to any process, any port.You can also delete those lines and it will only block Mail.Or use the options to enter any process, port or protocol you want to block.

Installation: Copy the text generated by the output from a plaintext editor into LittleSnitch Rules

Save the script in your home directory, I called mine getadblock.sh.

How To Block Outgoing Connections Mac With Little Snitch

Make sure to make it executable:

chmod +x getadblock.sh

Output looks like:

File - GetAdblock.sh

Run Command

I have disabled all incoming rules, and explicitly added a block for ssh. However, little snitch blocks absolutely nothing.
Rules:
https://imgur.com/kCXPFSY

How To Block Outgoing Connections Mac Little Snitch


How To Block Outgoing Connections Mac With Little SnitchHowever, from another host on my network:

How To Block Outgoing Connections Mac With Little Snitch Free

What makes it worse it that I was trusting Little Snitch to block this for some time, and I realized today I can even ssh into my machine from a machine I've connected to via an openvpn connection....so I've been exposing myself to that entire network on the other side.

How To Block Outgoing Connections Mac With Little Snitch Game


Help please!
Thanks in advance.

How To Block Outgoing Connections Mac With Little Snitch 2

d1rewolf