New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Pi Hole - Help
I’ve got a spare VPS and I have installed Pi Hole on it so my home LAN devices can communicate via WAN for DNS resolution and restricted access to it from IP so it can’t get abused.
I don’t have a static IP from my ISP but I have a registered DDNS name, is it possible to configure Pi Hole to look at my DDNS name to allow connections from the current IP I’ve been assigned my my ISP and update automatically when my ISP changes it?
I hope that makes sense?
Any help is appreciated
Comments
I don't know about this software specifically, but a general method is:
setup vpn betwen home router to vps ?
Setting up a VPN is probably the best way to do it. It encrypts your traffic and solves your dynamic IP issue.
Remember, regular DNS traffic is not encrypted.
My home router doesn’t support VPN and I’m reluctant to by a replacement since I’ve just replaced it and put in Wi-Fi APs around the house.
Never mind, I’ll just install it locally rather than putting it over WAN.
Another solution might be getting a Raspberry Pi, install Wireguard VPN on that and then set up an Unbound resolver on the Pi to upstream from the Pihole. That or take the Pihole off the VPS and host it locally on a Raspberry Pi.
Doing it locally might work better since the Pihole devs already stated that Pihole was meant to be run inside the LAN. If you want to run it on your VPS, Adguard Home is a better solution.
Did you ask your ISP if they offer a block of static IP's ??
I personally run Pi-hole on a VPS. I block all inbound traffic with ufw then whitelist permitted inbound traffic. I run the following script via cron to periodically whitelist a given domain.
@Freek
That's how I would do it.
For years I've been running piholes behind VPNs, but since the pandemic started I've also been running a public-facing pihole VPS to open it up to my whole household. Fortunately my 'dynamic' home IP hasn't changed in years, so I didn't have to worry about scripting it, I just firewalled all other IPs.
I managed to catch a Pi Zero 2 W in stock a couple days ago, so I'll be transitioning to a traditional in-house setup once the mail arrives.
I started out with pihole nearly from the start and just got fed up with it breaking down and the devs being douches about decisions they made, blah blah. As someone said before, they don't support the VPS use case whenever they caused a bug unnecessarily and don't want to fix.
I recommend giving up on pihole and using NextDNS instead. Along with the chrome extension that gives advanced features to NextDNS.
Sorry, don't know the answer to this one.
Putting DNS servers on WiFi devices seems like bad idea.
that's why i use a VPS, only my home network and a few friends have access.