1. 安装 go

  2. go 换源

  3. 安装 tailscale

  4. 运行 tailscale

  5. 安装 DERP 服务

    1. go install [tailscale.com/cmd/derper@main](<http://tailscale.com/cmd/derper@main>)
    2. 后台运行 nohup derper --hostname=[your-hostname.com](<http://your-hostname.com/>) --verify-clients &
  6. 编辑 ACL 配置文件

    {
      // ... other parts of ACL/Policy JSON
      "derpMap": {
        "Regions": {
          "900": {
            "RegionID": 900,
            "RegionCode": "myderp",
            "Nodes": [
              {
                "Name": "1",
                "RegionID": 900,
                "HostName": "your-hostname.com"
              }
            ]
          }
        }
      }
    }