A VPN for Home Assistant Without Broad LAN Access

A VPN is the usual answer to “how do I reach Home Assistant without putting it on the internet?” — and it is a good answer. HomeTunnel is built on the same protocol, WireGuard, but it hands out access differently: routes to named services, not a route to your network.

This page is about that difference, and about where a conventional VPN remains the better choice.

How a remote-access VPN is normally shaped.

The common pattern is a VPN server somewhere in the house — on the router, on a small always-on machine, or as a Home Assistant add-on — and a client on your phone or laptop. You generate a key pair per client, add each client as a peer, and decide what the tunnel is allowed to carry.

Two properties of that pattern matter for what follows.

It usually needs to be reachable from outside

A server waits for connections. For your phone to start one from a hotel network, the server has to be reachable at an address and port on the internet, which normally means a port-forward rule and a hostname that tracks your WAN address. On a connection behind carrier-grade NAT there is no address to forward to, and the approach stops working. Some hosted and mesh VPN products avoid this by having both ends connect outbound instead — HomeTunnel is in that category.

It usually grants a network, not a service

The point of a LAN VPN is to put you on the LAN. That is exactly right when you want to reach anything in the house, and more than you want when the task is “let my phone open Home Assistant” — or when the house belongs to a relative. Narrowing it is possible by hand, with per-peer allowed-IPs and firewall rules, and it is work you redo for every device and every property.

The parts HomeTunnel keeps.

The transport is not the thing that changes. WireGuard does the encryption, and your keys stay yours.

✓

WireGuard

The data plane is WireGuard, through the open-source NetBird platform. The same protocol, the same encryption, the same performance characteristics.

✓

Keys on your devices

WireGuard private keys are generated on your devices and are not transmitted to HomeTunnel. HomeTunnel cannot decrypt peer-to-peer traffic.

✓

Direct peer connections

NAT traversal is used to establish a direct path between your device and the home whenever the networks allow it.

✓

Nothing published publicly

Home Assistant is not exposed on a public port. No DNS record, dynamic DNS service, or TLS certificate is needed for remote access.

Access is granted per service, per home.

Routes name a host and a port

A route is one IPv4 address on a /32 with one TCP port — not a subnet. Home Assistant is its host on TCP 8123; a home may add up to three custom routes beside it.

Homes are separate networks

Each home gets its own isolated groups, policies, routes, and route distribution. No cross-home routes are provisioned, so two homes can even reuse the same LAN range.

Nothing to configure by hand

The Portal creates and reconciles the NetBird resources for each home. There are no peer files to copy, no allowed-IPs lists to keep in sync, and no NetBird knowledge required.

Enrollment is short-lived and scoped

Devices join using a single-use, home-scoped setup key with a short lifetime. Client devices and the add-on never hold administrator credentials for the network platform.

What an enrolled device actually gets.

In place of a single tunnel with a subnet behind it, each reachable service has its own access policy — authorising one TCP port — and its own route, naming one IPv4 host. Nothing is shared between the chains.

That is what makes removal precise: take away one route and exactly one service becomes unreachable, with no effect on the others and no cross-home effect at all.

  • IPv4 host only, on a /32
  • One TCP port per route
  • Its own policy and route per service
  • Up to three custom routes per home, beside Home Assistant
Route proof · one policy and one route per service
What one enrolled client device can reach in a homeAn enrolled client device fans out into four independent chains. Each chain has its own access policy, which authorises a single TCP port, and its own route, which names a single IPv4 host. The Home Assistant route on TCP 8123 is created for every home; a home may add up to three custom routes beside it.Client deviceAccess policy · one TCP portRoute · one IPv4 hostht-route-policy-7d0c9815-4b2…TCP:8123Home Assistant192.168.68.161/32defaultht-route-policy-a9f85d5f-11b…TCP:554Main CCTV192.168.68.42/32custom 01ht-route-policy-8a7a09cc-f3f…TCP:5000NAS admin192.168.68.23/32custom 02ht-route-policy-2f40be42-9c1…TCP:631Office printer192.168.68.77/32custom 03My Android100.87.114.83
  • My Android100.87.114.83
  • Home Assistantdefault192.168.68.161/32TCP:8123
  • Main CCTVcustom 01192.168.68.42/32TCP:554
  • NAS admincustom 02192.168.68.23/32TCP:5000
  • Office printercustom 03192.168.68.77/32TCP:631

Four services, four chains. Each carries its own policy and its own route, so removing one route removes exactly one service — and nothing beside it.

