News for hackers. Stuff that matters.
Re:Blocklist Facebook domains by eatbitseveryday on Tuesday March 20, 2018 @06:22PM (#16633334)
I'd prefer a solution that does not just work for a specific browser, but instead blocks all traffic regardless of browser, application, virtual machine, ...

That's just putting rules into /etc/hosts ?

edit - answered my own question :) Yes it will.

Re:Blocklist Facebook domains by Bedon292 on Tuesday March 20, 2018 @06:42PM (#16633476)
Consider something like Pi Hole (https://pi-hole.net/) as the DNS on your network. Where it will affect all devices on the network.
Re:Blocklist Facebook domains by JensRex on Tuesday March 20, 2018 @07:37PM (#16633849)
My problem with Pi Hole is that I'd rather have it return NXDOMAIN, instead of redirecting to some other IP.
Re:Blocklist Facebook domains by mastazi on Tuesday March 20, 2018 @08:21PM (#16634116)
If you want NXDOMAIN on Pi-Hole, upvote this feature request: https://discourse.pi-hole.net/t/implement-response-zone-poli...
Re:Blocklist Facebook domains by flukus on Tuesday March 20, 2018 @07:42PM (#16633882)
This will only protect you while your on your own network. A lot of the juciest data is about your public location, for that you need something device/browser specific.
Re:Blocklist Facebook domains by efreak on Tuesday March 20, 2018 @10:36PM (#16634855)
There's nothing (except possibly your ISP) stoping you from opening your firewall and using it remotely. I personally run dnsmasq (manually configured, but otherwise similar to pihole) on a VPS.
Re:Blocklist Facebook domains by flukus on Wednesday March 21, 2018 @12:33AM (#16635485)
> There's nothing (except possibly your ISP) stopping you from opening your firewall and using it remotely.

My ISP won't but there are ways around that. The biggest problem I've faced is on the modem side of things, finding something I'd trust to be open to the internet, ideally something I can install openWRT or similar on and something I know will work in my market. It's an options minefield.

Re:Blocklist Facebook domains by MertsA on Thursday March 22, 2018 @02:16PM (#16651125)
Just run a local caching resolver, on Linux that is super easy and uses little resources.
Re:Blocklist Facebook domains by toxican on Tuesday March 20, 2018 @07:11PM (#16633686)
I've got a RaspberryPi Zero (WiFi via USB..ugh). Would that be too slow for DNS, or would having my DNS server be local vs remote negate that slow interface?
Re:Blocklist Facebook domains by xianb on Tuesday March 20, 2018 @07:39PM (#16633859)
It's running fine for me on a Pi Zero W. There's honestly like no slowdown at all
Re:Blocklist Facebook domains by efreak on Tuesday March 20, 2018 @10:33PM (#16634833)
I don't have a Pi0, but I've had no problems running it on a single-core CHIP.
Re:Blocklist Facebook domains by iamspoilt on Tuesday March 20, 2018 @07:05PM (#16633635)
Doesn't support OS X though.
Re:Blocklist Facebook domains by spartanatreyu on Tuesday March 20, 2018 @07:12PM (#16633695)
How wouldn't it support OSX. You just set it up as the device that provides a mac with it's network. It doesn't have anything to do with OS's
Re:Blocklist Facebook domains by dec0dedab0de on Tuesday March 20, 2018 @07:09PM (#16633671)
wait do you mean you want to run it on OSX, or that the DNS in OSX is somehow different, and wont work with pihole as its server?
Re:Blocklist Facebook domains by ChrisSD on Tuesday March 20, 2018 @07:09PM (#16633676)
The idea is you use some inexpensive hardware (like a Raspberry Pi) and simple set all your devices to use it as a DNS server.
Re:Blocklist Facebook domains by jiaweihli on Tuesday March 20, 2018 @06:28PM (#16633376)
I use Little Snitch[1] (and its sibling Micro Snitch[2]) for filtering connections at the system level. I don't interact with it too often though, because I rarely install new apps.

Not to say /etc/hosts doesn't work, these days I just find I prefer things with better UX.

---

[1] https://www.obdev.at/products/littlesnitch/index.html

[2] https://www.obdev.at/products/microsnitch/index.html

Re:Blocklist Facebook domains by dotsh on Tuesday March 20, 2018 @06:36PM (#16633445)
Using Little Snitch to block all Facebook connections is like using goat to land on moon...
Re:Blocklist Facebook domains by odammit on Tuesday March 20, 2018 @06:50PM (#16633525)
That made me laugh out a boogie.
Re:Blocklist Facebook domains by jiaweihli on Tuesday March 20, 2018 @06:39PM (#16633461)
To clarify, I whitelist my browser entirely in Little Snitch and delegate to uMatrix and other extensions.

I also don't pre-emptively load in rules into Little Snitch - I have it running in active/interrupt mode, so it prompts me whenever it tries to make a new connection I haven't signed off on before. Unsurprisingly, not very many apps try to connect to Facebook.

Re:Blocklist Facebook domains by ReverseCold on Tuesday March 20, 2018 @06:38PM (#16633456)
What a funny example, why is that?
Re:Blocklist Facebook domains by dotsh on Tuesday March 20, 2018 @06:45PM (#16633495)
Because it is completely impractical. I used LS but it's a waste of time to check and block ads servers or malicious domains, which is why most garbage should be blocked from hosts or dnsmasq.
Re:Blocklist Facebook domains by ekovarski on Wednesday March 21, 2018 @12:13PM (#16639460)
The maintenance aspect of LS is definitely on the high side and only really dedicated folks will stick to it; if it were to come with auto-updated maintained lists it would most likely be used more
Re:Blocklist Facebook domains by alcover on Tuesday March 20, 2018 @08:25PM (#16634139)
Little Snitch is for MacOS. As a linux user I desperately looked for an equivalent and found none. Douane was suggested. It's no good. What a sorry state of affair. We need a simple app-level filtering solution.
Re:Blocklist Facebook domains by cyphar on Tuesday March 20, 2018 @11:20PM (#16635098)
There's OpenSnitch[1], though it hasn't been touched in a while. Someone needs to step up and maintain it (maybe I should do that...).

[1]: https://github.com/evilsocket/opensnitch

Re:Blocklist Facebook domains by qwerty456127 on Tuesday March 20, 2018 @09:02PM (#16634353)
Same story. I have always been dreaming of a Linux equivalent for LittleSnitch. More than a decade has passes since I've switched to Linux, still nothing...
Re:Blocklist Facebook domains by jsmthrowaway on Tuesday March 20, 2018 @06:36PM (#16633446)
Even better would be doing it on a device. It's a reason to have an intelligent router on your network where you run a custom dnsmasq or whatever, then you cover your phones and all the hootenanny that comes with a digital life. Like your fridge.
Re:Blocklist Facebook domains by hueving on Tuesday March 20, 2018 @06:29PM (#16633388)
Does /etc/hosts support wildcarding subdomains?
Re:Blocklist Facebook domains by jsmthrowaway on Tuesday March 20, 2018 @06:37PM (#16633449)
No. It supports no wildcards at all.
Re:Blocklist Facebook domains by ianai on Tuesday March 20, 2018 @06:27PM (#16633371)
Is there a way to export the list for a /etc/hosts.allow?
Re:Blocklist Facebook domains by Sir_Cmpwn on Tuesday March 20, 2018 @06:50PM (#16633527)
/etc/hosts won't work for your VM, probably
Re:Blocklist Facebook domains by IncRnd on Tuesday March 20, 2018 @07:24PM (#16633771)
It will work if you set the /etc/hosts inside the VM.
Re:Blocklist Facebook domains by Sir_Cmpwn on Tuesday March 20, 2018 @07:28PM (#16633798)
Aye, that it will
Re:Blocklist Facebook domains by mverwijs on Tuesday March 20, 2018 @07:07PM (#16633654)
I see no reason why not actually.
Re:Blocklist Facebook domains by Sir_Cmpwn on Tuesday March 20, 2018 @07:10PM (#16633681)
Your VM uses its own network stack and handles its own DNS resolution. /etc/hosts isn't a firewall, it's a zone file.