Pi-Hole and VPN Server

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
slimbrick
Posts: 6
Joined: Fri Dec 29, 2017 7:07 pm

Pi-Hole and VPN Server

Post by slimbrick »

I have a Raspberry Pi 2 with DietPi running Pi-hole as a DNS server. Moreover, I am doing DNS-Over-HTTPS using the argo-tunnel tool cloudflared (https://bendews.com/posts/implement-dns-over-https/).

Now I'd like to set up a VPN server on the same Raspberry Pi 2 for very occasional use when I'm on travel. I plan on doing so using the PiVPN script (https://pimylifeup.com/raspberry-pi-vpn-server/). I'm only going to port forward on the router when I'm on these trips, basically because having open ports is a bit spooky as far as I'm concerned.

My question is as follows: Given my DNS server is performing DNS-Over-HTTPS by setting server=127.0.0.1#5053 in files in /etc/dnsmasq.d per the link above, when I am running through the VPN setup with PiVPN and am asked to set a DNS provider, do I give a custom provider of 127.0.1#5053? Will the PiVPN script accept the port number as such? And, importantly, is there anything I am missing with the feasibility of using Pi-hole, DNS-Over-HTTPS, and a VPN server on the same Raspberry Pi?

Thanks
Post Reply