Happy new year all! I have setup Home Assistant on my RPi3 and have it running internally, but my goal is to be able to remote access the frontend on my Pixel 3 from outside my network. The one rub is that my ISP is Verizon Wireless, which means my external IP is double NAT-ed so no go on port forwarding. I read this post (https://b3n.org/port-forwarding-verizon-wireless-nat/) and following it, I signed up for a free VPS with Google Cloud. I did the following to test:
b) SSH from my Mac to the VPS, then from that console ran:
ssh -l pi-username -p 18123 localhost
Doing that, I was able to get to the console of my Pi, from my Mac on an external network, so Iâm assuming the reverse SSH tunnel is working. This is were Iâm stuck.
I assume Iâm supposed to change the ssh command on my Pi from 22 to my Home Assistant port right?
Thanks for the reply. Iâd actually rather keep it free if at all possible and donât mind learning things the hard wayâŚI just feel stuck at this point. Worst comes to worse, Iâll pull the trigger on the webhookrelay
So I created an account and configured the add-on as per the instructions on the link you gave/the add-on itself, but when I type in the duckdns address with https it says âunexpectedly closed the connectionâ, and if i just use http it says ârelay agent not connected or misconfiguredâ. Iâm assuming youâre not using https because you have to have a paid plan for that. What do you do? Can you post your config?
Hm. Thatâs the settings I used and it doesnât seem to be working. When I check the logs of the add-on I see this:
Blockquote
[â] Your plan doesnât include custom subdomains, set âsubdomainâ for tunnel âhaâ to an empty string,
or upgrade your plan here: Webhook-Relay
Do you get the same things? Also, did you set up Letâs Encrypt or anything on your Home Assistant setup?
Itâs been awhile since I set it up but I am pretty sure I had to setup the duckdns addon and have it running when this started, and then turn it back off. I have a bunch of emails from the guy that made the addon, give me a little bit to look thru them and get back with ya.
One of the steps in a previous email said toâŚ
Get DuckDNS Addon-on and configure it.
Start it and wait until it provisions a certificate, Then stop it,
Configure Webhook relay addon.
Also, it says make sure your HA can work with HTTP(NOT HTTPS)
Hey guys @dmoses1969 itâs free for you because you really helped with the feedback early on (thanks for that)! However, for the basic functionality users will need to upgrade to $4.5/month plan.
I can enable paid features for anyone who wants to try, just to see how it works and see whether it suits your use case. Ping me either on [email protected] or here.
@rusenask I appreciate you responding in the thread. I figured the plan would need to be upgraded. Think I may try to go back to the reverse SSH route but if all else fails I may bite the bullet and upgrade. Thanks again!
Also, your GCP VPS after the free credits run out wonât be free. You might want to get a VM on some cheaper cloud such as Digital Ocean (I think you can get there one for $5/m), Scaleway, Linode, OVH.
Thanks for the free preview! The tunnel is now creating, however Iâm getting the following error where it says port 443 is already in use? Is there something else in HA I have to configure?
2019/01/03 11:34:26 [INFO] acme: Registering account for
2019/01/03 11:34:27 [INFO] [example.duckdns_org] acme: Obtaining bundled SAN certificate
2019/01/03 11:34:27 [INFO] [example.duckdns_org] AuthURL: https://acme-v02.api.letsencrypt_org/acme/authz/random-characters
2019/01/03 11:34:27 [INFO] [example.duckdns_org] acme: Could not find solver for: http-01
2019/01/03 11:34:27 [INFO] [example.duckdns_org] acme: Trying to solve TLS-ALPN-01
{âlevelâ:âerrorâ,âtsâ:1546515291.3751533,âmsgâ:âfailed to retrieve certâ,âdomainâ:âexample.duckdns_orgâ,âerrorâ:âacme: Error -> One or more domains had a problem:\n[example.duckdns_org] [example.duckdns_org] error presenting token: could not start HTTPS server for challenge -> listen tcp :443: bind: address already in use\nâ}
Hi, do you by any chance have a DuckDNS add-on thatâs already running? It seems that the logs are coming from it as webhookrelay add-on uses DNS challenge, not http one
I did not have the DuckDNS add-on installed, but I have done that and configured it. I assume itâs working since now I have to use https://pi-ip-address:8123 to reach Home Assistant locally. However, Iâm still getting this same error when starting the webhookrelay add-on:
Blockquote
{âlevelâ:âerrorâ,âtsâ:1546523697.718215,âmsgâ:âfailed to retrieve certâ,âdomainâ:âexample.duckdns_orgâ,âerrorâ:âacme: Error -> One or more domains had a problem:\n[example.duckdns_org] [example.duckdns_org] error presenting token: could not start HTTPS server for challenge -> listen tcp :443: bind: address already in use\nâ}
OK I uninstalled the DuckDNS add-on. In which config are you referring? in my configuration.yaml my DuckDNS domain is in the âbase_urlâ field under the http section. My webhookrelay add-on config is below: