ARKIMEDZ

Posts Art About

RaspberryPi 4 8GB

Pi-hole – Network-wide Ad Blocking

Tailscale I already use Tailscale to connect my devices via a personal VPN. But looks like I can also use my PiHole from outside its local network using Tailscale: Access a Pi-hole from anywhere · Tailscale Docs. Basically, if all my devices are on the Tailscale VPN then I don’t need to the router shenanigans that I had to do with the Google Wifi router. And the biggest advantage is that my devices (as long as they’re on my VPN) can use the PiHole even when I’m outside the house.

I updated the Tailscale service running on the Raspberry Pi to add the DNS flag and followed the other steps.

sudo tailscale up --ssh --advertise-exit-node --accept-dns=false

But it didn’t work till I updated the PiHole config:

In the Pi-hole Admin page in Settings > DNS, make sure that Listen on all interfaces, permit all origins is selected.

Works like a charm now! I enabled the TailScale VPN on my phone, I disconnected from the WiFi and tested that Ads were still getting blocked! Works like a charm.


Update: I’m sitting in a Starbucks right now, and in Tailscale, I’m using the raspberry pi running in my home as my exit node. So I’m getting the following: * Ad-blocking using the PiHole running on Raspberry Pi * Secure networking since all the traffic from the Starbucks Wifi is being routed via my private network.

Performance issues

Backups