安装 go
go 换源
安装 tailscale
运行 tailscale
安装 DERP 服务
go install [tailscale.com/cmd/derper@main](<http://tailscale.com/cmd/derper@main>)
nohup derper --hostname=[your-hostname.com](<http://your-hostname.com/>) --verify-clients &
编辑 ACL 配置文件
{
// ... other parts of ACL/Policy JSON
"derpMap": {
"Regions": {
"900": {
"RegionID": 900,
"RegionCode": "myderp",
"Nodes": [
{
"Name": "1",
"RegionID": 900,
"HostName": "your-hostname.com"
}
]
}
}
}
}