I stopped exposing my smart home to the Internet, and remote access is still easy
Use IoT devices on your own terms
My smart home had a security issue. It was not the various devices from different manufacturers, but the implicit trust that was given once I connected it. This left my home with unpatched or unreported security holes. After learning more about cybersecurity, I decided to explore solutions. I thought remotely accessing my smart home would be challenging, but it turned out to be the simplest part.
What took time was blocking IoT devices from accessing the WAN, adjusting firewall settings, and integrating everything into Home Assistant for local control. While smart home devices often sacrifice security for convenience, I wanted to reverse the pendulum and take control of my smart home on my terms. After hard work, I am nearing my goal.
The Internet is a scary place, and automated scanning, scripting, and AI have made it even more so recently. The proliferation of barely-secured IoT devices has led to thousands of zombie devices waiting to be used in botnets like Mirai. I put IoT devices on their own VLAN and blocked them from connecting to the Internet. I also integrated more devices under local control, so they didn't need cloud services.
However, I liked being able to change my thermostat settings on the way home or check on the security cameras. To fix the situation, I needed to allow my local control system to the outside world or use a remote access tool. I opted for Tailscale instead of Nabu Casa. First, I got all my smart home devices under the control of a singular entity.
Home Assistant, Hubitat, or any other option can be used, as long as it allows local control. Wi-Fi-connected smart home devices were placed on their own access point on a dedicated VLAN for IoT devices. Zigbee, a local protocol, was leveraged, so devices didn't need to be secured in the same way. Devices that couldn't be integrated were replaced with newer, compatible ones.
Home Assistant was spun up and connected for voice control that didn't require cloud services. With all devices on a single VLAN, firewall rules in OPNsense were reduced. Home Assistant was given permission to talk to the main LAN, while anything on the other VLAN was blocked from communicating back. A mini PC with Home Assistant on it has two network ports, allowing one LAN port on the IoT VLAN and one on the main network. mDNS reflection was set up to enable local smart device services to work even without internet access.
A stateful rule was added to allow IoT devices to return traffic to the main network when asked to do so. No more internet access for smart devices, except for Home Assistant, which can talk to the LAN. Tailscale was set up with the Home Assistant add-on, enabling remote access from anywhere. With Home Assistant and Tailscale apps on my smartphone, I can control my smart home remotely without worrying about internet access.
I set up automations for when I leave the house, making remote control convenient and giving me peace of mind.
Rewritten by urgent.news; may contain errors โ check the original.
Source: xda-developers.com