Home Assistant Community Add-on: AdGuard Home

i’m using it with DHCP, it works too
but now i changed the DNS on router side , not gonna use this addon now
because if i reboot hassos for whatever reason, then internet is down :slight_smile:

edit: or maybe i can setup my router to make the primary dns, the adguard addon , and the secundary the google dns? that should work , right? so when hassos/addon is down, internet still works?

Quick question. Would it be possible to directly communicate to Adguard with this integration. I want to control available services based on timeslots. My kids now have homescholing and I want to block YouTube and TikTok during the ‘school hours’.

Hi all,

I’m attempting to run AdGuard as a DHCP server but cannot set any static leases - I get the following error when I try:

I get the following error in the add on logs:

2022/02/03 12:33:21 [error] 535#535: *113 upstream prematurely closed connection while reading response header from upstream, client: 172.30.32.2, server: a0d7b954-adguard, request: "POST /control/dhcp/add_static_lease HTTP/1.1", upstream: "http://127.0.0.1:45158/control/dhcp/add_static_lease", host: "192.168.1.10:8123", referrer: "http://192.168.1.10:8123/api/hassio_ingress/CNZxLvYK0LcqqF4N-eWRovQKfO0dIE_aw4vDLiTMaAQ/"

Any ideas how to resolve this one? Cheers

I would like to block ads on my iPhone outside my network. To achive this I would like to setup DNS over https or tls in the Ardguard Home add-on. I can’t get it work and I’m probably missing something, I hope somebody can answer these questions I have;

So I’ve setup up an upstream tls dns server;

Encrypted DNS settings:

And downloaded the profile for iOS:

The profile is ‘not signed’, could that be the problem?

Webpages aren’t loading. Do I have to open the port 853 to my Home Assistant server to make this to work? What am I missing?

I tried TLS because the https port 443 was already in use by the NGINX add-on. Unfortunately I can’t find a guide to set it all up with Home Assistant, AdGuard Home, NGINX, Duckdns. I hope somebody could help me out!

Edit: Found a solution for this ‘problem’; set-up Wireguard split-tunneling to have only the DNS requests go through.

I do have another weird ‘problem’; is it normal that most of the query’s in query log are in there two times?


Type: A + Type: HTTPS

I configured Adguard to have encrypted DNS over https, so why are there also Type: A requests in there? Or is this normal behaviour?

I use port 853 yes. I can see your (double? ) queries are quite slow too.

I would suggest using only custom client names and local subnet allowed. That way the port is open, but only known clients can connect using xxxxxxx as clientname in xxxxxxx.mydomain.com

I’ve entered my AdGuard IP into my router’s DNS server settings, so my entire network is filtered through AdGuard. It works great.

My HA is running in a VirtualBox VM. I have noticed that if/when I start the VM (from a fresh Windows boot, or from Supervisor > Reboot Host, etc.) I cannot boot up HA and I’m given a prompt to jump into an emergency console …unless I remove the DNS settings in my router beforehand. After HA starts up, I then add the IP address(es) back to my DNS settings to apply AdGuard to my network again. Is there an alternative that wouldn’t require so much involvement on my part?

Is your HA instance setup with a fixed IP address ? it’s mandatory for Adguard to work properly ! Your HA must be setup with a fixed IPV4 address :wink:

No one on this ? Thanks

This is my IPv4 setup. Should I change something?

Nope looks all good so problem is somewhere else :frowning: I’m just confused by your setup ! If you use Adguard for DNS features it should be on a machine always on (not a VM all the more running on Windows…)

I’m using the AdGuard Home add-on for HA (HassOS), which is running on a VM on a Windows host. I would expect this to be a rather common setup.

Anyone have Adguardhome sync working with adguard from home assistant? i need the user and password from adguard but cant find any info about user id and password…

I dont know why you gateway address and dns address is the same. Maybe its you network setup, but my gateway address is my router ip address and dns server is home assistant address running adguard.

1 Like

I agree with dadopq. Read the installation guide of the document of this AdGuard Home add-on… specifically step #1.

… either on post #1 of this thread, or on the document on GitHub, which has more info.

And, you likely have other problems.

1 Like

Thank you for the response (and @dadopq). I’ll change the dns to my HA IP and see if that resolves the issue.

And, you likely have other problems.

What might those other problems be?

I use hass.io on a raspberrry pi 4.

My AdGuard is always disable and not filtering my traffic on reboot and after an update of the addon.

I have to enable adguard and enavble those options

And since I use Adguard as my dhcp… i wish I didn’t have to dot this.

Is there a way for me to make sure I don’t have to do this?

I don’t understand 1 thing.

Right now all my devices go trough the dns rewrite.
Well i have an google nest, when i enable protection google nest will stop working after a few hours.

How can i exclude the ip of the google nest?

regards

Use devices that don’t spy your private life :yum: No problem here with Genie and AdGuard :sunglasses:

They can spy what they want, nothing to hide, just need to know how i can whitelist something or exclude from the protection in adguard.

Well I would put the nest in fixed IP and setup it with Google DNS (8:8:8.8, …) Setup of the google nest should allow that :wink: