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.
Install Docker via Synology “Package Center”.
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.
Now create two new folders inside the adguard folder that you created at STEP 3 name one “config” and the other “data“. Follow the instructions in the image below.
Note: Be careful enter only lowercase, not uppercase letters.
Go to Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script. Follow the instructions in the image below.
Once you click on User-defined script a new window will open. Follow the instructions below:
- General: In the Task field type in “Install Adguard“. Uncheck “Enabled” option. Select root User.
- Schedule: Select Run on the following date then select “Do not repeat“.
- 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).
After you click OK on STEP 6 a new warning pop up window will open. Click OK.
After you click OK on STEP 7, select your “Install Adguard” Task then click the “Run” tab. You will be asked to run Install Adguard – click Yes. Follow the instructions in the image below.
Go back to STEP 1 or you will deal with karma 🙂
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.
Change the default port 80 to 9080 then click Next. Follow the instructions in the image below.
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 uninstall the DHCP Server package through Package Center. If this works, don’t forget to go back to STEP 1.
Add your own Username and Password then click Next. Follow the instructions in the image below.
Click Next. Follow the instructions in the image below.
Click Open Dashboard. Follow the instructions in the image below.
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.
Stop ADS from the web!
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.
Note: Find out How to update the AdGuard container with the latest image.
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.
This post was updated on Thursday / November 24th, 2022 at 11:10 PM