Homelab Plan

How to install AdGuard Home on your home server

AdGuard Home blocks adverts and trackers for every device on your network by filtering DNS, and has a web admin page. The set-up page is on port 3000. It has steps for Debian, TrueNAS and Proxmox.

Network and DNS

What the steps install, and how it connects

Connects to it

  • Every device on your networkonce your router points devices at it53/udp53/tcp
  • Browser (first set-up)3000/tcp

Your server, in Docker

container adguardhome

image adguard/adguardhome

  • 53/tcpDNS
  • 53/udpDNS
  • 67/udp
  • 68/udp
  • 80/tcp
  • 443/tcp
  • 443/udp
  • 3000/tcpset-up page
  • 853/tcp
  • 853/udp
  • 5443/tcp
  • 5443/udp
  • 6060/tcp

Its data on the server

  • /my/own/workdirto /opt/adguardhome/workits data
  • /my/own/confdirto /opt/adguardhome/confits settings

On TrueNAS the app’s web page is on 30004/tcp. Drawn from step 14 of the Debian + Docker steps. Ports are the ones in those steps and in the table below.

The diagram in words

The Debian + Docker steps install the container adguardhome, with ports 53/tcp, 53/udp, 67/udp, 68/udp, 80/tcp, 443/tcp, 443/udp, 3000/tcp, 853/tcp, 853/udp, 5443/tcp, 5443/udp and 6060/tcp. Connects to it: Every device on your network (once your router points devices at it) on 53/udp and 53/tcp; Browser (first set-up) on 3000/tcp. Its data: /my/own/workdir (its data); /my/own/confdir (its settings).

What it needs

Ports53/tcp, 53/udp, 3000/tcp (web page), 80/tcpThe project's command also opens, for features most homes do not use: 67/udp, 68/udp, 443/tcp, 443/udp, 853/tcp, 853/udp, 5443/tcp, 5443/udp, 6060/tcpTrueNAS app web page: 30004/tcp
MemoryNot stated by the project (read 2 Dec 2026)
CPUNot stated by the project (read 2 Dec 2026)
DiskNot stated by the project (read 2 Dec 2026)
LicenceGPL-3.0
TrueNASCommunity app on TrueNAS
Project pageAdguardTeam/AdGuardHome

Ports are the project's defaults. Memory and disk figures: the project states none, so the table shows none. Estimates only.

What the project's own pages say

  • The project lists three ports for a first install: 3000 for the first set-up, 80 for the web interface and 53 for DNS.“3000/TCP for the initial installation; 80/TCP for the web interface; 53/UDP for the DNS server.” adguard-dns.io/kb/adguard-home/getting-started/ read 2 Dec 2026
  • On a host that runs systemd-resolved, the project says its stub listener must be switched off, or the port 53 bind fails.“DNSStubListener must be disabled to prevent port bind conflict” adguard-dns.io/kb/adguard-home/docker/ read 2 Dec 2026
  • In Docker's default network, AdGuard Home sees a Docker address for every client, not the device's own. The command on this page does not use host networking.“the --network host argument must be added” adguard-dns.io/kb/adguard-home/docker/ read 2 Dec 2026

The one thing to know before you start

Port 53 must be free on the host before you start. On a Debian host that runs systemd-resolved, its stub listener holds port 53, and the project says to turn it off first. The project lists port 3000 for the first set-up and port 80 for the web interface after it. On TrueNAS it is a community-train app, which TrueNAS hides by default, and it needs TrueNAS 24.10.2.2 or newer. On Proxmox, use a virtual machine, not an LXC container.

Choosing between Pi-hole and AdGuard Home? Read what differs between them.

Warning. The command in the steps takes host ports 80, 443 and 53, so it fails on a box that already runs Nginx Proxy Manager or Pi-hole. Stop that app first, or use another box.

Install steps

These steps follow the project's own pages and have not been tried on real hardware yet.

They start from a server that runs Docker: set up an old laptop or PC first. Not sure which system to use? Read the best OS for a home server.

  • WARNINGDo not run these steps on a server with a public IP address. Anyone on the internet could then reach the apps.
  • WARNINGDo not forward these ports on your router, unless a step tells you to. The ports would then be open to the internet.
  • WARNINGDo not trust ufw to close a port that Docker opens. Docker bypasses the ufw rules. Read the Docker page on firewalls.

Debian + Docker