One host · one port · no subnet

One VPN config, or five properties.

For a single house the two columns below are close to a tie. The gap opens as properties are added.

Self-managed WireGuard

A server and peers per house

  • No subscription, and no third-party control plane
  • You decide exactly what the tunnel carries
  • Works offline from any coordination service once configured
  • A server, keys, and peer list to maintain per property
  • Self-hosted servers generally need inbound reachability
  • Overlapping LAN ranges between houses collide
  • Narrowing access to one service is manual work

Neither column is “more secure” in the abstract. They make different trade-offs about who maintains the configuration and how wide the access is. Set up remote access to multiple Home Assistant instances.

What this model will not do.

If any of these are deal-breakers, a conventional VPN is the better tool and we would rather you knew now.

The add-on is open source →

No broad LAN or subnet accessRoutes identify a host and a TCP port. There is no subnet option.
TCP services, on explicit portsA route names one IPv4 host and one TCP port, so services are reached per port.
No cross-home accessHomes are isolated from each other and no shared paths are provisioned.
A direct path cannot be guaranteedNAT, CGNAT, or firewalls can require the encrypted relay fallback instead.
The control plane is a dependencyEstablished peer-to-peer connections may continue during an outage; new connections and coordination need the service online.

WireGuard, VPNs, and what HomeTunnel is.

Is HomeTunnel a VPN?

It depends which part of the word you mean. HomeTunnel builds encrypted WireGuard tunnels between your devices and your homes, so in that sense the technology is the same as a WireGuard VPN.

It is not a broad-access VPN, though. A conventional remote-access VPN usually puts you on the home network, or routes a subnet to you. HomeTunnel grants routes to named services instead — the Home Assistant host on TCP 8123, plus up to three custom host-and-port routes per home. There is no subnet option to enable.

Can I use WireGuard with Home Assistant?

Yes, and many people do, either with a WireGuard add-on inside Home Assistant or with a WireGuard server on their router. That gives you a tunnel into the home network, and you maintain the peers and keys yourself.

HomeTunnel uses WireGuard too, through the open-source NetBird platform, but the access it hands out is per service rather than per network, and the configuration is provisioned for each home rather than written by hand.

Do I have to configure WireGuard peers myself?

No. You pair the Home Assistant add-on with the Portal using a time-limited pairing code, and enroll client devices from the Portal or the app. The Portal creates the groups, access policies, routes, and route distribution for that home and keeps them reconciled.

There are no peer configuration files, no key exchange to perform, and no allowed-IP lists to maintain as you add devices or properties.

Does a VPN always route traffic through the provider's servers?

No, and it would be wrong to say so. Commercial VPN services generally do route your traffic through their servers, because that is the product. A self-hosted WireGuard server in your own house does not — the tunnel terminates on your hardware.

HomeTunnel is peer-to-peer first: when a direct path can be established, application traffic does not pass through a HomeTunnel relay. When it cannot, packets are relayed through the open-source NetBird relay and stay end-to-end WireGuard-encrypted, with the relay unable to read them.

Can I reach my whole LAN through HomeTunnel?

No. Routes are host-and-port only, by design. If you need general access to every device on a network, a conventional LAN VPN is the right tool and HomeTunnel is not.

If you need Home Assistant plus a small number of named services — an NVR, a NAS administration page, a printer — that is what the three custom routes per home are for.

Can one home reach another over the tunnel?

No. HomeTunnel does not provision cross-home routes or shared network paths. Each home's resources are scoped to that home and its authorized owner.

A client device is enrolled in one home at a time and receives only that home's routes.

Does HomeTunnel need a port forwarded for WireGuard?

No. Both ends make outbound connections and use NAT traversal to find each other, so no inbound UDP or TCP port needs to be opened on the router.

This is also why it works on connections behind carrier-grade NAT, where a self-hosted WireGuard server generally cannot be reached from outside at all.

What does HomeTunnel require inside the home?

One Home Assistant OS or Home Assistant Supervised instance per home, running the open-source HomeTunnel add-on. That instance is the home's routing device and is not movable between homes.

Home Assistant Container and Home Assistant Core installations cannot run add-ons, so they cannot act as the routing device.

The full architecture, layer by layer →

Start your 14-day free trial.

Both plans start with a 14-day trial on monthly billing. Cancel anytime · no lock-in

Start your trial

Secure sign-in and account creation powered by Microsoft Entra. Opens in a new tab.