TawfikDaim / home_automation

home automation user stories
0 stars 0 forks source link

2. Nginx and DuckDNS #41

Open TawfikDaim opened 4 months ago

TawfikDaim commented 4 months ago

Add remote access for both Homeassistant VM and motioneye VM

  1. Ngnx and duckdns https://youtu.be/bADNTSF4Fh4

    port forwarding First router will only allow port 443 to the IP of second router (192.168.1.11)

Image

  Second router will allow both 433 and 8123 (since this router is already local) to the IP of VM of homeassistant 10.195.1.98

  tested when from outside and inside

  http:
  use_x_forwarded_for: true
  trusted_proxies:
  - 172.30.33.0/24
  ip_ban_enabled: true
  login_attempts_threshold: 5
  IP ban is not working as it automatically blocks local IPs ??

new 6 March 2024 today iPhone mobile companion can access both local and duckdns urls (which mean this can be only one url published for home assistant definitely the external one) by doing this the wifi ssid is immediately updated and this opens the door for location presence... Also install Ad Gurad add on

Image

change DNS to be home assistant address

Image

in Lets encrypt make the challenge using DNS instead of HTTP

Image