Secure Home Assistant Remote Access With Cloudflare @TechMeOut5
Secure Home Assistant Remote Access With Cloudflare  @TechMeOut5
Uploaded March 2022 | Updated December 2026, 3 hours ago
Secure home assistant remote access with cloudflare, making your home assistant instance both properly secure while keeping it available from outside your network. For this tutorial you will need to purchase or transfer a domain to cloudflare. We will be using Cloudflare proxy among other hardening steps.

Home Assistant is an awesome home automation platform, but, much like any other internal service you expose to the internet, the threats are just around the corner. Secure home assistant remote access with cloudflare to make your Home Assistant instance secure enough to be exposed to the internet via Cloudflare proxy.

In this video we will see all the recommended steps to Secure home assistant remote access with cloudflare top to bottom. As part of the process you will also need to create a port forwarding rule and restrict it to Cloudflare IP ranges. Please make sure you know how to do that on your firewall or router.

In summary, Secure home assistant remote access with cloudflare requires some technical know how but if you are a home assistant user you either had to turn off access from the internet if you were "smart" or you exposed your home assistant instance without properly protecting it. This video will try to remediate that.

Matthew Hodgkins Blog Post:
hodgkins.io/securing-home-assitant-with-cloudflare

Configuration.yaml snippet:

http:
server_port: 2053
ssl_certificate: /ssl//origin.pem
ssl_key: /ssl/privkey.pem
ip_ban_enabled: true
login_attempts_threshold: 5
# Add use_x_forwarded_for
use_x_forwarded_for: true
# Add the Cloudflare IPs as trusted proxies cloudflare.com/ips-v4
trusted_proxies:
- 173.245.48.0/20
- 103.21.244.0/22
- 103.22.200.0/22
- 103.31.4.0/22
- 141.101.64.0/18
- 108.162.192.0/18
- 190.93.240.0/20
- 188.114.96.0/20
- 197.234.240.0/22
- 198.41.128.0/17
- 162.158.0.0/15
- 104.16.0.0/13
- 104.24.0.0/14
- 172.64.0.0/13
- 131.0.72.0/22

Video Index
0:00 Intro
1:38 Whiteboard Illustration
5:30 Understanding DNS And Creating Records
9:50 Changing Home Assistant Configuration.yaml File
12:05 Adding Certificates From Cloudflare to Home Assistant
15:55 Port Forwarding Configurations
20:00 Hardening Your Home Assistant Account with 2FA
22:00 Creating Cloudflare Firewall Rules
24:08 Using Home Assistant Cloudflare Integration for DDNS
28:03 Summary

#homeassistant #cloudflare #security

If you liked this video, hit the like button.

Follow us on twitter: twitter.com/techmeout5
Join our Synology Facebook group: facebook.com/groups/synousergroup
Join our Ubiquiti UniFi Facebook group: facebook.com/groups/ubntusergroup
Secure Home Assistant Remote Access With CloudflareHow to Create a Windows 10 Virtual Machine on a Synology NAS (Super Easy)UniFi Dream Machine Pro Migration (Part 1)pfSense Firewall Rules That Make Sense (And How to Use Them)Mount UniFi Protect G6 Instant Camera with a Zip TieNSPanel Pro Firmware 4: Is Native Home Assistant Finally Here?Install Windows Server 2022 Insider Preview (VMware vSphere 7)Why You Need a NAS (Definitive Comparison)UniFi Traffic Rules For Parental Controls (Example Use Cases)Proxmox in Home Assistant? You NEED This HACS Integration!Synology Active Backup for Business - PC BackupASUS RT-AX89X Setup and Features (An Absolute Beast!)
Tech Me Out |

Secure Home Assistant Remote Access With Cloudflare

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER