4 ms·
For my home desktop browser, I just use uBlock Origin to block ads. But for my phone, I set up a PiHole running on an EC2 instance and VPN into it from my phon
by Sohcahtoa82 7y ago
For my home desktop browser, I just use uBlock Origin to block ads.
But for my phone, I set up a PiHole running on an EC2 instance and VPN into it from my phone. Blocks ads in everything, not just my web browser. The VPN is configured to only tunnel DNS lookups, not traffic, so the EC2 bandwidth bill is minimal.
- christian_fei 7y agointeresting approach
- Kipters 7y agoI've been doing the same (using Wireguard for DNS), except PiHole is running inside a Docker container on my Pi4 (I have a FTTH line, with a public/static IPv4 address). My ISP also started assigning /64 IPv6 nets to whoever requests one, so I might try that next
- ananonymoususer 7y agoProbably lightweight enough for the free EC2 tier too!
- Sohcahtoa82 7y agoOh, absolutely. But I have an instance that I already use for other things (IRC bouncer, Mumble server, Taiga task/issue tracker, and test server for a game I was writing) that has plenty of CPU time to spare, so it's not costing me anything.
- graton 7y agoThat is only free for 12 months though. Google Cloud and Oracle Cloud offer one free VM in their "always free" offering. Personally I use a $5/month Digital Ocean box.
- ycombonator 7y agoI host Pihole on Digital Ocean as well.
- apta 7y agoWhat VPN are you using?
- Sohcahtoa82 7y agoOpenVPN
- billyhoffman 7y agoInteresting that DNS look ups go to the Pi-hole in EC2, but the subsequent web requests come from the phone. This effectively nullifies the performance benefit of CDNs. Your phone is where ever it is, but your browser is being instructed to connect to edge servers that are geographically close to the AWS region where Pi-hole instance is running. That said, the massive performance gains of blocking ads and intrusive 3PC probably more than makes up for it, but something to consider.
- Sohcahtoa82 7y agoNever actually thought of that, to be honest. But for the most part, I imagine it won't make much of a difference. I live within 300 miles of the data center containing my EC2 instance.
- lucasverra 7y agoI use https://nextdns.io/ https://nextdns.io/, that basically does that
- fragmede 7y agoRFC 7871 specifies ECS, in which the DNS forwards the client's subnet to the upstream DNS server in order for CDNs to continue to be useful. I have no idea if the Pi-hole is configured with this extension.