windows配置
{
"log": {
"disabled": true,
"level": "error",
"timestamp": true
},
"dns": {
"servers": [
{
"tag": "dns_direct",
"type": "quic",
"server": "223.5.5.5"
},
{
"tag": "dns_fakeip",
"type": "fakeip",
"inet4_range": "198.18.0.1/16"
}
],
"rules": [
{
"rule_set": "awavenue",
"action": "predefined",
"rcode": "NXDOMAIN"
},
{
"domain_suffix": "copilot.microsoft.com",
"server": "dns_fakeip"
},
{
"rule_set": "cn",
"query_type": "A",
"server": "dns_direct"
},
{
"query_type": "A",
"server": "dns_fakeip"
}
],
"final": "dns_direct",
"strategy": "prefer_ipv4",
"independent_cache": true,
"reverse_mapping": true
},
"inbounds": [
{
"tag": "tun-in",
"type": "tun",
"interface_name": "sing-box",
"address": [
"172.19.0.1/30"
],
"auto_route": true,
"strict_route": true,
"stack": "system"
},
{
"type": "mixed",
"tag": "mixed-in",
"listen": "127.0.0.1",
"listen_port": 7890
}
],
"outbounds": [
{
"tag": "PROXY",
"type": "selector",
"outbounds": [
"4"
]
},
{
"tag": "AI",
"type": "selector",
"outbounds": [
"4"
]
},
{
"tag": "media",
"type": "selector",
"outbounds": [
"hy_eyao"
]
},
{
"tag": "google",
"type": "selector",
"outbounds": [
"5"
]
},
{
"tag": "DIRECT",
"type": "direct"
},
{
"tag": "GLOBAL",
"type": "selector",
"outbounds": [
"PROXY",
"DIRECT"
]
},
{
"type": "vmess",
"tag": "4",
"server": "",
"server_port": 185,
"uuid": "",
"security": "auto",
"alter_id": 0
},
{
"type": "shadowsocks",
"tag": "1",
"server": "",
"server_port": 185,
"method": "aes-256-gcm",
"password": "",
"network": "udp"
},
{
"type": "trojan",
"tag": "3",
"server": "",
"server_port": 443,
"password": "",
"network": "tcp",
"tls": {
"enabled": true,
"server_name": ""
}
},
{
"type": "hysteria2",
"tag": "",
"server": "",
"server_ports": [
"50000:65535"
],
"hop_interval": "30s",
"up_mbps": 50,
"down_mbps": 150,
"obfs": {
"type": "salamander",
"password": ""
},
"password": "",
"tls": {
"enabled": true,
"server_name": ""
}
},
{
"tag": "vless",
"type": "vless",
"server": "",
"server_port": 8443,
"uuid": "",
"flow": "xtls-rprx-vision",
"tls": {
"enabled": true,
"server_name": "www.microsoft.com",
"utls": {
"enabled": true,
"fingerprint": "chrome"
},
"reality": {
"enabled": true,
"public_key": "",
"short_id": ""
}
}
},
{
"type": "naive",
"tag": "naive",
"server": "",
"server_port": 2053,
"username": "techrunch",
"password": "",
"insecure_concurrency": 0,
"tls": {
"enabled": true,
"server_name": ""
}
}
],
"route": {
"default_domain_resolver": {
"server": "dns_direct"
},
"rules": [
{
"action": "sniff"
},
{
"protocol": "dns",
"action": "hijack-dns"
},
{
"protocol": "quic",
"action": "reject"
},
{
"rule_set": "awavenue",
"action": "reject"
},
{
"clash_mode": "Direct",
"outbound": "DIRECT"
},
{
"clash_mode": "Global",
"outbound": "GLOBAL"
},
{
"rule_set": [
"telegramip"
],
"outbound": "PROXY"
},
{
"process_name": [
"WeChatAppEx.exe",
"Weixin.exe",
"Zoom.exe",
"aomhost64.exe",
"CptHost.exe"
],
"outbound": "DIRECT"
},
{
"domain_suffix": [
"telegram.org",
"dl.google.com"
],
"outbound": "PROXY"
},
{
"rule_set": [
"ai"
],
"outbound": "AI"
},
{
"rule_set": [
"microsoft-cn"
],
"outbound": "DIRECT"
},
{
"rule_set": [
"google-cn"
],
"outbound": "DIRECT"
},
{
"rule_set": [
"youtube"
],
"outbound": "media"
},
{
"domain_keyword": [
"www.google"
],
"outbound": "google"
},
{
"rule_set": [
"proxy"
],
"outbound": "PROXY"
},
{
"rule_set": [
"cn"
],
"outbound": "DIRECT"
},
{
"rule_set": [
"privateip"
],
"outbound": "DIRECT"
},
{
"action": "resolve",
"strategy": "prefer_ipv4"
},
{
"rule_set": [
"cnip"
],
"outbound": "DIRECT"
}
],
"rule_set": [
{
"tag": "awavenue",
"type": "remote",
"format": "binary",
"url": "https://github.com/sjnhnp/ruleset_geodata/releases/download/sing-box-ruleset/awavenue.srs",
"download_detour": "PROXY",
"update_interval": "1d"
},
{
"tag": "microsoft-cn",
"type": "remote",
"format": "binary",
"url": "https://github.com/DustinWin/ruleset_geodata/releases/download/sing-box-ruleset/microsoft-cn.srs"
},
{
"tag": "google-cn",
"type": "remote",
"format": "binary",
"url": "https://github.com/DustinWin/ruleset_geodata/releases/download/sing-box-ruleset/google-cn.srs"
},
{
"tag": "ai",
"type": "remote",
"format": "binary",
"url": "https://github.com/DustinWin/ruleset_geodata/releases/download/sing-box-ruleset/ai.srs"
},
{
"tag": "proxy",
"type": "remote",
"format": "binary",
"url": "https://github.com/DustinWin/ruleset_geodata/releases/download/sing-box-ruleset/proxy.srs"
},
{
"tag": "cn",
"type": "remote",
"format": "binary",
"url": "https://github.com/DustinWin/ruleset_geodata/releases/download/sing-box-ruleset/cn.srs"
},
{
"tag": "privateip",
"type": "remote",
"format": "binary",
"url": "https://github.com/DustinWin/ruleset_geodata/releases/download/sing-box-ruleset/privateip.srs"
},
{
"tag": "telegramip",
"type": "remote",
"format": "binary",
"url": "https://github.com/DustinWin/ruleset_geodata/releases/download/sing-box-ruleset/telegramip.srs"
},
{
"tag": "youtube",
"type": "remote",
"format": "binary",
"url": "https://github.com/DustinWin/ruleset_geodata/releases/download/sing-box-ruleset/youtube.srs"
},
{
"tag": "cnip",
"type": "remote",
"format": "binary",
"url": "https://github.com/DustinWin/ruleset_geodata/releases/download/sing-box-ruleset/cnip.srs"
}
],
"final": "PROXY",
"auto_detect_interface": true
},
"experimental": {
"clash_api": {
"external_controller": "127.0.0.1:9090",
"external_ui": "ui",
"external_ui_download_url": "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip",
"secret": "1234567809"
},
"cache_file": {
"enabled": true,
"store_fakeip": true
}
}
}
Android配置
{
"log": {
"disabled": false,
"level": "info",
"timestamp": true
},
"dns": {
"servers": [
{
"tag": "dns_direct",
"type": "quic",
"server": "223.5.5.5"
},
{
"tag": "dns_fakeip",
"type": "fakeip",
"inet4_range": "198.18.0.1/16"
}
],
"rules": [
{
"rule_set": "awavenue",
"action": "predefined",
"rcode": "NXDOMAIN"
},
{
"domain_suffix": "copilot.microsoft.com",
"server": "dns_fakeip"
},
{
"rule_set": "cn",
"query_type": "A",
"server": "dns_direct"
},
{
"query_type": "A",
"server": "dns_fakeip"
}
],
"final": "dns_direct",
"strategy": "prefer_ipv4",
"independent_cache": true,
"reverse_mapping": true
},
"inbounds": [
{
"tag": "tun-in",
"type": "tun",
"interface_name": "sing-box",
"address": [
"172.18.0.1/30"
],
"auto_route": true,
"strict_route": true,
"stack": "system"
},
{
"type": "mixed",
"tag": "mixed-in",
"listen": "127.0.0.1",
"listen_port": 7890
}
],
"outbounds": [
{
"tag": "PROXY",
"type": "selector",
"outbounds": [
"4"
]
},
{
"tag": "AI",
"type": "selector",
"outbounds": [
"4"
]
},
{
"tag": "media",
"type": "selector",
"outbounds": [
"hy_eyao"
]
},
{
"tag": "google",
"type": "selector",
"outbounds": [
"5"
]
},
{
"tag": "DIRECT",
"type": "direct"
},
{
"tag": "GLOBAL",
"type": "selector",
"outbounds": [
"PROXY",
"DIRECT"
]
},
{
"type": "vmess",
"tag": "4",
"server": "",
"server_port": 185,
"uuid": "",
"security": "auto",
"alter_id": 0
},
{
"type": "shadowsocks",
"tag": "1",
"server": "",
"server_port": 185,
"method": "aes-256-gcm",
"password": "",
"network": "udp"
},
{
"type": "trojan",
"tag": "3",
"server": "",
"server_port": 443,
"password": "",
"network": "tcp",
"tls": {
"enabled": true,
"server_name": ""
}
},
{
"type": "hysteria2",
"tag": "",
"server": "",
"server_ports": [
"50000:65535"
],
"hop_interval": "30s",
"up_mbps": 50,
"down_mbps": 150,
"obfs": {
"type": "salamander",
"password": ""
},
"password": "",
"tls": {
"enabled": true,
"server_name": ""
}
},
{
"tag": "vless",
"type": "vless",
"server": "",
"server_port": 8443,
"uuid": "",
"flow": "xtls-rprx-vision",
"tls": {
"enabled": true,
"server_name": "www.microsoft.com",
"utls": {
"enabled": true,
"fingerprint": "chrome"
},
"reality": {
"enabled": true,
"public_key": "",
"short_id": ""
}
}
},
{
"type": "naive",
"tag": "naive",
"server": "",
"server_port": 2053,
"username": "",
"password": "",
"insecure_concurrency": 0,
"tls": {
"enabled": true,
"server_name": ""
}
}
],
"route": {
"default_domain_resolver": {
"server": "dns_direct"
},
"rules": [
{
"action": "sniff"
},
{
"protocol": "dns",
"action": "hijack-dns"
},
{
"protocol": "quic",
"action": "reject"
},
{
"rule_set": "awavenue",
"action": "reject"
},
{
"clash_mode": "Direct",
"outbound": "DIRECT"
},
{
"clash_mode": "Global",
"outbound": "GLOBAL"
},
{
"rule_set": [
"telegramip"
],
"outbound": "PROXY"
},
{
"domain_suffix": [
"telegram.org",
"github.com",
"dl.google.com"
],
"outbound": "PROXY"
},
{
"rule_set": [
"ai"
],
"outbound": "AI"
},
{
"rule_set": [
"microsoft-cn"
],
"outbound": "DIRECT"
},
{
"rule_set": [
"google-cn"
],
"outbound": "DIRECT"
},
{
"rule_set": [
"youtube"
],
"outbound": "media"
},
{
"domain_keyword": [
"www.google"
],
"outbound": "google"
},
{
"rule_set": [
"proxy"
],
"outbound": "PROXY"
},
{
"rule_set": [
"cn"
],
"outbound": "DIRECT"
},
{
"rule_set": [
"privateip"
],
"outbound": "DIRECT"
},
{
"action": "resolve",
"strategy": "prefer_ipv4"
},
{
"rule_set": [
"cnip"
],
"outbound": "DIRECT"
}
],
"rule_set": [
{
"tag": "awavenue",
"type": "remote",
"format": "binary",
"url": "https://github.com/sjnhnp/ruleset_geodata/releases/download/sing-box-ruleset/awavenue.srs",
"download_detour": "PROXY",
"update_interval": "1d"
},
{
"tag": "microsoft-cn",
"type": "remote",
"format": "binary",
"url": "https://github.com/DustinWin/ruleset_geodata/releases/download/sing-box-ruleset/microsoft-cn.srs"
},
{
"tag": "google-cn",
"type": "remote",
"format": "binary",
"url": "https://github.com/DustinWin/ruleset_geodata/releases/download/sing-box-ruleset/google-cn.srs"
},
{
"tag": "ai",
"type": "remote",
"format": "binary",
"url": "https://github.com/DustinWin/ruleset_geodata/releases/download/sing-box-ruleset/ai.srs"
},
{
"tag": "proxy",
"type": "remote",
"format": "binary",
"url": "https://github.com/DustinWin/ruleset_geodata/releases/download/sing-box-ruleset/proxy.srs"
},
{
"tag": "cn",
"type": "remote",
"format": "binary",
"url": "https://github.com/DustinWin/ruleset_geodata/releases/download/sing-box-ruleset/cn.srs"
},
{
"tag": "privateip",
"type": "remote",
"format": "binary",
"url": "https://github.com/DustinWin/ruleset_geodata/releases/download/sing-box-ruleset/privateip.srs"
},
{
"tag": "telegramip",
"type": "remote",
"format": "binary",
"url": "https://github.com/DustinWin/ruleset_geodata/releases/download/sing-box-ruleset/telegramip.srs"
},
{
"tag": "youtube",
"type": "remote",
"format": "binary",
"url": "https://github.com/DustinWin/ruleset_geodata/releases/download/sing-box-ruleset/youtube.srs"
},
{
"tag": "cnip",
"type": "remote",
"format": "binary",
"url": "https://github.com/DustinWin/ruleset_geodata/releases/download/sing-box-ruleset/cnip.srs"
}
],
"final": "PROXY",
"auto_detect_interface": true
},
"experimental": {
"clash_api": {
"external_controller": "127.0.0.1:9090",
"external_ui": "ui",
"external_ui_download_url": "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip",
"secret": "1234567809"
},
"cache_file": {
"enabled": true,
"store_fakeip": true
}
}
}
評論