This video describes how to install Adguard Home addon in Home Assistant Supervised. AdGuard Home is a network-wide, open source software for blocking ads & tracking and for gaining control over all traffic in your home network.
Install AdGuard Home addon in the Settings -> Addons - Addons shop
Because AdGuard Home will be our resolver and we do not want to see the below warnings when we check the status:
|
|
We will configure AdGuard panel over HTTPS and DoT server for the local network
By default, after configuration, AdGuard provides an HTTP admin panel. It is possible to implement an encrypted connection with this panel, but you must first obtain a key and a certificate. We can generate these two things on any linux distribution with the command below:
|
|
Two files should be generated for us. One of them contains the private key and the other the certificate. The content of these files must be entered in the AdGuard panel in Settings => Encryption Settings. We also need to specify the Server Name on example.com (or whatever we gave when generating the certificate) and select the ports for the web panel and the DoT server:
There is a Certificate chain is invalid error there, but it does not prevent this type of installation.
After successfully setting up AdGuard, we should have more or less netstat entries like this:
|
|
The TCP protocol entries from LISTEN are responsible for the web server on port 443. Next we have a DoT server on port 853. Port 53 for both TCP and UDP is responsible for the DNS server for the local network. And entries with 9.9.9.9 and 1.0.0.3 in Foreign Address are responsible for upstream DNS servers to which queries will be sent.
If you enable AdGuard browsing security web service, XXX.XXX.XXX.XXX:443 will appear.
Now switch all three switchers and start the AdGuard Home addon in Home Assistant and select show on the sidebar
It will not work. Why? Because you need to allow the port that the container is using. How to check it? See the below command:
|
|
It should show something similar:
|
|
Important! Ignore entries with port 53, because it is default DNS port.
Usually docker containers have similar IP pool and only this is important when you check the port of the addon which is running in a docker container.
172.30.32.1
So you need to allow this port 62048 in ufw
|
|
Now the AdGuard Home panel will load
The same situation is with every addon you will install , that contains a switcher (link) on a sidebar on the left side. You check the port and allow the port.
Exclusions:
@@||t.co^$important
@@||facebook.com^$important
Additional filters:
MajkiIT Polish PiHole
MajkiIT Polish Adguard
Cert Polska
KAD hosts
URLHaus
UncheckyAds
Phishing Hosts Blocklist
Dandelion Sprout’s Anti-Malware Hosts (Alpha)