6a42f58f5b
Co-authored-by: Cursor <cursoragent@cursor.com>
86 lines
1.6 KiB
Plaintext
86 lines
1.6 KiB
Plaintext
{
|
|
"log": {
|
|
"level": "info"
|
|
},
|
|
"dns": {
|
|
"servers": [
|
|
{
|
|
"tag": "remote",
|
|
"address": "tls://8.8.8.8",
|
|
"detour": "proxy"
|
|
},
|
|
{
|
|
"tag": "local",
|
|
"address": "223.5.5.5",
|
|
"detour": "direct"
|
|
}
|
|
],
|
|
"rules": [
|
|
{
|
|
"outbound": "any",
|
|
"server": "local"
|
|
}
|
|
],
|
|
"final": "remote"
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"type": "mixed",
|
|
"tag": "mixed-in",
|
|
"listen": "127.0.0.1",
|
|
"listen_port": 7890
|
|
},
|
|
{
|
|
"type": "tun",
|
|
"tag": "tun-in",
|
|
"interface_name": "sing-tun",
|
|
"address": ["172.19.0.1/30"],
|
|
"mtu": 9000,
|
|
"auto_route": true,
|
|
"strict_route": true,
|
|
"stack": "mixed"
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"type": "selector",
|
|
"tag": "proxy",
|
|
"outbounds": ["hysteria2", "direct"]
|
|
},
|
|
{
|
|
"type": "hysteria2",
|
|
"tag": "hysteria2",
|
|
"server": "${DOMAIN}",
|
|
"server_port": 8443,
|
|
"password": "${HY2_PASSWORD}",
|
|
"tls": {
|
|
"enabled": true,
|
|
"server_name": "${DOMAIN}",
|
|
"alpn": ["h3"]
|
|
}
|
|
},
|
|
{
|
|
"type": "direct",
|
|
"tag": "direct"
|
|
},
|
|
{
|
|
"type": "dns",
|
|
"tag": "dns-out"
|
|
}
|
|
],
|
|
"route": {
|
|
"rules": [
|
|
{
|
|
"protocol": "dns",
|
|
"outbound": "dns-out"
|
|
},
|
|
{
|
|
"ip_is_private": true,
|
|
"outbound": "direct"
|
|
}
|
|
],
|
|
"final": "proxy",
|
|
"auto_detect_interface": true
|
|
}
|
|
}
|