部署Headscale以及Tailscale连接使用方法

Headscale是一款开源的Tailscale控制服务器软件,使用Headscale可以自行架设Tailscale服务。 VPS安装Headscale 下载地址https://github.com/juanfont/headscale/releases wget https://github.com/juanfont/headscale/releases/download/v0.24.0/headscale_0.24.0_linux_amd64.deb apt install headscale_0.24.0_linux_amd64.deb 安装完成后会有如下提示: ---------------------------------------------------------------------- headscale package has been successfully installed. Please follow the next steps to start the software: sudo systemctl enable --now headscale sudo systemctl start headscale Configuration settings can be adjusted here: /etc/headscale/config.yaml ---------------------------------------------------------------------- 注册启动Headscale服务 systemctl enable --now headscale systemctl start headscale 配置Headscale 编辑配置文件vi /etc/headscale/config.yaml 将其中的127.0.0.1替换为自己的服务器IP,例如45.67.89.99 sed -i 's|127.0.0.1|45.67.89.99|g' /etc/headscale/config.yaml 建议将randomize_client_port: false改为randomize_client_port: true开启客户端随机端口。 修改完成后重启服务systemctl restart headscale.service 查看当前状态systemctl status headscale.service 使用Headscale Headscale用户管理 创建用户,bbq为自定义用户名 headscale users create bbq 使用headscale users list查看已存在用户 ...

一月 20, 2025 · jqx