Can I reach Home Assistant through UniFi Teleport? Yes. Teleport runs on WireGuard, needs no port forward and, per Ubiquiti, works with both the gateway and the phone behind NAT. It points the phone at your gateway's DNS servers, so a local DNS record for Home Assistant resolves remotely. The app's sensors update only while the tunnel is up.
Teleport is UniFi's one-click VPN, available on Next-Gen gateways and Cloud Gateways running UniFi OS. The gateway buying guide covers the current models.
You generate an invitation in UniFi Network, the recipient opens it in the WiFiman app on iOS, Android or desktop, and the VPN is added. Ubiquiti's Teleport article notes that an invitation expires after 24 hours, serves one device at a time, and can be revoked from Client Devices once accepted.
What's more, Teleport sets the client's DNS servers to the gateway's own, so a local DNS record for Home Assistant resolves from a hotel room just as it does at home. Ubiquiti adds that Teleport needs an IPv6 connection on the gateway's WAN in some circumstances, so check the WAN's IPv6 status when invitations fail.
The WireGuard server is the manual alternative, and it trades convenience for control. In Ubiquiti's WireGuard server article, the server uses UDP 51820 by default and hands each client a configuration file or QR code, and Ubiquiti recommends a gateway with a public IP address.
Behind an ISP router, the port must be forwarded upstream as well. Behind CGNAT it cannot accept connections, since Ubiquiti lists a public IP as necessary for port forwarding and most VPNs, Teleport excepted.
A dual-WAN gateway adds one more wrinkle. When traffic fails over, the public address changes and live sessions reset, as the WAN failover guide explains.
As a result, a WireGuard client aimed at a literal IP cannot find the gateway, so give it a Dynamic DNS hostname and confirm the record follows the new address.
Both paths land the phone in the VPN zone of UniFi's firewall. In Ubiquiti's zone matrix, VPN to Internal is Allow All by default, but that matrix shows only the built-in zones, not a custom IoT zone like the one in the IoT VLAN guide.
So if Home Assistant lives in one, add an allow from the VPN zone to Home Assistant's address and web port.
Keep in mind what a network-level tunnel costs the Companion app. Home Assistant's documentation is explicit that its sensors do not update while the VPN is down.
For a phone that must always report, pair Teleport with a path that needs no tunnel, or accept that presence updates only when the tunnel is connected.