AdGuard Home on Raspberry Pi (work in progress)
Using this guide I installed AdGuard home on a Raspberry Pi in order to run a home DNS server that will block ads and malicious websites. Ironically, the guide to install and configure AdGuard on pimylifeup.com is full of ads.
This assumes you already have an OS installed on your Pi and you can ssh to the pi using the IP address.
Step Zero: Assign a static IP address to your raspberry pi.
Update the package list with
sudo apt update
Upgrade the installed packages with this command:
sudo apt full-upgrade
- Download and extract AdGuard Home with these commands:
wget 'https://static.adguard.com/adguardhome/release/AdGuardHome_linux_armv6.tar.gz'
tar -f AdGuardHome_linux_armv6.tar.gz -x -v
Delete the archive (you already extracted it)
rm AdGuardHome_linux_arm.tar.gz
- Install AdGuardHome with this command:
cd ./AdGuardHome/
sudo ./AdGuardHome -s install
Configuring AdGuard Home
After installation AdGuard will show you the IP address of the AdGuard service running on your pi.
With a web browser on the same network, navigate to the local IP address of your AdGuard service. AdGuard uses port 3000.
http://[your pi's ip address]:3000
Follow the steps on the web UI to configure ports and an admin user.
The next screen shows you how to point your devices to use your AdGuard Home as your DNS server.
I also recommend setting your router (or whatever you use for your DHCP server) to assign your pi’s IP address for DNS.