Pi-hole® and what you need to know about it
If you install Pi-hole® in your home network, it integrates an effective ad blocker for all devices that run at home via LAN or WLAN – so you no longer need to install a separate ad blocker on your devices (PC, mobile phone, etc.). Superuser @kaetho opted for Pi-hole and documented the process in detail.
The hardware
The following equipment is recommended to make sure everything runs smoothly from the start:
- Raspberry Pi (e.g. Raspberry Pi 4, Model B with 4GB Ram)
- Power supply
- Memory card
- Housing
- An HDMI cable, if required (e.g. for the Raspberry Pi 4, as it has two micro-HDMI ports rather than a standard HDMI connection)
Software
The starter kit includes an SD card with everything you need to get going. This includes the RasPi installation programme NOOBS. The instructions from heise.de and elefacts.de. will help you with the installation. We recommend that all the hardware, i.e. mouse, keyboard, screen (HDMI cable for the connection with Micro-HDMI to HDMI) and network cable, is connected for the initial installation.
Integrating into the network
If you have a PoE switch, i.e. the Raspberry Pi is integrated into the rack, you will need to purchase a PoE hat for the Raspberry Pi. This means that the Raspi can be placed in the rack where it receives its power and you won’t need an additional power supply unit. With management carried out via the network (browser, remote desktop), the Raspi no longer needs a mouse, keyboard and screen. The Raspberry Pi IP must be included: to do this, we recommend leaving the Raspi itself on DHCP, searching for the IP address of the Raspberry Pi in the web portal of Internet-Box and fixing it there.
You must then restart the Raspberry Pi. It is worth converting it directly to a PoE-powered device to connect the Raspberry Pi directly to a LAN port of the PoE switch without any other peripherals.
The housing currently installed by superuser and co-author kaetho. “I couldn’t find a suitable, simple housing that could be combined with the PoE attachment (board with fan). There are now two Raspis: the left one is the Pi-hole, the right one is a Minecraft server.”
DHCP settings from the router
Wenn du in den DCHP-Einstellungen vom Router den DNS-Server auf den Pi-hole Server setzen möchtest, machst du im Web-Portal der Internet-Box die folgenden Einstellungen:
If you want to set the DNS server to the Pi-hole server in the DCHP settings of the router, adjust the following settings in the web portal of the Internet-Box: Go to “Network” > “Settings” and change DNS server 1 to the Raspberry Pi’s fixed IP address. However, leave DNS server 2 at the default value. Activate DHCP option 6 so that the Pi-hole recognises the exact requests of the devices.
The result
If you now enter the IP address of your Pi-hole in the browser followed by “/admin” (i.e. 192.168.1.xx/admin), the Pi-hole dashboard will appear. This gives you some information about the current status. You can see an even more detailed display when you log in.
From now on, adverts will be blocked and suppressed as far as possible on all clients in your home network. However, there are limitations: adverts on YouTube via mobile phones are not blocked, as YouTube uses its own technology that is not simple to override. The first few search results via google.ch, which are preceded by “advert” or “advertisement”, also fail to produce results, which may have an undesirable effect. p>
What is a Pi-hole®?
According to Wikipedia, Pi-hole is software that functions as a tracking and ad blocker as well as an optional DHCP server. Pi-hole is based on a Linux system and was developed for use on microcomputers as an embedded system. It is widely used on computers from the Raspberry Pi series. The software is integrated into an existing network as a DNS server and is therefore available to all devices in the network with DNS settings that can be configured.