How I Deployed Tailscale VPN to Securely Access Home Assistant Remotely (2024)

Often smart home automation enthusiasts want to access their Home Assistant instance remotely. This can be done by exposing the Home Assistant instance to the internet. However, this is not a secure way to access Home Assistant remotely and pose the risk of cyber attacks. In this article, we will see how to use Tailscale VPN to securely access Home Assistant remotely.

During these days of the war in Israel stemming from the brutal and violent terror attack of Hamas, there have been some reports of cyber attacks on Israeli citizens and their smart home devices.

בארבע לפנות בוקר הבית שלי התחיל להשתגע. תריסים עולים ויורדים בלי הפסקה, אורות נדלקים וכבים בכל רחבי הבית. האמת? די מפחיד בהתחשב בעצבים הרופפים שלנו עכשיו. הרגיש כמו בסרט כשרוחות משתלטות על הבית. פתחתי את ארונות חשמל לנסות להבין מה קורה, ניתקתי את הבקר האפליקציה של החשמל חכם…

— Liad Agmon (@liadagmon) October 13, 2023

Home Assistant Remote Access

Home Assistant is a popular open-source home automation platform. I use it myself with a range of Zigbee and Wi-Fi devices to control various electronic devices and automate scenes. More often than not, Home Assistant is a self-hosted platform that usually is installed on a Raspberry Pi or a Linux server (sometimes, containerized with Docker).

To manage your smart home, Home Assistant comes with a web-based application that can be accessed using a browser and allows access to various configuration, dashboard and controls. There’s also a native mobile app available for Android and iOS. However, to access Home Assistant remotely, you need to open it up to the Internet to be able to access it from outside your home network (your local Wi-Fi network).

To securely access Home Assistant remotely, one way is to employ a VPN (Virtual Private Network) to connect to your home network and then access Home Assistant. This is a secure way to access Home Assistant remotely and is the recommended way to do so.

Home Assistant and Tailscale VPN

We’ll use Tailscale as a remote access VPN application that essentially establishes network connectivity between your mobile device and the Home Assistant installation. As such, this guide is going to focus on these two-parts:

  1. Install Tailscale on Home Assistant
  2. Install Tailscale on your mobile device

What is Tailscale?

Tailscale is a mesh VPN service that makes it easy to connect your devices, wherever they are. It is a VPN (Virtual Private Network) that works like a single sign-on for your devices. It is a zero-config VPN that works on any device, behind any firewall. The free tier is generous and is a great way to get started with Tailscale VPN for your smart home.

Install Tailscale on Home Assistant

In the Home Assistant web interface, go to Settings and then Add-ons. Click the ADD-ON STORE button to view all Add-ons available from both official and community sources, and then search for Tailscale. Click on the Tailscale add-on and then click the INSTALL button to install the add-on.

How I Deployed Tailscale VPN to Securely Access Home Assistant Remotely (1)

Once the add-on is installed, toggle on the Start on boot, Watchdog, and Auto-update options. Then click on the START button to start the add-on.

Once the add-on is started, click on the OPEN WEB UI button to open the Tailscale web interface. Continue to login with your Tailscale account until you’re greeted with connecting a device to your Tailscale network.

How I Deployed Tailscale VPN to Securely Access Home Assistant Remotely (2)

Once you’ve approved the connection you’ll receive a confirmation message that the device is connected to your Tailscale network: Login successful Your device homeassistant is logged in to the Tailscale network.

Install the Tailscale VPN client on your mobile device (Android)

Tailscale makes it easy to deploy from multiple endpoints such as Linux, macOS or Windows but to access Home Assistant on the road, you’d want to install the Tailscale VPN client on your mobile device.

Head over to the Tailscale download page and download the Tailscale VPN client for your mobile device. In fact, the previous step of connecting your Home Assistant instance to your Tailscale network should’ve redirected you to the download page:

How I Deployed Tailscale VPN to Securely Access Home Assistant Remotely (3)

Upon successful installation, sign-in you should be able to see a successful VPN connection between your Home Assistant instance and the mobile device as well as test the connection through a ping command you can execute from the Home Assistant instance:

How I Deployed Tailscale VPN to Securely Access Home Assistant Remotely (4)

