Skip to content
  • Networking and privacy
  • Linux VPS
  • Ubuntu 24.04

Run AdGuard Home on a VPS

AdGuard Home runs well on a GhostRDP Linux VPS Basic plan with 2 vCPU and 6 GB RAM in Germany or the Netherlands, from €5.99/mo.

AdGuard Home blocks ads and trackers at the DNS level and can encrypt DNS. On a VPS your devices use it from anywhere through your VPN. This guide uses the official install script and keeps DNS closed to the rest of the internet.

  • Ads and trackers blocked

    On every device that uses your VPN.

  • Private by design

    DNS answers only your tunnel, not the internet.

  • Web dashboard

    See queries, block lists and clients in one place.

Plans for AdGuard Home

AdGuard Home is light. Basic runs it next to WireGuard with room to spare.

  • Linux VPS Basic

    Recommended

    €5.99/mo

    €5.09/mo billed yearly, save €10/year

    • 2 vCPU
    • 6 GB ECC RAM
    • 40 GB NVMe
    • 1 Gbps port
    Order Basic
  • Linux VPS Standard

    €12.99/mo

    €11.04/mo billed yearly, save €23/year

    • 4 vCPU
    • 8 GB ECC RAM
    • 70 GB NVMe
    • 1 Gbps port
    Order Standard

What you need

  • Operating system
    Linux VPS with Ubuntu 24.04
  • VPN first
    WireGuard from our WireGuard guide (tunnel address 10.8.0.1), or Tailscale
  • Minimum resources
    1 vCPU and 512 MB RAM

Official site: AdGuard Home on GitHub

How to install AdGuard Home

Written for Ubuntu 24.04 from the official instructions. Run the commands as root and replace YOUR_SERVER_IP with your server's address.

  1. 1

    Connect to your server over SSH

    Use the IP address and root password from your welcome email (the server page has a Copy SSH command button). Windows 10 and 11, macOS and Linux all include an SSH client in the terminal.

    Shell
    ssh root@YOUR_SERVER_IP
  2. 2

    Set up WireGuard first

    Follow our WireGuard VPN guide, so your devices reach the server through the tunnel at 10.8.0.1.

  3. 3

    Install AdGuard Home

    The install command from AdGuard Home's README. It installs the service and starts it.

    Shell
    curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -v
  4. 4

    Run the setup wizard through an SSH tunnel

    The first-run wizard listens on port 3000. Open it through SSH instead of the internet: run this on your own computer, then open http://localhost:3000. Create the admin account and keep the default ports.

    Shell
    ssh -L 3000:localhost:3000 root@YOUR_SERVER_IP
  5. 5

    Close DNS and the dashboard to the internet

    An open DNS server gets abused for attacks on others. This allows SSH and WireGuard from anywhere, and DNS and the dashboard only from your tunnel.

    Shell
    ufw allow 22/tcp
    ufw allow 51820/udp
    ufw allow from 10.8.0.0/24 to any port 53
    ufw allow from 10.8.0.0/24 to any port 80,443,3000 proto tcp
    ufw enable
    ufw status verbose

After installing

  • Use it as your DNS
    Change DNS = 9.9.9.9 to DNS = 10.8.0.1 in each WireGuard client config and reconnect.
  • Dashboard
    With the tunnel on, open http://10.8.0.1 (or the port you chose in the wizard).
  • Block lists
    Add or remove lists under Filters > DNS blocklists.

AdGuard Home questions

Why keep AdGuard Home off the open internet?

A DNS server that answers anyone is an open resolver, which attackers use to flood other networks. That would get your server shut down. Your VPN keeps it to your own devices.

Pi-hole or AdGuard Home?

Both block ads at the DNS level. AdGuard Home has encrypted DNS built in; Pi-hole has a large community. Either runs on the Basic plan.

Which plan do I need?

Basic. AdGuard Home and WireGuard together use very little.

Can I use it with Tailscale?

Yes. Allow DNS from 100.64.0.0/10 instead of 10.8.0.0/24 and set the server as your tailnet's DNS server.

Stuck on a step? Our team answers on live chat and in tickets.

More on GhostRDP

Run AdGuard Home on your own server.

Online in minutes. Pay with crypto, no ID needed.