How to Install AdGuard on Your UGREEN NAS

How to Install AdGuard on Your UGREEN NAS

AdGuard is DNS ad blocking similar to Pi-Hole. It’s a privacy protection software which comprises open-source and shareware products that protect Microsoft Windows, Linux, OS X, Android and iOS users from unwanted ads, pop-ups, banners, as well as from tracking, obscene content, malware and phishing. Over 5 million people are reported to be using the software in 2018 and 7 million in 2019 with very fast growth. AdGuard is not only an ad blocker, but a whole ad blocking and privacy protection suite, a must-have product if you have a UGREEN NAS device. AdGuard Home intercepts and filters DNS requests. It works as a DNS server and prevents all the devices in a home network from connecting to the servers that track user browsing. In this step by step guide I will teach you how to install AdGuard on your UGREEN NAS device using Docker & Portainer.

šŸ’”Note:Ā This guide works perfectly with the latest AdGuard Home v1.0.0 release.

šŸ’”Note: Check out my new guide on how to Install AdGuard on Your Synology NAS.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

āš ļøMandatory Add Read & Write Permissions to the Docker Folder. If you have already added the Read and Write Permissions to the Docker Folder, skip this STEP.

  • STEP 3

āš ļøMandatory: Update your UGREEN NAS Firmware to the latest version. Go to Control Panel / Update and update your NAS with the latest Firmware.

  • STEP 4

āš ļøMandatory STEP: If you have already installed the PiHole or Technitium or TelltaleDNS container, remember to disable or simply stop them to be able to use Technitium since Technitium uses the same default port 53 as PiHole, TelltaleDNS and Adguard.

  • STEP 5

InstallĀ Portainer using my step by step guide. If you already have Portainer installed on your UGREEN NAS, skip this STEP. Attention: Make sure you have installed the latest Portainer version.

  • STEP 6

Go toĀ File Manager and open the docker folder. Inside the docker folder, create one new folder and name it adguard. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

Install AdGuard UGREEN NAS Set up 1 Folder Name

  • STEP 7

Now create two new foldersĀ inside the adguard folder that you previously created at STEP 6Ā and name them config and data. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

Install AdGuard UGREEN NAS Set up 2 Folder Name

  • STEP 8

Log into Portainer using your username and password. On the left sidebar in Portainer, click on Home then click inside the local rectangle. Follow the instructions in the image below.

Portainer Add Stack NAS 2027

On the left sidebar in Portainer, click on StacksĀ thenĀ + Add stack. Follow the instructions in the image below.

Portainer Add Stack NAS 2

  • STEP 9

In the Name field, type in adguard. Follow the instructions in the image below.

Note: Copy Paste the code below in the Portainer Stacks Web editor.

########################### NETWORKS
networks:
  macvlan_net:
    driver: macvlan
    driver_opts:
      parent: eth0   # Check your interface name (usually eth0 or eth1). Use: ip a  or  ifconfig
    ipam:
      config:
        - subnet: 192.168.0.0/24  #Replace with your desired subnet.
          gateway: 192.168.0.1  #On your UGREEN NAS, go to Control Panel / Network / General Tab / Check your Default Gateway.

########################### SERVICES
services:
  adguard:
    image: adguard/adguardhome
    container_name: AdGuard
    mem_limit: 2g
    cpu_shares: 768
    security_opt:
      - no-new-privileges:true
    networks:
      macvlan_net:
        ipv4_address: 192.168.0.107  #Choose a free IP on your network (not used by any other device)
    volumes:
      - /volume1/docker/adguard/config:/opt/adguardhome/conf:rw
      - /volume1/docker/adguard/data:/opt/adguardhome/work:rw
    environment:
      TZ: Europe/Bucharest   
    restart: on-failure:5

Note: Before you paste the code above in the Web editor area below, change the value for subnet. Replace with your desired subnet.
Note: Before you paste the code above in the Web editor area below, change the value for gateway. On your UGREEN NAS, go to Control Panel / Network / General Tab / Check your Default Gateway.
Note: Before you paste the code above in the Web editor area below, change the value for ipv4_address. Assign a static IP within subnet to avoid conflicts. Choose a free IP on your network (not used by any other device). You will need to use this IP later at STEP 13.
Note: Before you paste the code above in the Web editor area below, change the value for TZ.Ā (Select your current Time Zone from this list.)

Install AdGuard UGREEN NAS Set up 9 new 2027

  • STEP 10

Scroll down on the page until you see a button namedĀ Deploy the stack. Click on it. Follow the instructions in the image below. The installation process can take up to a few minutes. It will depend on your Internet speed connection.

Install AdGuard UGREEN NAS Set up 10 new 2027

  • STEP 11

