Hacker News new | ask | show | jobs
by JohnCurran 1806 days ago
For ad blocking outside the home, install WireGuard on the RPi and configure it to use pihole as its DNS server. Install script should prompt you to do this automatically if it detects pihole is installed.

Then just connect your WireGuard client on your phone to the endpoint

Use something like freedns.afraid.org for dynamic IP address support

1 comments

If you already own a domain, you can also pretty trivially (<10 lines of bash) implement your own dynamic IP address support with your DNS providers (my solution uses Cloudflare).

In a nutshell: `update-dns get-my-current-external-ip-address $MY_DOMAIN_NAME`

You can have a subdomain like `vpn.yourwebsite.com` point to your residential IP. It may take a bit of fussing to get the ports and such right. But otherwise it's "just worked" for me, for the last 6 months.

Useful if you want to remove the dependency on yet-another-service-provider that can go out of business (the dynamic-dns people).