Port forwarding cho Home Assistant

Các cổng cần mở

8123TCPHome Assistant default web port.

Tại sao cần port forwarding?

Most Home Assistant users access the dashboard from inside the LAN. Forwarding 8123 lets the mobile app and Google/Alexa integrations reach the instance from outside — but the Home Assistant Companion App now ships a remote-access "Nabu Casa" service that's safer.

Từng bước theo thương hiệu router

TP-Link
  1. Assign a static IP / DHCP reservation to the Home Assistant host
  2. Virtual Servers → forward 8123 TCP to that host
  3. Set HA to use HTTPS via the duckdns + nginx-proxy-manager add-ons before exposing
Netgear
  1. Forward 8123 to HA host. Better: forward 443 to your nginx-proxy-manager / Caddy add-on that terminates TLS, then proxies internally to 8123.
ASUS
  1. Use the built-in DDNS + AiProtection. Forward 8123 only if you cannot use Nabu Casa cloud.
  2. Add HA to ASUS' Game Boost / QoS rules to keep responsiveness

Cảnh báo bảo mật

Never expose 8123 without TLS, a strong password, and trusted_proxies hardening in HA configuration.yaml. Nabu Casa cloud ($6.5/mo) handles all of this for you and avoids touching your router.

Hướng dẫn liên quan

MẸO BẢO MẬT

Đang dùng mật khẩu mặc định? Bảo vệ mạng của bạn bằng mã hóa NordVPN.