sing-box服务端配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
"type": "tuic",
"tag": "duwnajm8-in",
"listen": "::",
"listen_port": 443,
"sniff": true,
"sniff_override_destination": true,
"users": [
{
"name": "5OzWzH6t",
"uuid": "df5f4b75-6js7-4e55-b20f-8233se7c38d",
"password": "jCepsknishFM"
}
],
"congestion_control": "bbr",
"auth_timeout": "3s",
"zero_rtt_handshake": false,
"heartbeat": "10s",
"tls": {
"enabled": true,
"server_name": "example.com", #此处填签名证书域名
"alpn": [
"h3"
],
"certificate_path": "/root/ssl/cert.crt",
"key_path": "/root/ssl/private.key"
}
}

clash客户端配置

1
2
3
4
5
6
7
8
9
10
11
12
name: tuic
server: example.com #若没有域名,此处填IP,若有域名,可填域名
port: 443
type: tuic
uuid: df5f4b75-6js7-4e55-b20f-8233se7c38d
password: jCepsknishFM
sni: example.com #签名证书域名(自签或许要删掉?)
alpn: [h3]
request-timeout: 8000
udp-relay-mode: native
skip-cert-verify: false #自签证书,值为true,可信任的机构证书,值为false
congestion-controller: bbr