Hacker News new | past | comments | ask | show | jobs | submit login

Noob question, but is it possible to run both a VPN server and continue running Pihole on a RPi 4?



I have a pihole instance with DHCP running too, on a Pi4 with DSVPN (my preferred lightweight VPN) no worries. and my load averages are like 0,0,0


If you use dietPI on your raspberryPi you can easily install VPN, pihole, and much more.


I run Pihole on my openHAB instance, so I don't see why not.


almost certainly. You'd just want to run the DNS out through the VPN tunnel.


Yes, definitely!

Pihole is basically just a "pimped" dns server.

So, to rephrase your question: "is it possible to run both a VPN server and continue running a dns server?"


It works like a charm indeed, I run the WireGuard client on all my devices (laptop, phone, tablet) in on-demand activation mode (VPN activates whenever I leave my home WiFi), and configured them them to use the PiHole server as DNS, so I have ad-blocking on all my devices, all the time. I don't perceive any kind of negative effect on network performance (it helps to have fiber with symmetric up/down speeds for this setup)


Is it possible to set it up like this: I want to use mullvad VPN, so my IP/location is obfuscated, but still to have PiHole? So something like I connect my laptop and mobile to my router -> RPi -> mullvad VPN -> internet. If it is, how can I achieve it?


With Wireguard you set DNS server IP directly in the config file, it is not negotiable over the connection. So you can edit the config to set it to your pihole's ip. Or remove the DNS line altogether and then it won't touch your DNS settings at all.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: