Is it possible to run both PiHole and PiVPN on raspberry pi 4 8gb?
I run both on a pi 3b+ without issue so I suspect you’d be fine.
Yes, definitely. I run both on a Pi Zero W.
They strongly recommend that you install PiHole first if you’re going to install PiVPN on the same hardware. I can’t remember why, I just remember that guidance from the docs somewhere.
Yes. I run that and and several other things on a 3B+.
just remember after installing pi vpn you have to portforward your pi ip and add the port that was listed in the pivpn setup. I for the longest couldn’t figure out why my phone would connect to the vpn but no data usage was active.
I have both running fine on a pi3 . You need to have pihole running first and then you can follow this guide for PiVPN https://pimylifeup.com/raspberry-pi-vpn-server/
The beauty adding PIVPN/WireGuard on to a RasPi with a working Pihole configuration is you will have the option during the WG setup to add Pihole Ad-Blocking to your WG clients, it works great.
You may run into this issue:
https://www.reddit.com/r/pihole/comments/ys35p0/how_to_add_delay_startup/
I had to add DELAY_STARTUP=10 to /etc/pihole/pihole-FTL.conf.
I use a ZeroV1* for my VPN tunnel and everything works fine for a dozen devices + one mobile off-home : Pihole, Stubby for DOH, two OpenVPN instances and a DDNS updater. A pi4 will obv run fine for Pihole + a VPN, maybe it’s even overkill unless you have an unusual lot of devices.
I could even use the VPN to access my Jellyfin instance so I guess the network load isn’t an issue for sane uses. (Only time I got lags was on a previous install when I mistakenly used the VPN over wifi for the entire internet and went on Twitch.)
*Technically it’s a ZeroW but I added an ethernet adapter, so I’ll assume performances are similar to a wired Zero
I have both with DOH
What’s cool is PiVPN detects the pihole instillation and installs accordingly. I have 4gb rpi4 and it only uses up about 20ish % of memory. If you have a fan, don’t forget to overclock your pi too
Thank you!
Any specific instructions to install PIVPN?
That’s what I did. Thanks!
Thanks for this! I have my pi zero w running just pihole and I was wondering if I needed to buy something beefier to run both. Thanks for saving me some cash!
Did you run them in containers or directly in an OS? If so, what OS are you using?
How is that will work with op address?
Hmm maybe that’s what my issues has been. Would lose data turning wireguard on.
Can it work that I leave PiVPN always ‘‘on’’, but that only my mobile phone connects to it when i’m not on home WIFI - and desktop etc. that’s always in my house on ethernet cable never goes through PiVPN?
Yeah. But I can’t figure out the IP addresses. For instance I have SSH to the pi hole 192.168.75.249 and that also works as DNS. So the questions are what the IP address I should give the PIVPN? Also what if I have that IP address set up as DNS then I have to do with my public IP which is dynamic or I have to choose public DNS?
Thanks.
There are 2 things that you can consider when install PiVPN
- It will ask if you want OpenVPN or WireGuard, I think WireGuard is better option, it’s lightweight
- PiVPN can detect that you have Pihole pre-installed, and ask if you want to use PiHole for VPN also, choose Yes