自建Tailscale中继DERP节点
ubuntu下,docker运行DERP节点
tech
13 views
Dec 23, 2024
使用以下docker compose运行即可,该镜像会自动获取SSL证书,无需手动配置
version: '3'
services:
derper:
image: fredliang/derper
container_name: derper
restart: always
ports:
- 443:443
- 34789:3478/udp
volumes:
- ./certs:/app/certs
- /var/run/tailscale/tailscaled.sock:/var/run/tailscale/tailscaled.sock
environment:
- DERP_DOMAIN=derp.vio.vin
- DERP_VERIFY_CLIENTS=true
在
中配置节点信息 {
"derpMap": {
// OmitDefaultRegions 用来忽略官方的中继节点
"OmitDefaultRegions": true,
"Regions": {
"901": {
"RegionID": 901,
"RegionCode": "chd",
"RegionName": "Chengdu Ali",
"Nodes": [
{
"Name": "901",
"RegionID": 901,
"HostName": "你的域名,无需https://",
"DERPPort": 443,
"STUNPort": 3478,
},
],
},
},
},
}
本地网络加入后可以使用tailscale netcheck
测试