What is Pi-hole

Have you ever been creeped out by advertisements that pop up for things you’ve talked about but never searched for? Pi-hole is a good solution to prevent that from happening ever again.
Pi-hole is a Linux network-level advertisement and Internet tracker blocking application that acts as a DNS sinkhole and optionally a DHCP server on a private network. It can be installed on any Linux machine, such as the Raspberry Pi or a virtual machine hosting Linux. It has the capability to block website advertisements as well as advertisements on smart TVs and mobile operating systems.

I have decided to install pihole on the PI-Zero with a 32gb Memory card. im lucky to have a Multi port usb power bank that runs several Pi5 boards so im going to just plug the Pi-zero into the Power bank,

If you need to Installing the OS onto the SDcard Go Here

If you get a issue logging in to your PI like on the left. do the following.

locate the files in your user folder and Delete them.

c:/users/user/.shh

Step 1

We Need to find the ip number of the Pi-Zero project. I used a project i did some months ago Watchyourlan

Step 2

So now we have the IP number we need to login to the project

  • To login ssh [email protected] enter
  • if you are asked to confirm fingerprint type Yes and enter
  • password and enter
  • you should now be logged in.

Step 3

now type in the following to update and upgrade your project

sudo apt update
sudo apt upgrade

Step 4

now we are ready to install pihole. Use this code

curl -sSL https://install.pi-hole.net | bash

Step 5

Go through setting up the Pi Project. I recommend you setup as Static IP for this project like i have, I have used a Pizero so i need to know what IP number it is using for logins and monitoring.

If you decide you need to setup static IP again use this command while logged in through ssh

run pihole -r reconfigure.

A. Welcome screen to Network interface.

B.

C

D

E

F

G, Make a Note of the IP address, in this case it is 192.168.0.168

Step 6

Make a Not of the password, you will need this if you Do Not do step 7.

Step 7

Set a New password for the project.

sudo pihole setpassword ‘admin’

Now just type in reboot. and your good togo.

Step 8

Login to pihole

192.168.0.168

if you Get the below Error then select Your Pi-holes Dashboard

Enjoy, Think of doing a tunnel to the Pihole select Here Docker Tunnel

I have had the Pihole running now for over 24hrs and its abit of a eye opener to what is going on in the background when you are just using your Laptop / Phone or even your Smart TV.

I currently have this connected by Wifi and got me thinking i need a more permanent fix. So i started to look into how to add a wired network port.

USB 2.0 Ethernet Adapter Micro USB to RJ45
Features
1. Switch 100Mbps network automatically
2. Half/full duplex 100Mbps operation
3. Support full dupex flow control(IEEE 802.3x)
4. Support all USB standard command
5. Support suspend/resume detection logic
6. Compliant to USB interface version 1.0/1.1/2.0
7. Support 100Mbps N-way auto-negotiation operation
8. Integrated fast Ethernet MAC, physical clip and transceiver in one chip
9. MS Windows XP/Vista/7/8/10,Linux

I Found this network adaptor an AliExpress link here and works perfect. it is only 100mbps but thats enough for the pizero. No install needed i did not even have to update the OS of the pi just worked soon as i plugged it in. to find the IP Number login to pihole and select Tools down the side menu and select interfaces, its under eth0 and as you can see the adaptor is UP. Select the adopter and you will get details on speed, hardware address, this is your MAC address.

now we have our MAC address, Head over to your ip address finder, In my case i have WatchyourLan there it is easy to find the Lan address for pihole network adaptor.

OMV1 is from another project im working on, I Changed it over here. just forgot to change it. The IP number is correct 192.168.0.222

Last thing todo is just login with the IP address.

Final thoughts on the project.

Pihole was very easy to setup. I totally forgot to direct traffic to the Pi at first but it was easy enough todo. How to Change DHCP Link below, This is to direct traffic through the PI.

PiholeDHCP Block Lists PhoneApp Change Host Name