Cloudflare Tunnel
Định nghĩa
Cloudflare Tunnel (cloudflared) là kết nối outbound từ một máy chủ nội bộ ra mạng Cloudflare, cho phép expose một dịch vụ nội bộ ra Internet qua một domain mà không cần mở cổng inbound trên router/firewall.
Các tunnel đang dùng (2026-08-22):
- Raspberry Pi — một tunnel ở tầng hệ điều hành (
bdcd1edd-…) phục vụ SSH (homelab.nguyenbinhson.com) và AdGuard DoH (dns.nguyenbinhson.com/dns-query); riêng site WordPress dùng một tunnel khác chạy trong container Docker. - MacBook
opera— tunnel cho Vibe Companion qua launchd. - Máy Windows ở văn phòng công ty — tunnel
tantan-office-desktopchạy như Windows service, phục vụ đồng thời SSH (chiissh.nguyenbinhson.com) và RDP (chiirdp.nguyenbinhson.com); quản lý từ dashboard (remotely-managed) thay vì file config cục bộ — xem may-windows-vp-qua-cloudflare-tunnel.
Tunnel pi-companion cũ trên Pi (chạy Vibe Companion) đã ngừng dùng — xem vibe-companion-va-cloudflare-tunnel-tren-raspberry-pi.
Nguồn chính
Khái niệm liên quan
Ghi chú
- Khác với WireGuard (port-forward inbound trên router), Cloudflare Tunnel không cần mở cổng nào trên MikroTik — giảm bề mặt tấn công từ WAN.
- Từ 2026-09-04 đây là con đường truy cập từ xa duy nhất vào homelab: luật port-forward WireGuard cuối cùng đã gỡ, router không còn cổng inbound nào mở từ WAN. Đánh đổi cần biết: traffic bị terminate TLS tại edge Cloudflare (khác với VPN mã hoá đầu-cuối), và mất Internet ở nhà là mất luôn mọi đường vào — xem topology-mang-homelab.