Connecting the Home Assistant instance to a remote Tailscale device

What we’ve done so far, is successfully establishing a network between the operating system running the Home Assistant node, to any remote clients.

What’s needed next, is to specifically forward routes of the home network which the Home Assistance node is running on (for example, your 192.168.0.0/24 local network) so that the endpoint device can access the Home Assistant instance.

This configuration is needed so that when opening the Home Assistance mobile device to connect to the Home Assistance web interface over an IP such as 192.168.1.0, this routing enables HTTP requests through the Tailscale VPN network that determinate on the Home Assistance node on which the Tailscale VPN is running on:

How I Deployed Tailscale VPN to Securely Access Home Assistant Remotely (5)

Stay safe and secure ❤️

How I Deployed Tailscale VPN to Securely Access Home Assistant Remotely (2024)

References

Top Articles
How to Download Movies From Soap2Day [3 EASY WAYS]
4 Proved Ways to Download Movies from Soap2day
Great Clips Mount Airy Nc
Bleak Faith: Forsaken – im Test (PS5)
Matgyn
Is Sam's Club Plus worth it? What to know about the premium warehouse membership before you sign up
Moon Stone Pokemon Heart Gold
Metallica - Blackened Lyrics Meaning
Shorthand: The Write Way to Speed Up Communication
Achivr Visb Verizon
Catsweb Tx State
Whitley County Ky Mugshots Busted
Shuiby aslam - ForeverMissed.com Online Memorials
No Hard Feelings Showtimes Near Cinemark At Harlingen
Eva Mastromatteo Erie Pa
Star Wars: Héros de la Galaxie - le guide des meilleurs personnages en 2024 - Le Blog Allo Paradise
Robert Deshawn Swonger Net Worth
Tips on How to Make Dutch Friends & Cultural Norms
Jobs Hiring Near Me Part Time For 15 Year Olds
Breckiehill Shower Cucumber
Pulitzer And Tony Winning Play About A Mathematical Genius Crossword
3 Ways to Drive Employee Engagement with Recognition Programs | UKG
Angel Haynes Dropbox
Scott Surratt Salary
Pronóstico del tiempo de 10 días para San Josecito, Provincia de San José, Costa Rica - The Weather Channel | weather.com
100 Gorgeous Princess Names: With Inspiring Meanings
Japanese Emoticons Stars
Housing Assistance Rental Assistance Program RAP
NIST Special Publication (SP) 800-37 Rev. 2 (Withdrawn), Risk Management Framework for Information Systems and Organizations: A System Life Cycle Approach for Security and Privacy
Bt33Nhn
Tendermeetup Login
Drabcoplex Fishing Lure
Junior / medior handhaver openbare ruimte (BOA) - Gemeente Leiden
Police Academy Butler Tech
Metra Schedule Ravinia To Chicago
Aliciabibs
Dadeclerk
2020 Can-Am DS 90 X Vs 2020 Honda TRX90X: By the Numbers
Second Chance Apartments, 2nd Chance Apartments Locators for Bad Credit
Gravel Racing
Pulaski County Ky Mugshots Busted Newspaper
Exploring the Digital Marketplace: A Guide to Craigslist Miami
4k Movie, Streaming, Blu-Ray Disc, and Home Theater Product Reviews & News
Wgu Admissions Login
Amy Zais Obituary
Amateur Lesbian Spanking
Walmart Listings Near Me
Kushfly Promo Code
Michaelangelo's Monkey Junction
Hsi Delphi Forum
Divisadero Florist
211475039
Latest Posts
Article information

Author: Edwin Metz

Last Updated:

Views: 6061

Rating: 4.8 / 5 (58 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Edwin Metz

Birthday: 1997-04-16

Address: 51593 Leanne Light, Kuphalmouth, DE 50012-5183

Phone: +639107620957

Job: Corporate Banking Technician

Hobby: Reading, scrapbook, role-playing games, Fishing, Fishing, Scuba diving, Beekeeping

Introduction: My name is Edwin Metz, I am a fair, energetic, helpful, brave, outstanding, nice, helpful person who loves writing and wants to share my knowledge and understanding with you.