🎬

Video tutorial coming soon.

🛡️ Setup AdGuard Home — Network-Wide Ad Blocker

Deploy AdGuard Home as a network-wide DNS server that blocks ads, trackers, and malware for every device on your network — no client software needed.

⚠️ This script is provided for demo and testing purposes only.

📦 Resources & Setup Scripts

Grab the automated bash script from GitHub to follow along.

Automated install script — AdGuard Home DNS server running instantly.
View on GitHub

Quick Install:

wget https://raw.githubusercontent.com/mhmdali94/Docker/main/networking/adguardhome/adguardhome-ubuntu.sh
chmod +x adguardhome-ubuntu.sh
sudo bash adguardhome-ubuntu.sh

Tutorial Steps

1 Download & Run the Script

The script installs Docker, pulls the AdGuard Home image, and starts the DNS and web UI. Port 53 is configured for DNS queries.

wget https://raw.githubusercontent.com/mhmdali94/Docker/main/networking/adguardhome/adguardhome-ubuntu.sh
chmod +x adguardhome-ubuntu.sh
sudo bash adguardhome-ubuntu.sh

2 Run Initial Setup

Open your browser and navigate to the setup wizard. Choose your admin UI port and DNS port, then create an admin account:

http://YOUR-SERVER-IP:3000

3 Configure Blocklists

In the Dashboard, go to Filters → DNS Blocklists. Add popular lists like AdGuard DNS filter or EasyList. Enable or disable individual rules as needed.

4 Point Devices to Your DNS

Set your router's DNS server to your server's IP address so all network devices use AdGuard Home automatically. Alternatively, configure DNS per device manually.

Ports Used

PortProtocolPurpose
53TCP/UDPDNS Queries
80TCPAdmin Web UI (HTTP)
443TCPAdmin Web UI (HTTPS)
3000TCPInitial Setup Wizard

Files Location

/root/docker/adguardhome/docker-compose.yml