Cloud server construction AdGuard Home

AdGuardHome It is a network-wide ad blocking and anti-tracking software. The AdGuard Home project is a DNS Server version open sourced by the famous ad blocker provider AdGuard. AdGuard Home can block ads and tracking related domains, and you no longer need to install any client software. AdGuard Home works by blocking advertisements on web pages during the DNS domain name resolution process.
Simply put, AdGuard Home is an open source public DNS service that supports ad filtering and parental controls, like Google's public DNS service 8.8.8.8. AdGuard Home also supports DNS over TLS and DNS over HTTPS.

The main function

  • Block ads everywhere
  • Pay attention to privacy protection
  • family protection mode
  • Custom filter rules

Installation preparation

  • a cloud server

Installation process

First enter the cloud server, and then refer to Official installation documentation , download the corresponding installation version.
To view the version, you can use the command: uname -a, my return is: Linux VM-0-14-debian 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux
So download the 64 bit version

// download
wget https://static.adguard.com/adguardhome/release/AdGuardHome_linux_amd64.tar.gz

# decompress
tar -zxvf AdGuardHome_linux_amd64.tar.gz

# Go to the AdGuardHome directory
cd AdGuardHome

# Start AdGuard Home
./AdGuardHome -s install

// Visit ip:3000 to configure adguard home

configure

Follow the settings all the way, remember the password and port you set.
configuration page

This even if the installation configuration is complete.

use

Click on settings, dns settings
Set up the upstream server, you can set it according to your needs

1.1.1.1
180.76.76.76
119.29.29.29
223.5.5.5
114.114.114.114
8.8.8.8

Click Apply to save the configuration.
Other DNS service settings can be set according to your own needs. Here I set **speed limit** to 0, and turn on EDNS at the same time, and also need to save. Other configurations can be researched by yourself.
Click filter settings, you can add the filters you need by yourself, recommend two

// Ride the wind ad filter rules
https://raw.githubusercontent.com/xinggsf/Adblock-Plus-Rule/master/ABP-FX.txt

// EasyList China+EasyList
https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt
// A collection of rules, a collection of easylist and other services
https://gitee.com/halflife/list/raw/master/ad.txt

In addition, you can configure https encryption in **Settings - Encryption Settings**, and solve it yourself as needed.
In addition, you can add boot start.

systemctl enable AdGuardHome

Finally, post a few adguard home management commands

# Start the AdGuardHome service
./AdGuardHome -s start

# Stop the AdGuardHome service
./AdGuardHome -s stop

# Restart the AdGuardHome service
./AdGuardHome -s restart

# View AdGuardHome service status
./AdGuardHome -s status

# Uninstall the AdGuardHome service
./AdGuardHome -s uninstall

At the same time, there is also a yaml configuration file in this folder of decompression and installation, and the content can also be modified through the configuration file

It should be noted that it is best not to access through port 53, otherwise there may be a risk of being warned by the operator (private dns is explicitly prohibited), but private use through other ports is generally fine.

Tags: DNS

Posted by Thundarfoot on Thu, 12 May 2022 00:09:44 +0300