checking Some details are still being checked.

  • WARNINGTurn off DNSStubListener if systemd-resolved runs. Docker cannot use port 53 until you do.
  • WARNINGDo not run the command below if Nginx Proxy Manager or Pi-hole runs on the same host. They use the same ports 80, 443 and 53.
  1. Install Docker Engine with the Compose plugin. Use the Docker page for Debian.

  2. Type this command to create the docker group. If the group exists, go to the next step.

    sudo groupadd docker
  3. Type this command to add your user to the docker group.

    sudo usermod -aG docker $USER
  4. Log out and log in again so that the group change takes effect.

  5. Type this command to test Docker.

    docker run hello-world
  6. If systemd-resolved runs on the host, do the next six steps. If not, skip them.

  7. Open the "resolved daemon" section of the AdGuard Docker page and read it: https://adguard-dns.io/kb/adguard-home/docker/#resolved

  8. Type this command to make the folder for the new file. If the folder exists, go to the next step.

    sudo mkdir -p /etc/systemd/resolved.conf.d
  9. Type this command to make the file adguardhome.conf. It turns off DNSStubListener and sets the DNS server to 127.0.0.1.

    printf '[Resolve]\nDNS=127.0.0.1\nDNSStubListener=no\n' | sudo tee /etc/systemd/resolved.conf.d/adguardhome.conf
  10. Type this command to keep a copy of the old resolv.conf file.

    sudo mv /etc/resolv.conf /etc/resolv.conf.backup
  11. Type this command to link the new resolv.conf file. The host keeps its DNS.

    sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
  12. Type this command to restart systemd-resolved.

    sudo systemctl reload-or-restart systemd-resolved
  13. Replace /my/own/workdir and /my/own/confdir with your own folders.

  14. Type this command to start AdGuard Home.

    docker run --name adguardhome --restart unless-stopped -v /my/own/workdir:/opt/adguardhome/work -v /my/own/confdir:/opt/adguardhome/conf -p 53:53/tcp -p 53:53/udp -p 67:67/udp -p 68:68/udp -p 80:80/tcp -p 443:443/tcp -p 443:443/udp -p 3000:3000/tcp -p 853:853/tcp -p 853:853/udp -p 5443:5443/tcp -p 5443:5443/udp -p 6060:6060/tcp -d adguard/adguardhome
  15. Open http://<server address>:3000 in a browser.

  16. Complete the setup wizard.

TrueNAS app

checking Some details are still being checked.

  • WARNINGThis app is in the community train. The community supports it, and TrueNAS hides it by default.
  • WARNINGUpdate TrueNAS to version 24.10.2.2 or newer before you start.
  1. Open Apps > Configuration > Settings. Select the community checkbox. Click Save.

  2. Open Apps > Discover Apps.

    Apps > Discover Apps > search 'adguard-home' > Install (train: community)
  3. Search for 'adguard-home'.

  4. Click Install.

  5. Open http://<server address>:30004 in a browser.

Proxmox VE (VM + Docker)

checking Some details are still being checked.

  • WARNINGUse a VM, not an LXC container. Proxmox says: "nesting containers inside a Proxmox QEMU VM remains a recommended practice".
  • WARNINGTurn off DNSStubListener if systemd-resolved runs. Docker cannot use port 53 until you do.
  • WARNINGDo not run the command below if Nginx Proxy Manager or Pi-hole runs on the same host. They use the same ports 80, 443 and 53.
  1. Create a Debian VM in Proxmox VE.

  2. Sign in to the VM.

  3. Install Docker Engine with the Compose plugin. Use the Docker page for Debian.

  4. Type this command to create the docker group. If the group exists, go to the next step.

    sudo groupadd docker
  5. Type this command to add your user to the docker group.

    sudo usermod -aG docker $USER
  6. Log out and log in again so that the group change takes effect.

  7. Type this command to test Docker.

    docker run hello-world
  8. If systemd-resolved runs on the host, do the next six steps. If not, skip them.

  9. Open the "resolved daemon" section of the AdGuard Docker page and read it: https://adguard-dns.io/kb/adguard-home/docker/#resolved

  10. Type this command to make the folder for the new file. If the folder exists, go to the next step.

    sudo mkdir -p /etc/systemd/resolved.conf.d
  11. Type this command to make the file adguardhome.conf. It turns off DNSStubListener and sets the DNS server to 127.0.0.1.

    printf '[Resolve]\nDNS=127.0.0.1\nDNSStubListener=no\n' | sudo tee /etc/systemd/resolved.conf.d/adguardhome.conf
  12. Type this command to keep a copy of the old resolv.conf file.

    sudo mv /etc/resolv.conf /etc/resolv.conf.backup
  13. Type this command to link the new resolv.conf file. The host keeps its DNS.

    sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
  14. Type this command to restart systemd-resolved.

    sudo systemctl reload-or-restart systemd-resolved
  15. Replace /my/own/workdir and /my/own/confdir with your own folders.

  16. Type this command to start AdGuard Home.

    docker run --name adguardhome --restart unless-stopped -v /my/own/workdir:/opt/adguardhome/work -v /my/own/confdir:/opt/adguardhome/conf -p 53:53/tcp -p 53:53/udp -p 67:67/udp -p 68:68/udp -p 80:80/tcp -p 443:443/tcp -p 443:443/udp -p 3000:3000/tcp -p 853:853/tcp -p 853:853/udp -p 5443:5443/tcp -p 5443:5443/udp -p 6060:6060/tcp -d adguard/adguardhome
  17. Open http://<server address>:3000 in a browser.

  18. Complete the setup wizard.

Licences and credits: Sources and licences.

What will it cost to run?

This page gives no power figure for AdGuard Home. The planner adds up the box it runs on, where the power goes splits that figure part by part, and the guide gives idle watts and a yearly cost at your own price.

Plan an ad-blocking box in the planner, or read the home server hardware guide.

Related apps

  • Pi-hole: the other home DNS filter, which also needs port 53
  • wg-easy: a VPN on the same box

All 18 apps