rajannpatel / Pi-Hole-PiVPN-on-Google-Compute-Engine-Free-Tier-with-Full-Tunnel-and-Split-Tunnel-OpenVPN-Configs

Run your own privacy-first ad blocking service in the cloud for free on Google Cloud Services.
MIT License
1.31k stars 111 forks source link

How to set Google cloud instance as a DNS Server & VPN #77

Closed adzimzf closed 3 years ago

adzimzf commented 3 years ago

Hi , this is a cool script to make pihole+VPN installation easier, but I have a question.

In my usage, I want to use the pihole server as my DNS server for my home router so every device in my home will block ads. but also when I'm out of home I can use VPN to block ads?

currently, I solved it by running this command pihole -a -i all but I think that's not secure.

Thank you.

rajannpatel commented 3 years ago

If you are only allowing your home IP address to access it in the Google Cloud Firewall and making sure the rules in the Google Cloud Firewall are limited to only your trusted IP addresses, it should be fine. If you are no longer assigned an IP, it shouldn't be allowed in on your Google Cloud Firewall.

adzimzf commented 3 years ago

I got it, thanks a lot for your advice