News for hackers. Stuff that matters.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by killjoywashere on Friday January 19, 2018 @03:31PM (#16189505)
What I want for all these services (Little Snitch, ESET, etc) is an EasyList-like ... list. A community-aggregated and reviewed list of servers that don't merit my connection. I'd pay a monthly subscription fee for that.

I'd also like separate lists for

* "this wifi is public, be extra cautious"

* "this wifi is public, be nice and don't torrent, do backups, etc"

* "I'm on a metered connection (e.g. LTE), don't run torrents, backups, etc"

edit: for anyone looking for a monetizable idea: this post has 41, no 42, no 43 points in about an hour. Probably a good idea...

Re:LuLu: An open-source macOS firewall that blocks unknown o... by simongr3dal on Friday January 19, 2018 @05:14PM (#16190356)
My solution right now (on macOS) is Gas Mask[1] (a menubar hosts file manager) combined with some very nice hosts files[2]. It certainly kills of most of the pop-ups I run into.

[1]: https://github.com/2ndalpha/gasmask [2]: https://github.com/StevenBlack/hosts

Re:LuLu: An open-source macOS firewall that blocks unknown o... by jachee on Friday January 19, 2018 @07:22PM (#16191179)
I handle this for my whole network with a pi-hole[0].

[0] https://pi-hole.net

Re:LuLu: An open-source macOS firewall that blocks unknown o... by ryandrake on Friday January 19, 2018 @09:32PM (#16191713)
This is the way. No need to individually configure all your devices. My DHCP will hand out a local DNS to each client that maps all the ad/malware domains to 0.0.0.0, so if you’re on my network, even as a guest, you get blocking for free.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by zacmps on Saturday January 20, 2018 @04:43AM (#16192773)
I've always been hesitant to use DNS to block ads because it's difficult to turn off for non techies. Did the pi hole cause any issues in your experience?
Re:LuLu: An open-source macOS firewall that blocks unknown o... by ryandrake on Saturday January 20, 2018 @05:17AM (#16192844)
Vanishingly few. Occasionally, I'm browsing the web and hit a text link that takes me to the browser's "I can't find this site" default screen. This usually happens with sponsored links that are not served from ad networks yet link to known ad sites.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by uxp on Saturday January 20, 2018 @10:34AM (#16193669)
My wife frequently complains about sponsored Google searches not resolving. She doesn't want to use an in-browser adblock, so the links will still appear, but aren't usable. Also, many redirecting analytics services from emails get blocked.

Personally, I don't find these to be breaking issues for my use. My only issue is that the PiHole interface's administrative features are authenticated via the PiHole's service user account password. This is the Ubuntu user password for the user the service runs under when installed on Raspbian or whatever. There's no secondary credential store. There isn't even a list of users. To log in, you enter the user's password. If there was a way to assign credentials to network users and allow them to whitelist/blacklist entries and audit that, it could easily be much more non-technical user friendly.

One final half complaint. If a link is direct to a blocked site that is served over ssl, you won't get the nice "This site has been blocked" page. It will just show the standard Chrome/Safari/Firefox "could not connect" error. As a technical user, this is normal and makes sense. For others, it makes "the internet" appear "broken". Obviously this isn't something a PiHole can fix on it's own, and I don't expect it to. It's a slippery slope to add a trusted root or intermediary cert to each of my network devices and allow a random box on my network to dynamically "poison" my DNS and serve fraudulent dynamically generated site certificates just to show me an informational page to allowing a random box on my network proxy and DPI my SSL traffic. It's not something I'm comfortable with maintaining.

Re:LuLu: An open-source macOS firewall that blocks unknown o... by ryandrake on Saturday January 20, 2018 @11:52AM (#16194037)
All good points. I avoid some of the headache by not using the actual PiHole software, and therefore not bringing along whatever credential baggage that comes with. Just dnsmasq, and cron to update the blocklist. My setup runs directly on my router as well, eliminating the need to maintain another box.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by matthewmcg on Saturday January 20, 2018 @02:20PM (#16194911)
Are you using a Ubiquiti router for this by any chance? Would love to hear more details as I have been thinking about implementing something like this on an EdgeRouter Lite.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by ryandrake on Saturday January 20, 2018 @07:43PM (#16196280)
It's running on an ASUS router with Asuswrt-Merlin firmware.

https://gist.github.com/ryandrake08/bd2616eacbf2565243ffee74...

Re:LuLu: An open-source macOS firewall that blocks unknown o... by e40 on Saturday January 20, 2018 @12:55PM (#16194412)
Care to share your setup? Perhaps via a Gist?
Re:LuLu: An open-source macOS firewall that blocks unknown o... by hendersoon on Saturday January 20, 2018 @01:40PM (#16194677)
I run pihole in a docker container on linux, so the password thing isn't a problem.

Also to people redirecting ad servers to 0.0.0.0, that can cause page damage particularly with things like iframes. Pi-hole instead redirects them to its own webserver and serves up 1x1 pixel transparent images to avoid this.

Re:LuLu: An open-source macOS firewall that blocks unknown o... by rpastuszak on Saturday January 20, 2018 @07:18AM (#16193102)
pi-hole is fantastic.

Plus, you get free ad blocking for most of the native apps on your mobile devices when using wifi at home or outdoors with VPN (haven't tested the latter yet).

Re:LuLu: An open-source macOS firewall that blocks unknown o... by 2dvisio on Friday January 19, 2018 @08:34PM (#16191510)
When I tried pi-hole I was amazed by it. Until the day I discovered someone in China hacked it :-///
Re:LuLu: An open-source macOS firewall that blocks unknown o... by DavideNL on Saturday January 20, 2018 @02:33AM (#16192501)
...and how did you come to the conclusion they hacked the pi-hole?
Re:LuLu: An open-source macOS firewall that blocks unknown o... by chewyland on Saturday January 20, 2018 @12:54AM (#16192284)
Sounds like a poor or reused password.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by edgartaor on Saturday January 20, 2018 @10:57AM (#16193762)
I got tons of shh login attempts from Russia and China. I just install fail2ban.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by hendersoon on Saturday January 20, 2018 @01:42PM (#16194688)
Why is your pi-hole exposed to the internet? That's not a great idea. You could have other people using your DNS service also.

It's true it's security through obscurity and won't slow down a spear fisher, but I always change the SSH port to something like 22022 when I have to expose it to the internet and find this eliminates almost all of the portscanning/doorknob rattling. Same thing with wordpress, changing the /wp-admin directory is immensely helpful.

Re:LuLu: An open-source macOS firewall that blocks unknown o... by dfee on Friday January 19, 2018 @09:45PM (#16191761)
That’s terrible. Did you move on to something else?
Re:LuLu: An open-source macOS firewall that blocks unknown o... by AckSyn on Friday January 19, 2018 @09:16PM (#16191658)
Could have been a number of things - most likely culprit I've seen is that it was left exposed to the internet, ssh most likely, and the default password wasn't changed.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by DavideNL on Saturday January 20, 2018 @02:38AM (#16192511)
Yep, pi-hole - on a raspberry pi - is awesome.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by kekebo on Saturday January 20, 2018 @07:45AM (#16193150)
Do you load the hosts directly as a remote pointing to the raw file? Gas Mask is complaining about "unknown content" when I try that.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by simongr3dal on Saturday January 20, 2018 @06:17PM (#16195970)
I use one of the non Github mirrors that are linked in the readme, they are not https though.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by kekebo on Sunday January 21, 2018 @06:46AM (#16197728)
Ah thanks, I'd missed those, github forcing TLS on raw files is the problem in the first place: https://github.com/2ndalpha/gasmask/issues/90#issuecomment-2...
Re:LuLu: An open-source macOS firewall that blocks unknown o... by eddieplan9 on Friday January 19, 2018 @05:37PM (#16190556)
Little Snitch has this with automatic profile switching: https://blog.obdev.at/automatic-profile-switching/ though you will have to build the list of rules yourself
Re:LuLu: An open-source macOS firewall that blocks unknown o... by j45 on Friday January 19, 2018 @09:27PM (#16191695)
With LS afaik it's not possible to run multiple profiles at the same time (say you have groups of rules for a particular app), otherwise it would be perfect.

ie., turn Apple Telemetry on or off.

Re:LuLu: An open-source macOS firewall that blocks unknown o... by lifty on Friday January 19, 2018 @04:56PM (#16190201)
I would pay for such a service as well. In addition to that, I would love if this service would allow companies like Apple and Google to maintains their own lists of IP's and update them regularly, so you can be 100% sure that an IP belongs to them.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by inlined on Saturday January 20, 2018 @04:26AM (#16192735)
[disclaimer, I work for google]

I’m sure if Google made such a list there would be another HN article about how Google is evil and trying to cut out competition.

Re:LuLu: An open-source macOS firewall that blocks unknown o... by igravious on Friday January 19, 2018 @05:25PM (#16190443)
Is that not somehow auto-discoverable using DNS trickery?
Re:LuLu: An open-source macOS firewall that blocks unknown o... by uxp on Saturday January 20, 2018 @10:46AM (#16193726)
Not entirely. From what I understand, these outbound firewalls are working at the kernel level and interject themselves into a network connection outside of the DNS lookup process. You could reverse-dns lookup the IP, which Little Snitch tries, but with things like CDNs and AWS EC2, you end up with a lot of reports of applications trying to connect to "foo.akamai.com" OR bar.akamai.com", where foo and bar are entirely separate entities, or just simply to ec2-0.1.2.3.aws.amazonaws.com or what-have-you. Little Snitch appears to maintain it's own cache of DNS entries as well, so if you've got one application that connects to some CDN's IP via it's own CNAME, many times other applications will appear to be connecting to the first application's CNAME when they attempt to connect to the same IP because LS has resolved that IP to the first CNAME more times, or first, or something like that.

It's not perfect, and frequently it isn't even helpful.

Re:LuLu: An open-source macOS firewall that blocks unknown o... by killjoywashere on Friday January 19, 2018 @05:01PM (#16190242)
perfect seed material for the list. Start from an empty Little Snitch config and whois everything that tries to connect.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by zarify on Friday January 19, 2018 @05:42PM (#16190600)
I know it's not the same thing, but I use TripMode on macOS for your last two points, which selectively blocks app access based on what network you're connected to.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by kylehotchkiss on Friday January 19, 2018 @09:39PM (#16191736)
I also love TripMode. Uses a kernel extension which some users may dislike but so nice to turn off Dropbox/Google Drive/Arq/iClouds backup services while tethering at Panera
Re:LuLu: An open-source macOS firewall that blocks unknown o... by adjohn on Friday January 19, 2018 @06:59PM (#16191056)
I second this! TripMode is a great product if you frequently tether with your phone, or connect to wifi networks with limited bandwidth (airplanes).
Re:LuLu: An open-source macOS firewall that blocks unknown o... by nkristoffersen on Friday January 19, 2018 @08:01PM (#16191364)
Third it! Trip mode is great. I tether from my phone a lot and need to protect my data from background usage.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by iamdave on Friday January 19, 2018 @05:00PM (#16190237)
takes notes

So would you want just the curated list, or an application that uses said list and provides feedback to the user? Either? Both?

Because I've _sort_ of done this on my personal Mac-though for reasons more pertaining to an infrastructure I maintain for a client, scaling this to a type of service wouldn't be TOO difficult.

Re:LuLu: An open-source macOS firewall that blocks unknown o... by killjoywashere on Friday January 19, 2018 @05:02PM (#16190253)
I want to drop that list into little snitch. In fact, when I install Little Snitch, I want it to ask me "would you like to subscribe to iamdave's list?"
Re:LuLu: An open-source macOS firewall that blocks unknown o... by iamdave on Friday January 19, 2018 @05:05PM (#16190274)
Hrm. I think you've given me something fun to spend my weekend on
Re:LuLu: An open-source macOS firewall that blocks unknown o... by bwilliams18 on Friday January 19, 2018 @08:49PM (#16191567)
would love to see whatever you end up with! -B
Re:LuLu: An open-source macOS firewall that blocks unknown o... by artificial on Saturday January 20, 2018 @12:48AM (#16192263)
Should you make some progress post back here, please.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by igravious on Friday January 19, 2018 @05:24PM (#16190436)
Like how a number of different ad blockers subscribe to the EasyList ad blocking list, correct? https://easylist.to/

“ The links listed below allow you to select filter lists for use in your browser provided that you are using a compatible ad blocker (tested with Adblock Plus, AdBlock and uBlock Origin). Furthermore, EasyPrivacy Tracking Protection List is available for Internet Explorer 9 and higher. ”

Re:LuLu: An open-source macOS firewall that blocks unknown o... by killjoywashere on Friday January 19, 2018 @06:06PM (#16190781)
Yes, but at the OS level, not the browser level.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by sudouser on Friday January 19, 2018 @06:43PM (#16190990)
host file?
Re:LuLu: An open-source macOS firewall that blocks unknown o... by killjoywashere on Friday January 19, 2018 @07:01PM (#16191075)
Check out Little Snitch: it has far more granularity than the hosts file.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by sudouser on Friday January 19, 2018 @11:43PM (#16192100)
ty
Re:LuLu: An open-source macOS firewall that blocks unknown o... by igravious on Saturday January 20, 2018 @05:39AM (#16192888)
Love your username.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by AdmiralAsshat on Friday January 19, 2018 @05:43PM (#16190610)
There used to be an application used by torrenters called PeerGuardian and then PeerBlock, which was basically just that. It was a curated list of IPs that were known to belong to domains at universities, companies, governments, etc. It probably had malicious domains in there as well.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by shibel on Friday January 19, 2018 @06:31PM (#16190924)
An MVP for this would be quite simple to build. Do you happen to use Little Snitch? AFAIK, they don't really have an import/export option (their "backup" option is tied to the user account), but I've found a way around this limitation that is only a tad little more tedious than an auto-workflow.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by killjoywashere on Friday January 19, 2018 @06:46PM (#16191001)
I'm up to my ears in work. That's why I'm willing to pay. Please, be my guest. Build it, take my money.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by prepend on Friday January 19, 2018 @05:06PM (#16190289)
I’d do a one time fee of $10 or something. But a fee forever is not appealing.

I would rather commit to running a certain number of compute jobs a month to trade cpu or storage or whatever. And do that forever.

I barter my unused cpu for your whitelist service that aggregates community activity.

Re:LuLu: An open-source macOS firewall that blocks unknown o... by killjoywashere on Friday January 19, 2018 @05:09PM (#16190307)
Bartering cpu on a laptop sounds like a good way to have a hot lap and a short battery life.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by dylan604 on Friday January 19, 2018 @10:11PM (#16191845)
or maybe the old skool option of paid upgrades? $10 first time fee to get the current list. then, as you start to notice things not getting blocked, purchase the upgrade/updated list?

I guess it depends on the monthly fee? $10/month, nope. $12/year-$1/monthly or $10/year-1payment to get monthly updates, quite possibly. i do understand updating/maintaining a fresh list will cost someone somewhere money.

Re:LuLu: An open-source macOS firewall that blocks unknown o... by tpetry on Saturday January 20, 2018 @05:22AM (#16192857)
And extend the idea with community-aggregated whitlists. If i wand to use a software like spotify it for sure hat to load the songs somehow from their servers, so the application-intended ntwork community should be whitelisted.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by aplorbust on Friday January 19, 2018 @09:02PM (#16191620)
What if I start a DNS service that blocks every ad server domainname in the "EasyList"?

Personally I avoid using third party DNS, but if there is demand for this...

Re:LuLu: An open-source macOS firewall that blocks unknown o... by josho on Friday January 19, 2018 @09:30PM (#16191709)
I do this on my home network. It works well, so I encourage you to build this out.

As an added bonus As a service you could point the dns entries to your own web server and serve up cat pictures or motivational pictures in place of ads.

Re:LuLu: An open-source macOS firewall that blocks unknown o... by DavideNL on Saturday January 20, 2018 @02:42AM (#16192520)
No need to build anything: https://pi-hole.net/
Re:LuLu: An open-source macOS firewall that blocks unknown o... by aplorbust on Saturday January 20, 2018 @01:55PM (#16194769)
The solutions I use were already "built" before this one existed. I was using djbdns to block ads before there were adblockers.

I think its great that more users, through DNS-based ad blocking projects, may see how controlling their own DNS is useful, perhaps in ways they might not have imagined.

However the last time I looked at it, I recall this project was defaulting to using open resolvers run by third parties, e.g. Google. Maybe I am remembering incorrectly since so many projects like to use these third party resolvers.

In any event, that is not how my solutions work. A third party with such delegated (ultimate) authority from the user is not part of the solutions I designed for myself.

Also, I never used dnsmasq as part of any solution. I have a strong bias against it for a number of reasons. If I recall correctly, pi-hole relies on dnsmasq.

Re:LuLu: An open-source macOS firewall that blocks unknown o... by fjsolwmv on Friday January 19, 2018 @09:06PM (#16191632)
Re:LuLu: An open-source macOS firewall that blocks unknown o... by aplorbust on Friday January 19, 2018 @09:51PM (#16191790)
What if I let the user run it locally? I point a local dnscache at a local, customised "root.zone" that blocks all these EasyList ad server domains? User could have several alternate root.zones that provide different "profiles". To switch profiles simply switch root.zones.

(I used to do this for myself. Then I stopped using caches altogether. Now I do everything with tinydns, cdb and a customized stub resolver.)

Or what if I resolve all the ad server domains in the EasyList each day from various checkpoints around the world and publish an IP blocklist? Then users can import it into their application level firewalls.

Re:LuLu: An open-source macOS firewall that blocks unknown o... by srett on Saturday January 20, 2018 @06:59AM (#16193058)
A good bunch of these resolve to AWS/cloudflare/etc. nowadays, so good luck with that.. :-/
Re:LuLu: An open-source macOS firewall that blocks unknown o... by aplorbust on Saturday January 20, 2018 @01:43PM (#16194695)
No luck needed. Authoritative DNS makes it easy.

Even without using authoritative DNS, if we only have a blocklist of IP addresses and some application-level firewall solution, we can examine outgoing HTTP headers in a client-side proxy and filter accordingly.

I also do not use a popular browser that runs Javascript to send and retrieve to and from the internet. That is the root cause of most users problems. This is the most effective solution, bar none. The third parties users want to avoid are almost almost always depending on Javascript to accomplish their goals.

Connecting a powerful interpreter with potentially full control over the users computer to the open internet. Then believing this can be safe.

The user is granting use of this interpreter to third parties. In this thread we can see how users struggle to know which third parties can be trusted. All for the sake of keeping that interpreter open to "good" third parties to access at will over the internet. (Why is a good question.)

Early web browsers called on other, separate programs to do specific jobs outside of rendering HTML. Taking a cue from that history, I use simpler, limited programs with no built-in interpreter to do two specific jobs: sending and retrieving.

Third parties can return code in response to requests for content, but I am under no obligation to run the code, let alone run it from a popular browser with a powerful interpreter that is connected to the internet.

Cannot speak for others, but this approach has worked well for me as the www worsens.

Re:LuLu: An open-source macOS firewall that blocks unknown o... by culot on Saturday January 20, 2018 @02:04PM (#16194812)
I've found that unbearably slow every time I've used it.
Re:LuLu: An open-source macOS firewall that blocks unknown o... by chewyland on Saturday January 20, 2018 @12:54AM (#16192282)
Pihole is your best friend.