Pi Hole - network-wide ad blocking
-
@girish It's pretty straightforward as far as I can tell. I've got two instances hosted via Docker on Raspberry Pis at my home.
I agree with folks above suggesting though that it'd be best to expose only to internal services and likely inside a VPN. There is probably a decent way to do this in a single app, but I wonder if there is value in creating a new way to expose particular Apps to other apps via a shared network.
This would allow exposing a Pi-Hole app that has no "public" ports to any VPN app (OpenVPN, Wireguard, etc) with an internal hostname (app name?).
-
@iamthefij So, let's say the VPN app had a way to set a custom name server and one could just edit some file and set it to the pi-hole app, would this be good enough already? Given that the OpenVPN app is custom anyway, we can even add a simple UI that allows a user to set the DNS server IP (as you say, this might be the internal host name since IP might be dynamic actually).
This seems quite doable.
-
I've got one up and running on a public endpoint, no sweat. I just set the server to only allow queries from my IP range, deny all by default.
-
@girish yea, that's pretty much all that should be required. As long as the two containers can communicate via their internal host names, it should be sufficient.
The other advantage here is that it enables you to use the DNS from a mobile phone. Otherwise whenever you switch to a new network you receive the networks DNS via DHCP.
-
@doodlemania2 I'm not sure exactly what you've configured, but many folks do not have static IP addresses to do this with. Not only does my home network frequently change IP addresses, but my mobile network does as well.
-
@Mallewax said in AdGuard - Network-wide ads & trackers blocking DNS server:
Pihole plus Wireguard
Let's vote more here: https://forum.cloudron.io/topic/1355/pi-hole-network-wide-ad-blocking
In short why:
WireGuard is a very fast, safe and stateless VPN, great with mobile apps to be ALWAYS CONNECTED via your own VPN & covered by the Pi-hole adfilter & security platform. Faster (mobile) connections (no more ads and bulky stuff) to your own safe VPN (no more sniffing by mobile providers or obscure VPN providers).
Need to say more
-
@iamthefij For OpenVPN, I started a new thread - https://forum.cloudron.io/topic/3139/openvpn-admin-ui
-
While there is network connectivity between the apps (docker's
icc
is true), the apps do not know the internal IPs and thus cannot easily discover each other. We have to come up with some sort of standard hostname naming mechanism to allow easy configurability. -
@imc67 said in Pi Hole - network-wide ad blocking:
Only in combination with a VPN like WireGuard it's a perfect combination to be online, outside of your 'safe home wifi', without sniffing of mobile providers proxies and "free open wifi", and with a kind of safetynet by Pi-Hole.
This is a common misconception - Just because you are using a VPN does not mean you are completely safe. Sure you maybe safe from traffic sniffers at your local mcdonalds or starbucks, but a VPN that is tied to your name and a device that has other software on it like facebook, twitter, etc still makes you vulnerable to data leakage, tracking and more.
-
@savity I did give pi-hole a try but it was really hard to package from source easily. I managed to instead package the new kid in the block - AdGuard. Some reviews here https://home-assistant-guide.com/2020/09/26/adguard-home-vs-pi-hole-2020-two-ad-and-internet-tracker-blockers-compared/ and https://mariushosting.com/synology-adguard-vs-pi-hole/ . It requires some support from the platform, depending on time we might add it to Cloudron 6 (or the release after). https://forum.cloudron.io/topic/3075/adguard-network-wide-ads-trackers-blocking-dns-server is the forum topic for that.
-
@girish i would love to see PI-Hole in Cloudron.
And option to setup Pihole with Android Private DNS which requires DNS-over-TLS
and i wrote a quick setup script for Pihole DNS-over-TLS
https://github.com/varunsridharan/pi-hole-android-private-dns/blob/main/pi-hole5.sh
-
I have added an option to make the DNS server of the OpenVPN app configuration - https://forum.cloudron.io/topic/3875/adding-custom-dns-server . So, you can install AdGuard Home and OpenVPN and then make OpenVPN use AdGuard as the DNS server.