How to Install AdGuard on Your Synology NAS

How to Install AdGuard on Your Synology 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 Synology 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 Synology NAS device using Docker.

💡Note: This guide works perfectly with the latest AdGuard Home v0.107.55 release.

💡Note: Check out my new guide on how to Install AdGuard Using Portainer.

💡Note: Check out my new guide on how to Install AdGuard on Your UGREEN NAS.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Install Container Manager via Synology “Package Center”. If you run an older DSM version (under 7.2), search for Docker instead of Container Manager.

Download Container Manager Synology Docker

  • STEP 3

Go to File Station 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.

Adguard home Synology NAS Set up 1

  • STEP 4

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

Adguard home Synology NAS Set up 2

  • STEP 5

Go to Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script. Follow the instructions in the image below.

Synology User Defined Script

  • STEP 6

Once you click on User-defined script a new window will open. Follow the instructions below:

  1. General: In the Task field type in “Install Adguard“. Uncheck “Enabled” option. Select root User.
  2. Schedule: Select Run on the following date then select “Do not repeat“.
  3. Task Settings: Check “Send run details by email“, add your email then copy paste the code below in the Run command area. After that click OK.
docker run -d --name=adguard \
-e TZ=Europe/Bucharest \
-v /volume1/docker/adguard/config:/opt/adguardhome/conf \
-v /volume1/docker/adguard/data:/opt/adguardhome/work \
--net=host \
--restart always \
adguard/adguardhome

Note: Before you paste the code above in the Run command area, change the value for TZ (Select your current Time Zone from this list).

Adguard home Synology NAS Set up 4 new 2023

  • STEP 7

After you click OK on STEP 6 a new warning pop up window will open. Click OK.

Adguard home Synology NAS Set up 5 new

After you click OK, type in your DSM Password then click Submit. Follow the instructions in the image below.

Synology Task Scheduler Confirm Admin Password

  • STEP 8

After you click Submit on STEP 7, select your “Install Adguard” Task then click the “Run” tab. You will be asked to run Install Adguard – click OK. Follow the instructions in the image below.

Adguard home Synology NAS Set up 6

  • STEP 9

Go back to STEP 1 or you will deal with karma 🙂

  • STEP 10

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 http://Synology-ip-address:3000 Click Get Started. Follow the instructions in the image below.

1 Adguard Home Synology NAS Set up 7

  • STEP 11

Change the default port 80 to 9080 then click Next. Follow the instructions in the image below.

2 Adguard Home Synology NAS Set up 8

Note: DNS Server Error message: listen udp 0.0.0.0:53: bind: address 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 if you have Docker Pi-Hole installed on your Synology NAS. Disable DHCP on your Synology NAS with DSM 6.2.4 in Control Panel / DHCP Server then select “Disable DHCP Server” or if you are running DSM 7.1 or DSM 7.2 uninstall the DHCP Server package or DNS Server through Package Center. If this works, don’t forget to go back to STEP 1.

port 53 DNS Adguard already in use

  • STEP 12

Add your own Username and Password then click Next. Follow the instructions in the image below.

3 Adguard Home Synology NAS Set up 9

  • STEP 13

Click Next. Follow the instructions in the image below.

4 Adguard Home Synology NAS Set up 10

  • STEP 14

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

5 Adguard Home Synology NAS Set up 11

  • STEP 15

Type in your own Username and Password that you have previously created at STEP 12. Click Sign in. Follow the instructions in the image below.

6 Adguard Home Synology NAS Set up 12

Enjoy AdGuard!

7 Adguard Home Synology NAS Set up 13

Stop ADS from the web!

8 Adguard Home Synology NAS Set up 14

You can also activate Dark Mode on Adguard. At the end of the page select Dark from the list. Follow the instructions in the image below.

Adguard Synology Dark Mode

🔥Troubleshoot

Note: Admin Web Interface Error message: listen tcp 0.0.0.0:80 bind: address already in use. This means that something on your system, probably a web server like Apache, is already listening on port 80. Follow the instructions at STEP 11 and change the current port from 80 to 9080.

Adguard home Synology NAS Set up 9
Note: Find out How to update the AdGuard container with the latest image.
Note: How to Back Up Docker Containers on your Synology NAS.
Note: Can I run Docker on my Synology NAS? See the supported models.
Note: How to Free Disk Space on Your NAS if You Run Docker.
Note: How to Schedule Start & Stop For Docker Containers.
Note: How to Activate Email Notifications.
Note: How to Add Access Control Profile on Your NAS.
Note: How to Change Docker Containers Restart Policy.
Note: How to Use Docker Containers With VPN.
Note: Convert Docker Run Into Docker Compose.
Note: How to Clean Docker.
Note: How to Clean Docker Automatically.
Note: Best Practices When Using Docker and DDNS.
Note: Some Docker Containers Need WebSocket.
Note: Find out the Best NAS Models For Docker.
Note: Activate Gmail SMTP For Docker Containers.

This post was updated on Wednesday / December 11th, 2024 at 11:59 PM