745 lines
18 KiB
JSON
745 lines
18 KiB
JSON
{
|
|
"log": {
|
|
"level": "info",
|
|
"timestamp": true
|
|
},
|
|
"experimental": {
|
|
"cache_file": {
|
|
"enabled": true,
|
|
"path": "cache.db",
|
|
"store_fakeip": true
|
|
},
|
|
"clash_api": {
|
|
"external_controller": "127.0.0.1:9090",
|
|
"default_mode": "rule"
|
|
}
|
|
},
|
|
"dns": {
|
|
"servers": [
|
|
{
|
|
"type": "udp",
|
|
"tag": "dns-local",
|
|
"server": "223.5.5.5",
|
|
"server_port": 53
|
|
},
|
|
{
|
|
"type": "udp",
|
|
"tag": "dns-local-backup",
|
|
"server": "119.29.29.29",
|
|
"server_port": 53
|
|
},
|
|
{
|
|
"type": "https",
|
|
"tag": "dns-remote",
|
|
"server": "1.1.1.1",
|
|
"path": "/dns-query",
|
|
"tls": {
|
|
"enabled": true,
|
|
"server_name": "cloudflare-dns.com"
|
|
},
|
|
"detour": "Proxy"
|
|
},
|
|
{
|
|
"type": "fakeip",
|
|
"tag": "dns-fakeip",
|
|
"inet4_range": "198.18.0.0/15",
|
|
"inet6_range": "fc00::/18"
|
|
}
|
|
],
|
|
"rules": [
|
|
{
|
|
"clash_mode": "Direct",
|
|
"action": "route",
|
|
"server": "dns-local"
|
|
},
|
|
{
|
|
"clash_mode": "Global",
|
|
"action": "route",
|
|
"server": "dns-remote"
|
|
},
|
|
{
|
|
"rule_set": [
|
|
"geosite-cn"
|
|
],
|
|
"action": "route",
|
|
"server": "dns-local"
|
|
},
|
|
{
|
|
"rule_set": [
|
|
"geosite-openai",
|
|
"geosite-google-gemini",
|
|
"geosite-anthropic",
|
|
"geosite-telegram",
|
|
"geosite-youtube",
|
|
"geosite-google",
|
|
"geosite-twitter",
|
|
"geosite-github",
|
|
"geosite-netflix",
|
|
"geosite-disney",
|
|
"geosite-tiktok",
|
|
"geosite-spotify",
|
|
"geosite-geolocation-!cn"
|
|
],
|
|
"action": "route",
|
|
"server": "dns-fakeip"
|
|
},
|
|
{
|
|
"query_type": [
|
|
"A",
|
|
"AAAA"
|
|
],
|
|
"action": "route",
|
|
"server": "dns-fakeip"
|
|
}
|
|
],
|
|
"final": "dns-remote"
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"type": "tproxy",
|
|
"tag": "tproxy-in",
|
|
"listen": "::",
|
|
"listen_port": 7893
|
|
},
|
|
{
|
|
"type": "mixed",
|
|
"tag": "mixed-in",
|
|
"listen": "0.0.0.0",
|
|
"listen_port": 7890
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"type": "hysteria2",
|
|
"tag": "美国1-hy2",
|
|
"server": "64.69.34.207",
|
|
"server_port": 4439,
|
|
"up_mbps": 200,
|
|
"down_mbps": 500,
|
|
"password": "Se7RAuFZ8Lzg",
|
|
"tls": {
|
|
"enabled": true,
|
|
"server_name": "hy2.jocayn.qzz.io",
|
|
"insecure": false,
|
|
"alpn": [
|
|
"h3"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "vless",
|
|
"tag": "美国1-vless",
|
|
"server": "64.69.34.207",
|
|
"server_port": 19150,
|
|
"uuid": "b9136671-ef40-4b5c-a007-dcf996ec2466",
|
|
"flow": "xtls-rprx-vision",
|
|
"network": "tcp",
|
|
"packet_encoding": "xudp",
|
|
"tls": {
|
|
"enabled": true,
|
|
"server_name": "aws.amazon.com",
|
|
"insecure": true,
|
|
"alpn": [
|
|
"h2",
|
|
"http/1.1"
|
|
],
|
|
"utls": {
|
|
"enabled": true,
|
|
"fingerprint": "chrome"
|
|
},
|
|
"reality": {
|
|
"enabled": true,
|
|
"public_key": "-dTj4YHBzV5tpgVpD4mgXzlAESmxjOoyyn6waky1Dkw",
|
|
"short_id": ""
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "tuic",
|
|
"tag": "美国1-Tuic",
|
|
"server": "64.69.34.207",
|
|
"server_port": 4438,
|
|
"uuid": "ca4d81b1-f8d9-4533-8b61-c15e1da91697",
|
|
"password": "ca4d81b1-f8d9-4533-8b61-c15e1da91697",
|
|
"congestion_control": "bbr",
|
|
"udp_relay_mode": "native",
|
|
"zero_rtt_handshake": true,
|
|
"heartbeat": "10s",
|
|
"tls": {
|
|
"enabled": true,
|
|
"disable_sni": true,
|
|
"insecure": true,
|
|
"alpn": [
|
|
"h3"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "vless",
|
|
"tag": "美国2-vless",
|
|
"server": "107.174.208.133",
|
|
"server_port": 34532,
|
|
"uuid": "1b8889b6-bb2f-4735-a401-4e53bdc81c51",
|
|
"flow": "xtls-rprx-vision",
|
|
"network": "tcp",
|
|
"packet_encoding": "xudp",
|
|
"tls": {
|
|
"enabled": true,
|
|
"server_name": "www.cloudflare.com",
|
|
"insecure": true,
|
|
"alpn": [
|
|
"h2",
|
|
"http/1.1"
|
|
],
|
|
"utls": {
|
|
"enabled": true,
|
|
"fingerprint": "chrome"
|
|
},
|
|
"reality": {
|
|
"enabled": true,
|
|
"public_key": "R31tFIfDoM8yjrCfQAQqQ8QhFt6KuGjhhtQ3oSnPbAI",
|
|
"short_id": ""
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "tuic",
|
|
"tag": "美国2-Tuic",
|
|
"server": "107.174.208.133",
|
|
"server_port": 4438,
|
|
"uuid": "161eaa3d-cf5b-4c07-ab36-f4f58536d081",
|
|
"password": "161eaa3d-cf5b-4c07-ab36-f4f58536d081",
|
|
"congestion_control": "bbr",
|
|
"udp_relay_mode": "native",
|
|
"zero_rtt_handshake": true,
|
|
"heartbeat": "10s",
|
|
"tls": {
|
|
"enabled": true,
|
|
"disable_sni": true,
|
|
"insecure": true,
|
|
"alpn": [
|
|
"h3"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "tuic",
|
|
"tag": "HK-Tuic",
|
|
"server": "154.94.234.168",
|
|
"server_port": 63155,
|
|
"uuid": "ef24b7cf-ec2f-48b4-b2eb-c1314f8787ef",
|
|
"password": "ef24b7cf-ec2f-48b4-b2eb-c1314f8787ef",
|
|
"congestion_control": "bbr",
|
|
"udp_relay_mode": "native",
|
|
"zero_rtt_handshake": true,
|
|
"heartbeat": "10s",
|
|
"tls": {
|
|
"enabled": true,
|
|
"disable_sni": true,
|
|
"insecure": true,
|
|
"alpn": [
|
|
"h3"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "vless",
|
|
"tag": "HK-vless[最高2.5mb/s]",
|
|
"server": "154.94.234.168",
|
|
"server_port": 63159,
|
|
"uuid": "27485652-f88d-48e8-b4ee-3759ac63ce80",
|
|
"flow": "xtls-rprx-vision",
|
|
"network": "tcp",
|
|
"packet_encoding": "xudp",
|
|
"tls": {
|
|
"enabled": true,
|
|
"server_name": "www.amazon.com",
|
|
"insecure": true,
|
|
"alpn": [
|
|
"h2",
|
|
"http/1.1"
|
|
],
|
|
"utls": {
|
|
"enabled": true,
|
|
"fingerprint": "chrome"
|
|
},
|
|
"reality": {
|
|
"enabled": true,
|
|
"public_key": "Jq_MTHf-vZLqpvPaViXUSZfQJ3oLM7DYeqBrtH8qlgs",
|
|
"short_id": ""
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "hysteria2",
|
|
"tag": "HK-Hy2",
|
|
"server": "154.94.234.168",
|
|
"server_port": 4438,
|
|
"up_mbps": 15,
|
|
"down_mbps": 15,
|
|
"password": "09e70d0d-fb51-458a-a650-5922eaefcc24",
|
|
"tls": {
|
|
"enabled": true,
|
|
"server_name": "hy2.jocay.icu",
|
|
"insecure": true,
|
|
"alpn": [
|
|
"h3"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "selector",
|
|
"tag": "Proxy",
|
|
"outbounds": [
|
|
"美国1-Tuic",
|
|
"Auto",
|
|
"美国1-Tuic",
|
|
"美国1-vless",
|
|
"美国1-hy2",
|
|
"美国2-Tuic",
|
|
"美国2-vless",
|
|
"HK-Tuic",
|
|
"HK-vless[最高2.5mb/s]",
|
|
"HK-Hy2",
|
|
"direct"
|
|
],
|
|
"default": "美国1-Tuic"
|
|
},
|
|
{
|
|
"type": "urltest",
|
|
"tag": "Auto",
|
|
"outbounds": [
|
|
"美国1-Tuic",
|
|
"美国1-vless",
|
|
"美国1-hy2",
|
|
"美国2-Tuic",
|
|
"美国2-vless"
|
|
],
|
|
"url": "https://www.gstatic.com/generate_204",
|
|
"interval": "10m",
|
|
"tolerance": 50
|
|
},
|
|
{
|
|
"type": "selector",
|
|
"tag": "GPT",
|
|
"outbounds": [
|
|
"美国1-Tuic",
|
|
"Proxy",
|
|
"Auto",
|
|
"美国1-Tuic",
|
|
"美国1-vless",
|
|
"美国1-hy2",
|
|
"美国2-Tuic",
|
|
"美国2-vless",
|
|
"HK-Tuic",
|
|
"HK-vless[最高2.5mb/s]",
|
|
"HK-Hy2"
|
|
],
|
|
"default": "美国1-Tuic"
|
|
},
|
|
{
|
|
"type": "selector",
|
|
"tag": "Streaming",
|
|
"outbounds": [
|
|
"Proxy",
|
|
"Auto",
|
|
"美国1-Tuic",
|
|
"美国1-vless",
|
|
"美国1-hy2",
|
|
"美国2-Tuic",
|
|
"美国2-vless",
|
|
"HK-Tuic",
|
|
"HK-vless[最高2.5mb/s]",
|
|
"HK-Hy2",
|
|
"direct"
|
|
],
|
|
"default": "Proxy"
|
|
},
|
|
{
|
|
"type": "selector",
|
|
"tag": "Steam",
|
|
"outbounds": [
|
|
"direct",
|
|
"Proxy",
|
|
"Auto",
|
|
"美国1-Tuic",
|
|
"美国1-vless",
|
|
"美国1-hy2",
|
|
"美国2-Tuic",
|
|
"美国2-vless",
|
|
"HK-Tuic",
|
|
"HK-vless[最高2.5mb/s]",
|
|
"HK-Hy2"
|
|
],
|
|
"default": "direct"
|
|
},
|
|
{
|
|
"type": "selector",
|
|
"tag": "Emby",
|
|
"outbounds": [
|
|
"direct",
|
|
"Proxy",
|
|
"Auto",
|
|
"美国1-Tuic",
|
|
"美国1-vless",
|
|
"美国1-hy2",
|
|
"美国2-Tuic",
|
|
"美国2-vless",
|
|
"HK-Tuic",
|
|
"HK-vless[最高2.5mb/s]",
|
|
"HK-Hy2"
|
|
],
|
|
"default": "direct"
|
|
},
|
|
{
|
|
"type": "selector",
|
|
"tag": "Domestic",
|
|
"outbounds": [
|
|
"direct",
|
|
"Proxy"
|
|
],
|
|
"default": "direct"
|
|
},
|
|
{
|
|
"type": "selector",
|
|
"tag": "Final",
|
|
"outbounds": [
|
|
"Proxy",
|
|
"direct",
|
|
"Auto",
|
|
"美国1-Tuic",
|
|
"美国1-vless",
|
|
"美国1-hy2",
|
|
"美国2-Tuic",
|
|
"美国2-vless",
|
|
"HK-Tuic",
|
|
"HK-vless[最高2.5mb/s]",
|
|
"HK-Hy2"
|
|
],
|
|
"default": "Proxy"
|
|
},
|
|
{
|
|
"type": "direct",
|
|
"tag": "direct"
|
|
},
|
|
{
|
|
"type": "block",
|
|
"tag": "block"
|
|
}
|
|
],
|
|
"route": {
|
|
"rules": [
|
|
{
|
|
"action": "sniff"
|
|
},
|
|
{
|
|
"protocol": "dns",
|
|
"action": "hijack-dns"
|
|
},
|
|
{
|
|
"ip_is_private": true,
|
|
"action": "route",
|
|
"outbound": "direct"
|
|
},
|
|
{
|
|
"clash_mode": "Direct",
|
|
"action": "route",
|
|
"outbound": "direct"
|
|
},
|
|
{
|
|
"clash_mode": "Global",
|
|
"action": "route",
|
|
"outbound": "Proxy"
|
|
},
|
|
{
|
|
"rule_set": [
|
|
"geosite-openai",
|
|
"geosite-google-gemini",
|
|
"geosite-anthropic"
|
|
],
|
|
"action": "route",
|
|
"outbound": "GPT"
|
|
},
|
|
{
|
|
"domain_suffix": [
|
|
"chatgpt.com",
|
|
"openai.com",
|
|
"oaistatic.com",
|
|
"oaiusercontent.com",
|
|
"anthropic.com",
|
|
"claude.ai",
|
|
"claudeusercontent.com",
|
|
"gemini.google.com",
|
|
"perplexity.ai",
|
|
"poe.com"
|
|
],
|
|
"action": "route",
|
|
"outbound": "GPT"
|
|
},
|
|
{
|
|
"rule_set": [
|
|
"geosite-telegram",
|
|
"geosite-youtube",
|
|
"geosite-google",
|
|
"geosite-twitter",
|
|
"geosite-github",
|
|
"geosite-geolocation-!cn"
|
|
],
|
|
"action": "route",
|
|
"outbound": "Proxy"
|
|
},
|
|
{
|
|
"rule_set": [
|
|
"geosite-netflix",
|
|
"geosite-disney",
|
|
"geosite-tiktok",
|
|
"geosite-spotify"
|
|
],
|
|
"action": "route",
|
|
"outbound": "Streaming"
|
|
},
|
|
{
|
|
"rule_set": [
|
|
"geosite-steam"
|
|
],
|
|
"action": "route",
|
|
"outbound": "Steam"
|
|
},
|
|
{
|
|
"domain_suffix": [
|
|
"mobaiemby.site",
|
|
"recmata.net",
|
|
"emby.media",
|
|
"jellyfin.org"
|
|
],
|
|
"action": "route",
|
|
"outbound": "Emby"
|
|
},
|
|
{
|
|
"rule_set": [
|
|
"geosite-apple",
|
|
"geosite-microsoft",
|
|
"geosite-onedrive"
|
|
],
|
|
"action": "route",
|
|
"outbound": "Domestic"
|
|
},
|
|
{
|
|
"rule_set": [
|
|
"geosite-bilibili",
|
|
"geosite-cn",
|
|
"geoip-cn"
|
|
],
|
|
"action": "route",
|
|
"outbound": "Domestic"
|
|
}
|
|
],
|
|
"rule_set": [
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-openai",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-openai.srs",
|
|
"update_interval": "24h",
|
|
"http_client": {
|
|
"detour": "Proxy"
|
|
}
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-google-gemini",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-google-gemini.srs",
|
|
"update_interval": "24h",
|
|
"http_client": {
|
|
"detour": "Proxy"
|
|
}
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-anthropic",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-anthropic.srs",
|
|
"update_interval": "24h",
|
|
"http_client": {
|
|
"detour": "Proxy"
|
|
}
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-telegram",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-telegram.srs",
|
|
"update_interval": "24h",
|
|
"http_client": {
|
|
"detour": "Proxy"
|
|
}
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-youtube",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-youtube.srs",
|
|
"update_interval": "24h",
|
|
"http_client": {
|
|
"detour": "Proxy"
|
|
}
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-google",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-google.srs",
|
|
"update_interval": "24h",
|
|
"http_client": {
|
|
"detour": "Proxy"
|
|
}
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-twitter",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-twitter.srs",
|
|
"update_interval": "24h",
|
|
"http_client": {
|
|
"detour": "Proxy"
|
|
}
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-github",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-github.srs",
|
|
"update_interval": "24h",
|
|
"http_client": {
|
|
"detour": "Proxy"
|
|
}
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-netflix",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-netflix.srs",
|
|
"update_interval": "24h",
|
|
"http_client": {
|
|
"detour": "Proxy"
|
|
}
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-disney",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-disney.srs",
|
|
"update_interval": "24h",
|
|
"http_client": {
|
|
"detour": "Proxy"
|
|
}
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-tiktok",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-tiktok.srs",
|
|
"update_interval": "24h",
|
|
"http_client": {
|
|
"detour": "Proxy"
|
|
}
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-spotify",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-spotify.srs",
|
|
"update_interval": "24h",
|
|
"http_client": {
|
|
"detour": "Proxy"
|
|
}
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-apple",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-apple.srs",
|
|
"update_interval": "24h",
|
|
"http_client": {
|
|
"detour": "Proxy"
|
|
}
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-microsoft",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-microsoft.srs",
|
|
"update_interval": "24h",
|
|
"http_client": {
|
|
"detour": "Proxy"
|
|
}
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-onedrive",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-onedrive.srs",
|
|
"update_interval": "24h",
|
|
"http_client": {
|
|
"detour": "Proxy"
|
|
}
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-bilibili",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-bilibili.srs",
|
|
"update_interval": "24h",
|
|
"http_client": {
|
|
"detour": "Proxy"
|
|
}
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-steam",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-steam.srs",
|
|
"update_interval": "24h",
|
|
"http_client": {
|
|
"detour": "Proxy"
|
|
}
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-geolocation-!cn",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-!cn.srs",
|
|
"update_interval": "24h",
|
|
"http_client": {
|
|
"detour": "Proxy"
|
|
}
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geosite-cn",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-cn.srs",
|
|
"update_interval": "24h",
|
|
"http_client": {
|
|
"detour": "Proxy"
|
|
}
|
|
},
|
|
{
|
|
"type": "remote",
|
|
"tag": "geoip-cn",
|
|
"format": "binary",
|
|
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs",
|
|
"update_interval": "24h",
|
|
"http_client": {
|
|
"detour": "Proxy"
|
|
}
|
|
}
|
|
],
|
|
"final": "Final",
|
|
"auto_detect_interface": true,
|
|
"find_process": true,
|
|
"default_domain_resolver": "dns-local"
|
|
}
|
|
}
|