For internal you will need to setup NAT reflection on your router which basically tells your router if this web address is entered what internal IP address/port to hit.
For external it is a little more difficult to debug. Do you have port 8123 open on your router? If you are using https then you will need to 443 open. If you are trying to SSL (I would suggest it) then you will need to setup NGINX to forward your SSL traffic once it can pass the router to HA.
No, use the DuckDNS domain in NGINX. NGINX is a reverse proxy, which routes the incoming traffic from outside the network to the desired location inside your network. It basically tells the system if someone enters the DuckDNS address, then go to this address in your network.
I installed Duckdns and configured it according to the forums and the addon is green and configuration yalm with no issues.
PS. I did not install letâs encrypt in the yaml file
I installed and configured Nginx as per the forums
I created 2 port forwarding on my asus ( asus support tells me that it is well configured) as external ports 8123 and 443 and 8123 an internal port pointing to the HA PC
I tried to access my HA from an other pc typing http://a********a.duckdns.org:8123 and as always the connection times out. ( i also tried https://).
I did all that i was suggested to me. however it still does not work.
If i type in google address bar on a laptop in my house on the same network the https://domain.duckdns.org should i expect to reach the laptop on which HA is installed?
could it be a firewall rule that i did not implement and should?
Thank you once again for answering this illiterate individual.
Hi Thank you for making yourself available for this
my NGIBX looks like this
domain: arbahomeha.duckdns.org
certfile: fullchain.pem
keyfile: privkey.pem
hsts: max-age=31536000; includeSubDomains
cloudflare: false
customize:
active: false
default: nginx_proxy_default*.conf
servers: nginx_proxy/*.conf
with port 443/tcp shows 443 and 80/tcp shows disabled
domain: my domain
access_token: my token
On my router
i have the following port forwarding
=Nginx incoming port 443 local port 443 pointing to my HA laptop
0duckdns incoming port 8123 local port 8123 pointing to my HA laptop
BTW i also asked my daughter to try to access from where she lives
as a matter of completeness here are ma router nat settings (i do not know what you mean by nat hairpinning
able NAT Passthrough to allow a Virtual Private Network (VPN) connection to pass through the router to the network clients.
PPTP Passthrough Enable
L2TP Passthrough Enable
IPSec Passthrough Enable
RTSP Passthrough Enable
H.323 Passthrough Enable
SIP Passthrough Enable
PPPoE Relay Disable
FTP ALG Port 2021
hi quick reply my daughter tried it and she got this site canât provide a secure connection domain.duckdns.org uses unsuported protocols err|_ssl_version_or_cipher_mismatch
Config.yaml
it is the last entry I typed based upon the website line 23
in the config.yaml beside the basic out of the box settings
I added
switch:
platform:wake_on_lan
name:HTPC
mac: my mac_address
host:: my PC IP
I have not figure out how to copy from the yaml file and past here i tried to replicate the spacing as i see it
I will delete the duckdns port forward and try it again
I understand that in linux/unix world spaces indentation, upper case and general text formatting is very important
I did not see how to copy and paste.
what /who is 172.30:33.0/24
I tried to insert the parameter as you stated The configuration.yaml was ok and i checked the configuration and it was valid and then restarted HA. still i did not get access for my PC to HA
I also tried to substitute the ip address given with the duckdns generated ip. same result
here are the latest log
I do not see any issues
Duck DNS log
[00:22:33] INFO: OK
146.241.18.84
NOCHANGE
[00:27:34] INFO: OK
146.241.18.84
NOCHANGE
[00:33:06] INFO: OK
146.241.18.84
NOCHANGE
[00:38:07] INFO: OK
146.241.18.84
NOCHANGE
[00:43:08] INFO: OK
146.241.18.84
NOCHANGE
[00:48:09] INFO: OK
146.241.18.84
NOCHANGE
[00:53:10] INFO: OK
146.241.18.84
NOCHANGE
[00:58:11] INFO: OK
146.241.18.84
NOCHANGE
[01:03:12] INFO: OK
146.241.18.84
NOCHANGE
[01:08:13] INFO: OK
146.241.18.84
NOCHANGE
[01:13:45] INFO: OK
146.241.18.84
NOCHANGE
[01:18:46] INFO: OK
146.241.18.84
NOCHANGE
01:23:47] INFO: OK
146.241.18.84
NOCHANGE
[01:28:48] INFO: OK
146.241.18.84
NOCHANGE
[01:33:49] INFO: OK
146.241.18.84
NOCHANGE
[01:38:52] INFO: OK
146.241.18.84
NOCHANGE
[01:43:53] INFO: OK
146.241.18.84
NOCHANGE
[01:48:54] INFO: OK
146.241.18.84
NOCHANGE
[01:53:54] INFO: OK
146.241.18.84
NOCHANGE
[01:58:55] INFO: OK
146.241.18.84
NOCHANGE
[02:03:56] INFO: OK
146.241.18.84
NOCHANGE
[02:08:57] INFO: OK
146.241.18.84
NOCHANGE
[02:14:30] INFO: OK
146.241.18.84
NOCHANGE
[02:19:30] INFO: OK
146.241.18.84
NOCHANGE
[02:24:31] INFO: OK
146.241.18.84
NOCHANGE
NGINX Home Assistant SSL proxy log
[s6-init] making user provided files available at /var/run/s6/etcâŚexited 0.
[s6-init] ensuring user provided files have correct permsâŚexited 0.
[fix-attrs.d] applying ownership & permissions fixesâŚ
[fix-attrs.d] done.
[cont-init.d] executing container initialization scriptsâŚ
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[15:05:13] INFO: Running nginxâŚ
thank you so much. your availability and patience is greatly appreciated
You mentioned that the ssl certificate may be missing.
In reading up on this I can acros an HA support page suggesting to input the following
You copy the text, paste it here, then either highlight the whole text and press the </> button in the top bar or you add ``` at the beginning and at the end of the code lines.
Thatâs the docker network running Home Assistant, your add-ons etc.
That wonât work. This config is to allow NGINX to forward request to Home Assistant.
No, this is only needed if you donât use NGINX.
Are there any files in the directory SSL? If there are not, then the certificates are missing.
For DuckDNS the log at the beginning would be more helpful, as it creates the certificates in the beginning.