Bobcares Logo
Search Call 1-800-383-5193 Emergency Contact
Bobcares Logo
Search Call 1-800-383-5193 Emergency Contact
Emergency Contact

Pi-Hole on google cloud | All About

by Maheen Aboobakkar | Jun 15, 2022 | Google cloud platform, Latest | 0 comments

Pi-Hole on google cloud is a DNS based adblocker. Without installing any client-side software, it protects our devices from unwanted content.

As part of our Google Cloud Platform Support Service, Bobcares responds to all inquiries, no matter how big or small they are.

Let’s look at Pi-Hole on Google Cloud in more detail.

Pi-Hole on Google Cloud

pihole on google cloud

Account Creation and Login to Google Cloud

  1. Firstly, navigate to https://cloud.google.com.
  2. Then, click Console at the top right if we have previously used Google’s Cloud Services.
  3. If this is the first time, click Try Free.
Account Creation
  1. Firstly, Accept the terms and proceed.
  2. Then, continue by creating a payment profile.

Creating a project and a compute engine

  1. Firstly, select Hamburger Menu at the top left.
  2. Then select Compute Engine.
  3. Then, choose one or more virtual machine instances.
  4. If we don’t already have one Project, make one.
  5. If we haven’t done so already, enable billing for this Project.
  6. Finally, The Compute Engine will start up.

Compute Engine Virtual Machine Setup

  1. Firstly, create a Compute Engine Virtual Machine instance.
  2. Then, customize the instance.
  3. Then, change Name to
    pihole
    .
  4. For the Free Tier, choose the closest region.
  5. Select Operating System
    Debian
    and Version
    Debian GNU/Linux 9
    (stretch) with a
    Size
    (GB) 30 Standard persistent disc under Boot Disk.
  6. Then, click the
    Network
    tab after
    expanding Management
    ,
    Security
    ,
    Disks
    ,
    Networking
    , and
    Sole Tenancy
    . Under
    Network Interfaces
    , select the Pencil icon.
  7. It’s not a good idea to use an ephemeral external IP address. To reserve a new static IP address, select
    Create IP Address
    .
  8. Then, click Create.
  9. By clicking the
    SSH
    button in a browser, we can log into the Virtual Machine via SSH. Make a mental note of the External IP address.
  10. Finally, click the
    Hamburger
    Menu in the upper left corner, then
    VPC Network
    , then
    Firewall Rules
    .

    At the top of the page, in the centre, click

    Create Firewall
    Rule.
    Allow-openvpn
    should be the rule’s name, and the Targets dropdown should be set to All instances in the network.
    0.0.0.0/0
    should be the source IP ranges. Select the
    udp
    checkbox, and the port number next to it should be changed from all to
    1194
    . After that, press the
    Create
    button. Because our server does not run any service on Port
    3389
    , we can disable the
    default-allow-rdp
    rule that Google set up with a default action of Allow. It is perfectly safe to ignore this rule. If you disable the
    default-allow-ssh firewall
    rule, the browser-based SSH in the Google Cloud Console will be disabled.

Updating & Upgrading Debian

  1. Firstly, we want to update and upgrade the Virtual Machine once we log in via SSH.
  2. Then, by running this command in the bash shell, we can ensure that we have elevated root privileges.
    sudo su
  3. Finally, run the following command in the bash shell to update and upgrade:
    apt-get update && apt-get upgrade -y

Pi-Hole Installation

  1. Firstly, run the following command in the bash shell to ensure we have elevated root privileges:
    sudo su
  2. Then, in the bash shell, run the following command to install Pi-Hole:
    curl -sSL https://install.pi-hole.net | bash

    We’ll proceed to a blue screen with a series of prompts.

    *Select OK or affirmatively for all prompts until we’re asked to select an upstream DNS provider. *Then, when asked if we want to enter a custom domain or a custom search domain, say “No.” *Then, when the question “Select Protocols” appears, IPv6 must be turned off. *Finally, for all other prompts, select OK or answer affirmatively.

  3. Set a strong password for the Web Interface that we will remember.
    pihole -a -p
  4. Then, set the
    Interface Listening Behavior
    of the Pi-Hole to local using the following command:
    pihole -a -i local
  5. Finally, at the bottom of the page, click the
    Save
    Button.

[Looking for a solution to another query? We are just a click away.]

Conclusion

To sum up, our Support team went over the Pi-Hole on Google Cloud in more detail.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

Related posts:

    1. KMS Encryption in GCP – An Introduction
    2. Google AutoML Export model | How-to Guide
    3. Google Cloud Dataproc Agent Reports Job Failure: Troubleshoot
    4. Error Gcloud SQL Backups List httperror 403 the Client is not Authorized to Make this Request

Submit a Comment Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • A 15-Minute Self-Hosted RAG Stack Tutorial: From Zero to Production
  • Designing Data Pipelines That Prevent Outages Across Global Systems
  • Deployment Automation: Deploy With Efficiency and Consistency
  • What Is Proactive Monitoring? A Complete Guide
  • AI Use Cases: How Artificial Intelligence Is Used Across Industries

Categories

  • Advanced Vulnerability
  • AI Services
  • AI Support
  • AIOps
  • Amazon Web Services (AWS)
  • Apache
  • API Integration
  • Application Development
  • Azure
  • Cloud Cost Optimization
  • Cloud Management
  • Cloud-Native Application
  • Cloudflare
  • cPanel
  • cPanel migration
  • Cyberpanel
  • DDoS
  • Development Service
  • DevOps
  • DevOps Consulting
  • DevSecOps
  • Digital Transformation
  • DigitalOcean
  • DirectAdmin
  • Docker
  • Drupal
  • Ecommerce
  • Filezilla
  • FTP
  • Google cloud platform
  • HAProxy
  • Headless CMS Integration
  • Hosting Support
  • IIS
  • Infrastructure Management & Optimization
  • Kubernetes
  • KVM
  • Laravel
  • Latest
  • Linode
  • Litespeed
  • LXC/LXD
  • Magento
  • Mobile App Development
  • MongoDB
  • Moodle
  • MySQL
  • NFS
  • Nginx
  • OnApp
  • Outsourced Support
  • OVH
  • ovirt
  • pfsense
  • Plesk
  • PostgreSQL
  • PowerDNS
  • Product Engineering
  • Proxmox
  • RedHat
  • Redis
  • Sendmail
  • Server Administration
  • Server Management
  • Software Development
  • SQLServer
  • Technical Support
  • UI/UX
  • Virtualizor
  • VMware
  • VPN
  • Vulnerability Scanning
  • Vultr
  • Web Development
  • Windows
  • WordPress
  • WordPress Hosting
  • WordPressHA

Subscribe to our newsletter

Footer newsletter

Email sales@bobcares.com | Phone 1-800-383-5193

Product Engineering

  • MVP Build
  • MVP to Scale
  • Product Maintenance

Digital Transformation

  • Process Digitization & Automation
  • Systems Integration & Workflow Orchestration
  • Data Enablement & Decision Support
  • Application & Platform Modernization
  • Transformation Execution & Delivery Enablement

AI Services

  • AI Readiness & Use-Case Discovery
  • AI Integration & Application Enablement
  • Intelligent Automation & AI Workflows

Infrastructure Management

  • Always-On Infrastructure Management
  • Proactive Monitoring & Incident Prevention
  • Cloud Cost Control & Optimization (FinOps)
  • Outsourced IT & End-User Support
  • Managed Infrastructure Execution Support

DevOps & Automation Services

  • CI/CD & Release Automation
  • Infrastructure as Code & Platform Standardization
  • Reliability Engineering & Observability
  • DevSecOps Enablement
Product Engineering +
Web Development MVP to Scale Builds Microservices Architecture Agile & Dev Team Augmentation Mobile Apps Ecommerce UI/UX Design QA & Test Automation
Digital Transformation +
Legacy Modernization Workflow Automation Data-Driven Dashboards CRM / ERP Integration Business Process Re-engineering
AI Services +
AI & Machine Learning AIOps Intelligent Automation Business Intelligence & Analytics AI Installation & Compute
Infrastructure Management +
Cloud Setup Cloud Migration Managed Cloud Services Server & Hosting Cost Optimization Performance Optimization Outsourced Support
DevOps & Automation Services +
CI/CD Setup Kubernetes & Docker Infrastructure as Code Cloud-Native Migration DevSecOps
Cybersecurity & Compliance Services +
Security Hardening VAPT Incident Response Backup & DR

© 2026 Bobcares. All Rights Reserved.

  • Careers
  • |
  • Cookie Policy
  • |
  • GDPR
  • |
  • Privacy Policy
  • |
  • Terms and Service
  • LinkedIn
  • YouTube
  • Instagram
  • Facebook

Preview of the new Bobcares experience
NEW UPDATE
See What’s New
at Bobcares

Discover a faster, clearer view of our services and expertise.


Explore the New Experience
Arrow Right