外出用 WebDAV 連回家中相簿
繁體中文
什麼時候用 WebDAV?
- 人在家、連家中 Wi‑Fi → 不必開 WebDAV 遠端;走區網 SMB
- 外出、NAS 可開 HTTPS WebDAV + DDNS/公網 IP → 用 WebDAV
- 外出、Windows PC → 用 Tailscale
- 已用 OpenVPN 等連進家中區網 → 通常不必再開
1. NAS 摘要
- 啟用 WebDAV HTTPS(Synology 常見埠 5006)
- 準備 DDNS(例如
xxx.synology.me)或公網 IP - 確認路由器/防火牆已放行該埠(依環境)
2. Home Gallery
- 先在家中 Wi‑Fi把主機與家中相簿設好
- 設定 → 主機連線管理 → 編輯 → 遠端存取選 WebDAV
- 填外網主機(DDNS/公網 IP)與埠;多數家用 NAS 可勾選允許自簽憑證
- 測試連線 → 儲存
區網 IPv4 請維持 192.168.x。IPv6 欄位僅在「啟用 IPv6」開啟時顯示(預設關閉);外出以你填的 WebDAV 主機為準。
3. 外出
- 關家中 Wi‑Fi → 開家中相簿,應以 WebDAV 連線
- 連不上:檢查 DDNS、埠、NAS WebDAV 是否啟用、帳密與權限
對外開放 WebDAV 請用強密碼;不需要外出時遠端存取請維持「無」。
English
When to use WebDAV
- At home on Wi‑Fi → SMB on the LAN; no remote WebDAV needed
- Away, NAS with HTTPS WebDAV + DDNS/public IP → use WebDAV
- Away, Windows PC → use Tailscale
- Already on a home-LAN VPN → usually neither is required
1. NAS (summary)
- Enable WebDAV over HTTPS (Synology often uses port 5006)
- Set up DDNS or note your public IP
- Allow the port through your router/firewall as needed
2. Home Gallery
- On home Wi‑Fi, finish the host and home album setup
- Settings → Host connections → Edit → remote access WebDAV
- Enter public host (DDNS/IP) and port; allow untrusted certs if your NAS uses a self-signed cert
- Test connection → Save
Keep LAN IPv4 as 192.168.x. The IPv6 field appears only when Enable IPv6 is on (off by default); away access uses the WebDAV host you entered.
3. Away
- Turn off home Wi‑Fi → open the home album; it should connect via WebDAV
- If it fails: check DDNS, port, WebDAV service, credentials and share permissions
Exposing WebDAV to the internet requires a strong password. If you do not need away access, leave remote access on None.