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
Account Creation and Login to Google Cloud
- Firstly, navigate to https://cloud.google.com.
- Then, click Console at the top right if we have previously used Google’s Cloud Services.
- If this is the first time, click Try Free.
Account Creation
- Firstly, Accept the terms and proceed.
- Then, continue by creating a payment profile.
Creating a project and a compute engine
- Firstly, select Hamburger Menu at the top left.
- Then select Compute Engine.
- Then, choose one or more virtual machine instances.
- If we don’t already have one Project, make one.
- If we haven’t done so already, enable billing for this Project.
- Finally, The Compute Engine will start up.
Compute Engine Virtual Machine Setup
- Firstly, create a Compute Engine Virtual Machine instance.
- Then, customize the instance.
- Then, change Name to
pihole
. - For the Free Tier, choose the closest region.
- Select Operating System
Debian
and VersionDebian GNU/Linux 9
(stretch) with aSize
(GB) 30 Standard persistent disc under Boot Disk. - Then, click the
Network
tab afterexpanding Management
,Security
,Disks
,Networking
, andSole Tenancy
. UnderNetwork Interfaces
, select the Pencil icon. - It’s not a good idea to use an ephemeral external IP address. To reserve a new static IP address, select
Create IP Address
. - Then, click Create.
- 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. - Finally, click the
Hamburger
Menu in the upper left corner, thenVPC Network
, thenFirewall 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 theudp
checkbox, and the port number next to it should be changed from all to1194
. After that, press theCreate
button. Because our server does not run any service on Port3389
, we can disable thedefault-allow-rdp
rule that Google set up with a default action of Allow. It is perfectly safe to ignore this rule. If you disable thedefault-allow-ssh firewall
rule, the browser-based SSH in the Google Cloud Console will be disabled.
Updating & Upgrading Debian
- Firstly, we want to update and upgrade the Virtual Machine once we log in via SSH.
- Then, by running this command in the bash shell, we can ensure that we have elevated root privileges.
sudo su
- Finally, run the following command in the bash shell to update and upgrade:
apt-get update && apt-get upgrade -y
Pi-Hole Installation
- Firstly, run the following command in the bash shell to ensure we have elevated root privileges:
sudo su
- 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.
- Set a strong password for the Web Interface that we will remember.
pihole -a -p
- Then, set the
Interface Listening Behavior
of the Pi-Hole to local using the following command:pihole -a -i local
- 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.
var google_conversion_label = "owonCMyG5nEQ0aD71QM";
0 Comments