Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

with AdGuard no Access to Homeassistant #61

Closed
MartinKuhl opened this issue May 18, 2020 · 13 comments
Closed

with AdGuard no Access to Homeassistant #61

MartinKuhl opened this issue May 18, 2020 · 13 comments

Comments

@MartinKuhl
Copy link

MartinKuhl commented May 18, 2020

Problem/Motivation

after switching the DNS entry to the IP of the home assistant host, the adblocker starts working. But from now on, it is not possible to connect to the home assistant backend via DnS (DuckDNS).

Expected behavior

successful accessing the home assistant backend via IP AND DNS

Actual behavior

no access to the home assistant backend via DNS (DuckDNS). via IP address the access is still possible. Safari error message: „FetchEvent.respondWith received an error: no-response: no-response :: [{"url":"https://XYZ.duckdns.org/lovelace/default_view","error":{}}]“

Chrome error message: NET::ERR_CERT_INVALID

Is there a known issue in combination with the addon nginx proxy manager?

Steps to reproduce

see Problem/Motivation

@addons-assistant
Copy link

👋 Thanks for opening your first issue here! If you're reporting a 🐛 bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be useful.

@sinclairpaul
Copy link
Member

Assuming you are connecting to the same name as the certificate is issued, you would need to confirm why it is invalid.

Are you sure it hasn't expired?

@MartinKuhl
Copy link
Author

yes I'm sure that it is valid. I have a check for that purpose, that say 84 days left. Just after I remove the DNS entry everything is fine again and I can connect to home assistant via DNS.

@sinclairpaul
Copy link
Member

Please post the details from the Developer Tools in Chrome as to why it thinks the cert is incorrect.

@MartinKuhl
Copy link
Author

image

@sinclairpaul
Copy link
Member

Dev Tools, Security Tab, should be a view certificate option, which should tell you what the issue with the cert is.

@MartinKuhl
Copy link
Author

Even the address: http(s)://homeassistant:8123 isn't working. Only the address https://IP:8123 is functional.

image

@MartinKuhl
Copy link
Author

MartinKuhl commented May 18, 2020

Just after resetting the DSN entry to standard within the network settings everything is fine again:
image

@sinclairpaul
Copy link
Member

Click the View Certificate button..... It will tell you what the error is.

Unfortunately I cannot tell what you are accessing and when. The certificate has to be valid, and match the name that it is issued to. You mentioned Nginx Proxy Manager, I assume that is retrieving and setting up your cert?

You also mentioned DNS entries, but no details on what you are changing and when.

In summary Adguard is a DNS server, if you are trying to set up split DNS (which is what I am assuming), you just need a record on it to rewrite to you internal address. If you are getting SSL errors then there is likely a misconfiguration somewhere.

The homeassistant name resolution relies on mDNS, and is not related to Adguard itself.

@MartinKuhl
Copy link
Author

MartinKuhl commented May 18, 2020

The Let's encrypt authority is missing.
OK I did the following steps:
I entered the IP-Address if the HA Server as DNS-Server (see Screenshot) and after applying the settings, it looks like the SSL certificate of my NGINX proxy manager is not accessable. You mentioned right my NPM ist setting up exact this certificate (need port 80 and 443).

I did not change the DNS entry in my router instead I change the corresonding setting in the network settings of my mac. In the DNS configuration part of adguard I only modified the Upstream-DNS-Server 8.8.8.8, 8.8.4.4., 1.1.1.1

image

@sinclairpaul
Copy link
Member

Then I would suggest Adguard is unable to resolve correctly.

Check the addon logs, check the query log in Adguard. Make sure it is resolving.

You can perform an nslookup www.google.com to ensure it is working.

I would suggest you would be better seeking help either via the forums or Discord, as this really isn't an issue with the addon, but likely something local.

@MartinKuhl
Copy link
Author

I found the solution (more or less) I had to disable IP V6 in Adguard.
Now I can access the backend of home assistant via DNS.

@addons-assistant
Copy link

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@addons-assistant addons-assistant bot locked as resolved and limited conversation to collaborators Jun 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants