Tailscale

安装

macOS

1
2
brew install tailscale
sudo brew services start tailscale

Debian

1
2
3
curl -fsSL https://tailscale.com/install.sh | sh

sudo tailscale up

内网穿透

借助 Funnel 可以轻松实现。

1
2
3
4
5
# 将本地目录暴露到公网,必须是绝对目录
sudo tailscale funnel /tmp/public

# 将 3000 的服务暴露到公网
sudo tailscale funnel 3000