Dive into the world of network monitoring and ad-blocking with Pi-hole and Pi.Alert on your Raspberry Pi. This guide will walk you through the installation process and help you set up these tools for optimal network protection and visibility.
- A Raspberry Pi running Debian OS (64-Bit) with Kernel version 6.1.47-v8+.
- An active internet connection.
-
Update Your System:
sudo apt update && sudo apt upgrade -y
-
Install Pi-hole:
curl -sSL https://install.pi-hole.net | bash
-
Follow the on-screen instructions to configure Pi-hole.
-
Download the Pi.Alert Installation Script:
bash -c "$(wget -qLO - https://github.com/leiweibau/Pi.Alert/raw/main/install/pialert_install.sh)"
-
Follow the on-screen instructions to configure Pi.Alert.
-
Edit the Pi.Alert Configuration File:
nano /home/pi/pialert/config.php
-
Locate the
SCAN_SUBNETS
section and add your desired network:SCAN_SUBNETS = [ '192.168.0.1/24' ]
-
Save the file and exit the editor.
-
Edit the Pi.Alert Configuration File:
nano /home/pi/pialert/config.php
-
Locate the
SCAN_SUBNETS
section and add your desired networks:SCAN_SUBNETS = [ '192.168.0.1/24', '192.168.178.0/24' ]