Not able to access my homeassistant duck dns site after setting up port forwarding on my router. Whenever I type my site on browser it is taking me to router page.
Settings under NAT=> Virtual Server
Protocol :: TCP ( Tried same settings with UDP also)
External Port : 443
Internal Port : 8123
Installed ssl certificates via letsencrypt
Updated Configuration Yaml with letsencrypt file under http:
I tried with 8123 port. After adding the certificates to Configuration.Yaml file I’m not able to access my duckdns from outside network.
ssl_certificate: /etc/letsencrypt/live/.duckdns.org/fullchain.pem
ssh_key: /etc/letsencrypt/live/.duckdns.org/privkey.pem
My Home Assistant is configured as Virtual Env on top of Raspbian.
First make sure your custom duckdns url points to your current external IP.
If it does make sure you’ve configured your router to forward ext:8123 to <your_home_assistants_internal_host_ip>:8123 using tcp.
That should be enough to connect to your home assistant instance from the outside and don’t forget to use authentication before exposing your home assistant to the www
How to check duckdns url points to my external IP or not?
As I mentioned earlier I’m able to access 8123 port from outside network
I followed the below link for letsencrypt. Issue is I’m not able access my duckdns link after adding the ssl keys to configuration.yaml. also I don’t see any error when I restart home assistant Guide: How to set up DuckDNS, SSL, and Chrome Push Notifications
start with googling “my ip” from a computer that is connected to your router and google will tell you your routers public ip address.
try that address to access your home assistant instance from the outside e.g. by using your mobile phone.
lets assume google said your public ip address is 1.2.3.4 then you should try out the following addresses: https://1.2.3.4:8123 http://1.2.3.4:8123 https://1.2.3.4:443 http://1.2.3.4:443 https://1.2.3.4:80 http://1.2.3.4:80
you may or may not get a security warning telling you that a certificate does not match the url. you can ignore that for the moment because you are trying to connect using the ip, not your duckdns address the let’s encrypt certificate was created for…
One thing that I see, your Base URL is wrong, should be “your_domain.duckdns.org”.
A question for you, are you running Just the DuckDNS add-On? Or both??
I’m running just DuckDNS only, and this is what I have in my config.yaml
okay, so it will be port 443 once you got the certificate part working. I’d suggest you ask for help in the topic you’ve referenced as your guide. they might be able to help since I don’t create my certs that way.
In my hommeassistant.log file I can see below error
[homeassistant.config] Invalid config for [http]: [ssh_key] is an invalid option for [http]
Check: http->http->ssh_key. (See /home/homeassistant/.homeassistant/configuration.yaml, line 53). Please check the docs at https://home-assistant.io/components/http/
fix your config, re-enable ssl_certificate and ssl_key in your http config, restart home assistant and try to reconnect from the outside (https://your.duckdns.org).
That depends on how you want to access home assistant internally. Everything but your duckdns url will return a browser warning. This is because your certificate is bound to your duckdns url.
You can either ignore the warning when using https:\\<internal.hass.ip>:8123 or try to configure your router to forward your duckdns url to your internal hass ip.
someone can help me? In the new version of the Duckdns it says that only we have to change a false to true to enable ssl, I al ready do that and enable the port fordwarding from the public port 443 to the internal port 8123 and the ip of my raspberry, but I can´t connect with ssl, my browser says that is not secure
The log output of duckdns in home assistant is this:
# INFO: Using main config file /data/workdir/config
+ Generating account key...
+ Registering account key with ACME server...
+ Fetching account ID...
+ Done!
[18:30:21] INFO: OK
MY PUBLIC IP
NOCHANGE
# INFO: Using main config file /data/workdir/config
+ Creating chain cache directory /data/workdir/chains
Processing MY-DOMAIN.duckdns.org
+ Creating new directory /data/letsencrypt/MY-DOMAIN.duckdns.org ...
+ Signing domains...
+ Generating private key...
+ Generating signing request...
+ Requesting new certificate order from CA...
+ Received 1 authorizations URLs from the CA
+ Handling authorization for MY_DOMAIN.duckdns.org
+ 1 pending challenge(s)
+ Deploying challenge tokens...
OK + Responding to challenge for MY-DOMAIN.duckdns.org authorization...
+ Challenge is valid!
+ Cleaning challenge tokens...
OK + Requesting certificate...
+ Checking certificate...
+ Done!
+ Creating fullchain.pem...
+ Done!
This site can’t provide a secure connectionMY-DOMAIN.duckdns.org sent an invalid response.
Try running Windows Network Diagnostics.
ERR_SSL_PROTOCOL_ERROR
And FireFox say the error: error: SSL_ERROR_RX_RECORD_TOO_LONG