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
{
"type": "hysteria2",
"tag": "2acwjdzl-in",
"listen": "::",
"listen_port": 443,
"sniff": true,
"sniff_override_destination": true,
"up_mbps": 50,
"down_mbps": 100,
"users": [
{
"name": "CzcHZLCD",
"password": "I4ed6BHwRXrq"
}
],
"ignore_client_bandwidth": false,
"masquerade": "https://www.fan-2000.com",
"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
name: hy2
type: hysteria2
server: example.com #若没有域名,此处填IP,若有域名,可填域名
port: 443
password: I4ed6BHwRXrq
alpn:
- h3
sni: example.com #签名证书域名(自签或许要删掉?)
skip-cert-verify: false #自签证书,值为true,可信任的机构证书,值为false
up: "50 Mbps"
down: "100 Mbps"