门道

VPS 关闭公网端口,SSH 走 Tailscale,Web 走 Cloudflare Tunnel

编者按

作者建议将 VPS 所有公网端口关闭,仅通过 Tailscale 内部网络访问 SSH,并通过 Cloudflare Tunnel 接收 Web 流量。文中指出当前任何暴露单个 TCP 端口的 Linux VPS 都可能被接管,禁用 MPTCP 可作为临时补救措施,但更优方案是不暴露任何公网端口。适合希望降低 VPS 被入侵风险的运维人员。

编者按由 AI 编辑撰写,请以原文为准

@levelsio@levelsio
原文

This is why I said you want your VPS ports all closed Then only let it be accessible inside your Tailscale for SSH and via a Cloudflare Tunnel to receive web traffic Any Linux box can be taken over with just a single TCP port exposed to the internet now A stop gap is disabling MPTCP on your VPS now but even better is not having any public ports exposed!

步骤教程短帖