Home Assistant Remote access(frp+vultr vps)
Home Assistant Remote access
Quick start
buy a domain
buy a vps
Install nginx on vps
Install Cerbot on vps
Install frps on vps
Install frpc on Raspberry Pi
Securing Your Home Assistant Instance (Remote Access)
Securing Your domain(https)
Securing Your Your Home Assistant Instance ipaddress(cf)
Step-by-Step Guide
1.buy a domain
purchase your own domain name
2.buy a vps server - for Install NGINX on your vps server
3. A to server - your own domain name point to vps server ipv4 address
4. install nginx - Install NGINX on your vps server
5. config nginx for your domain
6.install Let’s Encrypt client certbot - install Let’s Encrypt client certbot for nginx on vps server
7.downloaded SSL certificates for your domain
your own domain name → Connections → vps server ipv4 address → nginx on vps server → frps on on vps server <-->Home Assistant Server on pi
Prepaire
Step 1.buy a domain-
purchase your own domain name
Step 2.buy a vps server - for Install NGINX on your vps server
Step 3. domain A to ipv4 address on vps server - your own domain name point to vps server ipv4 address
4. install nginx - Install NGINX on your vps server
How To Install and uninstall reinstall Nginx on raspberry pi(raspberry pi 3B+)
test run ok
5. config nginx for your domain
6.install Let’s Encrypt client certbot - install Let’s Encrypt client certbot for nginx on vps server
7.downloaded SSL certificates for your domain
Step 8:frpc on RPI p3b+
8.1 dowanlowd and Install frp client on debian 11 (RPI p3b+)
8.1.1 download frp for debian 11
8.1.2 install frp client on rpi p3b+
8.2 dowanlowd and Install frp server on Ubuntu 20.04.5 LTS (vultr vps)
Ubuntu 20.04.5 LTS (GNU/Linux 5.4.0-132-generic x86_64)
8.2.1 download frp for Ubuntu 20.04.5 LTS
8.2.1Configure frp server on vps server
8.3.1Configure frpc client on pi
8.3.2 Start frp Client on pi
- Access to HA via browser is OK
- Access to HA via HA App is Not OK - results in “Unable to Connect” error message
- Platform: Android (Samsung Galaxy S22 Ultra, Android v12)
- Browser: Chrome/Samsung
- Home Assistant Server: latest (2022.3.7)
- Home Assistant companion app: latest (2022.3.0-full)
- Access to HA is via Cloudflared/Argo tunnel
- HA is behind Nginx Proxy Manager
- Cloudflare Zero trust cannot be used with the app
- Make sure your homeassistant: settings are right, e.g.
external_url: "https://ha.YOURDOMAIN.org" internal_url: "http://YOURLANIP:8123"
- Also ensure your http: settings are right, e.g.
http: use_x_forwarded_for: true trusted_proxies: - 172.30.33.0/24 # Add the IP address of the proxy server - 192.168.2.0/24
- The issue was not with cloudfare, nginx or HA
- The issue was resolved by disabling private DNS on the phone
internal_url
You're about to give
http://192.168.101.50:8123/access
to your Home Assistant instance.
Logging in with Home Assistant Local.
Check home assisant core web server port only listen on 0.0.0.0.8123 ,port 80 and port 443 not exist
tcp 0 0 0.0.0.0:8123 0.0.0.0:* LISTEN 822/python3.9
Comments
Comments are closed