If everything goes right, you will see the following message at the top right of your screen: ā€œSuccess Stack successfully deployedā€œ.

Portainer Success Stack NAS

  • STEP 12

🟢Please Support My work by Making a Donation. Almost 99,9% of the people that install something using my guidesĀ forget to support my work, or justĀ ignoreĀ STEP 1. I’ve been very honest about this aspect of my work since the beginning: I don’t run any ADS, I don’t require subscriptions, paid or otherwise, I don’t collect IPs, emails, and I don’t have any referral links from Amazon or other merchants. I also don’t have any POP-UPs or COOKIES. I have repeatedly been told over the years how much I have contributed to the community. It’s something I love doing and have been honest about my passion since the beginning. But I also Need The Community to Support me Back to be able to continue doing this work.

  • STEP 13

The installation process can take up to a few seconds/minutes. It will depend on your Internet speed connection. Now open your browser and type in your own ipv4_address that you have previously added at STEP 9 followed by :3000Ā In my case it’s http://192.168.0.107:3000 Select your language, then click Run wizard.Ā Follow the instructions in the image below.

Adguard UGREEN NAS Set up 1 new 2028

  • STEP 14

Add your own Username and Password. Accept the terms and conditions. Click Next. Follow the instructions in the image below.

Adguard UGREEN NAS Set up 2 new 2028

  • STEP 15

Change the default port from 80 to 9080. Click Next. Follow the instructions in the image below.

Adguard UGREEN NAS Set up 3 new 2028 1

Note: DNS Server Error message: This port is already in use. In this scenario something else is listening on the local DNS port 53 or AdGuard Home doesn’t have privileges. Uninstall or stop Pi-Hole, TelltaleDNS or Technitium if you have installed them via Portainer or Dockhand.Ā If this works, don’t forget to go back to STEP 1.

Adguard Port 53 already in use UGREEN

  • STEP 16

Scroll down the page. Follow the instructions in the image below.

Adguard UGREEN NAS Set up 5 new 2028

  • STEP 17

Click Next. Follow the instructions in the image below.

Adguard UGREEN NAS Set up 6 new 2028

  • STEP 18

Click Open dashboard. Follow the instructions in the image below.

Adguard UGREEN NAS Set up 7 new 2028

  • STEP 19

Add your own Username and Password that you have previously added at STEP 14. Follow the instructions in the image below.

Adguard UGREEN NAS Set up 8 new 2028

  • STEP 20

On your Windows 11 Desktop PC, search for Settings. Once you find it, click Open. Follow the instructions in the image below.

Install AdGuard UGREEN NAS Set up 20

  • STEP 21

On the left sidebar, click Network & Internet. Select your Ethernet connection, then click the little arrow. Follow the instructions in the image below.

Install AdGuard UGREEN NAS Set up 21

  • STEP 22

Scroll down until you find the option “DNS server assignment“. Click Edit. Follow the instructions in the image below.

Install AdGuard UGREEN NAS Set up 22

  • STEP 23

Edit DNS settings. Instead of Automatic DHCP, choose Manual. Turn ON IPv4. Add your own ipv4_address that you have previously added at STEP 10Ā as Preferred DNS and the Google DNS 8.8.8.8 as the Alternate DNS. Click Save. Follow the instructions in the image below.

Install AdGuard UGREEN NAS Set up 23 new 2027

  • STEP 24

From now on your PC will be automatically protected from ads by AdGuard. Start surfing the Internet via a web browser and you will see the number of blocked queries rapidly increasing in the graph.

Adguard UGREEN NAS Set up 9 new 2028

You can also activate Dark Mode on AdGuard. Click Dark theme to switch the theme to Dark Mode. Follow the instructions in the image below.

Adguard UGREEN NAS Set up 10 new 2028

Enjoy AdGuard Home!

Adguard UGREEN NAS Set up 11 new 2028

  • STEP 25

You can also check the instructions to install the AdGuard companion AdGuardian.

Enjoy AdGuard on Your UGREEN NAS!

šŸ†˜TROUBLESHOOTING

Note: If you want to run the AdGuard container over HTTPS, check out How to Run Docker Containers Over HTTPS on Your UGREEN NAS.
šŸ†™Note/Update/Container: How to Update Your Docker Containers on UGREEN NAS Using Portainer.
🐳Note: How to Create Docker Shortcuts on Desktop.
šŸ†•Note: How to Update Portainer to the latest version.
šŸ†•Note: How to Clean Docker.

This post was updated on Wednesday / November 25th, 2026 at 11:14 PM

No sponsors, no corporations, no ads, no subscriptions, no membership tiers, no referral links, no pop-ups, no cookies, no tracking code. Just pure guides for the community from Marius.