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/data \ --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.
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 https://Synology-ip-address:3000 Install and Set it up according to your preference.
Note: I installed the AdGuard container on my Synology NAS DS1621xs+
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 already listening on port 80.
You can solve it by changing port from 80 to 8080. 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 to the local DNS port 53 or AdGuard Home doesn’t have privileges. Try to disable DHCP on your Synology NAS with DSM 6.2.4 Control Panel / DHCP Server then select “Disable DHCP Server” or if you running on DSM 7 uninstall DHCP Server package. Now try again to open AdGuard Home.