优化 "rule_set"改为单行代码
This commit is contained in:
@@ -0,0 +1,334 @@
|
||||
{
|
||||
"dns": {
|
||||
"servers": [
|
||||
{
|
||||
"tag": "remote",
|
||||
"type": "https",
|
||||
"server": "1.1.1.1",
|
||||
"server_port": 443,
|
||||
"detour": "🔵🔴🟡🟢 Google"
|
||||
},
|
||||
{
|
||||
"tag": "local",
|
||||
"type": "https",
|
||||
"server": "223.5.5.5",
|
||||
"server_port": 443
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"clash_mode": "Global",
|
||||
"server": "remote"
|
||||
},
|
||||
{
|
||||
"clash_mode": "Direct",
|
||||
"server": "local"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"geosite-cn"
|
||||
],
|
||||
"server": "local"
|
||||
}
|
||||
],
|
||||
"strategy": "ipv4_only"
|
||||
},
|
||||
"inbounds": [
|
||||
{
|
||||
"type": "tun",
|
||||
"tag": "tun-in",
|
||||
"auto_route": true,
|
||||
"endpoint_independent_nat": true,
|
||||
"address": [
|
||||
"172.19.0.1/30",
|
||||
"2001:0470:f9da:fdfa::1/64"
|
||||
],
|
||||
"mtu": 9000,
|
||||
"stack": "system",
|
||||
"strict_route": true
|
||||
},
|
||||
{
|
||||
"type": "socks",
|
||||
"tag": "socks-in",
|
||||
"listen": "127.0.0.1",
|
||||
"listen_port": 2333
|
||||
},
|
||||
{
|
||||
"type": "mixed",
|
||||
"tag": "mixed-in",
|
||||
"listen": "127.0.0.1",
|
||||
"listen_port": 2334
|
||||
}
|
||||
],
|
||||
"outbounds": [
|
||||
{
|
||||
"tag": "🔵🔴🟡🟢 Google",
|
||||
"type": "selector",
|
||||
"outbounds": [
|
||||
"美国01ARM🌏",
|
||||
"🇺🇲 711"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "🧠 AI",
|
||||
"type": "selector",
|
||||
"outbounds": [
|
||||
"美国09LEAD🌏",
|
||||
"🇺🇲 711"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "🚀 节点选择",
|
||||
"type": "selector",
|
||||
"outbounds": [
|
||||
"美国01ARM🌏",
|
||||
"🇺🇲 711"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "🍟 美国",
|
||||
"type": "selector",
|
||||
"outbounds": [
|
||||
"美国09LEAD🌏"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "📲 电报消息",
|
||||
"type": "selector",
|
||||
"outbounds": [
|
||||
"新加坡04ARM✈"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "🟢 whatsapp",
|
||||
"type": "selector",
|
||||
"outbounds": [
|
||||
"美国01ARM🌏",
|
||||
"🇺🇲 711"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "🎵🕺 tiktok",
|
||||
"type": "selector",
|
||||
"outbounds": [
|
||||
"美国01ARM🌏",
|
||||
"🇺🇲 711"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "✨ Social",
|
||||
"type": "selector",
|
||||
"outbounds": [
|
||||
"美国09LEAD🌏",
|
||||
"🇺🇲 711"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "🪟 microsoft",
|
||||
"type": "selector",
|
||||
"outbounds": [
|
||||
"美国01ARM🌏",
|
||||
"🇺🇲 711"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "🇺🇲 美国中转",
|
||||
"type": "selector",
|
||||
"outbounds": [
|
||||
"美国01ARM🌏"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "🇭🇰 香港📞",
|
||||
"type": "selector",
|
||||
"outbounds": [
|
||||
"香港01ALICE😉"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "🇬🇧 英国📞",
|
||||
"type": "selector",
|
||||
"outbounds": [
|
||||
"英国01VM6 🇬🇧"
|
||||
]
|
||||
},
|
||||
{
|
||||
"tag": "🇺🇲 美国📞",
|
||||
"type": "selector",
|
||||
"outbounds": [
|
||||
"美国01ARM🌏"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "socks",
|
||||
"tag": "🇺🇲 711",
|
||||
"server": "socks.ssr.ee",
|
||||
"server_port": 45721,
|
||||
"username": "VtAlM1mzrpwq",
|
||||
"password": "XUkLPuew7bPI",
|
||||
"detour": "🇺🇲 美国中转",
|
||||
"domain_resolver": "remote"
|
||||
},
|
||||
{
|
||||
"tag": "direct",
|
||||
"type": "direct"
|
||||
},
|
||||
{
|
||||
"tag": "♻️ 自动选择",
|
||||
"type": "urltest",
|
||||
"outbounds": []
|
||||
}
|
||||
],
|
||||
"route": {
|
||||
"auto_detect_interface": true,
|
||||
"default_domain_resolver": {
|
||||
"server": "local"
|
||||
},
|
||||
"rules": [
|
||||
{
|
||||
"inbound": [
|
||||
"tun-in",
|
||||
"socks-in",
|
||||
"mixed-in"
|
||||
],
|
||||
"action": "resolve",
|
||||
"strategy": "ipv4_only"
|
||||
},
|
||||
{
|
||||
"inbound": [
|
||||
"tun-in",
|
||||
"socks-in",
|
||||
"mixed-in"
|
||||
],
|
||||
"action": "sniff"
|
||||
},
|
||||
{
|
||||
"protocol": "dns",
|
||||
"action": "hijack-dns"
|
||||
},
|
||||
{
|
||||
"clash_mode": "Direct",
|
||||
"outbound": "direct"
|
||||
},
|
||||
{
|
||||
"clash_mode": "Global",
|
||||
"outbound": "🚀 节点选择"
|
||||
},
|
||||
{
|
||||
"ip_is_private": true,
|
||||
"outbound": "direct"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"geosite-cn",
|
||||
"geoip-cn",
|
||||
"salem@cn"
|
||||
],
|
||||
"outbound": "direct"
|
||||
},
|
||||
{
|
||||
"domain": [
|
||||
"v2.sswiwi.com"
|
||||
],
|
||||
"outbound": "🚀 节点选择"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"us"
|
||||
],
|
||||
"outbound": "🍟 美国"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"geoip_telegram",
|
||||
"geosite_telegram"
|
||||
],
|
||||
"ip_cidr": [
|
||||
"194.221.250.50/32"
|
||||
],
|
||||
"outbound": "📲 电报消息"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"category-ai-chat-!cn"
|
||||
],
|
||||
"outbound": "🧠 AI"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"whatsapp"
|
||||
],
|
||||
"outbound": "🟢 whatsapp"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"tiktok"
|
||||
],
|
||||
"outbound": "🎵🕺 tiktok"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"facebook",
|
||||
"facebook_ip",
|
||||
"x",
|
||||
"instagram"
|
||||
],
|
||||
"outbound": "✨ Social"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"microsoft"
|
||||
],
|
||||
"outbound": "🪟 microsoft"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"google",
|
||||
"google_ip",
|
||||
"geolocation-!cn"
|
||||
],
|
||||
"outbound": "🔵🔴🟡🟢 Google"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"Wifi_Call_HK"
|
||||
],
|
||||
"outbound": "🇭🇰 香港📞"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"Wifi_Call_UK"
|
||||
],
|
||||
"outbound": "🇬🇧 英国📞"
|
||||
},
|
||||
{
|
||||
"rule_set": [
|
||||
"Wifi_Call_US"
|
||||
],
|
||||
"outbound": "🇺🇲 美国📞"
|
||||
}
|
||||
],
|
||||
"rule_set": [
|
||||
{"tag":"geosite-cn","type":"remote","format":"binary","url":"https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/sing/geo/geosite/cn.srs","http_client":{"detour":"direct"}},
|
||||
{"tag":"geoip-cn","type":"remote","format":"binary","url":"https://raw.githubusercontent.com/lusalem/ruleset/refs/heads/main/rules/singbox/cnip.srs","http_client":{"detour":"direct"}},
|
||||
{"tag":"geoip_telegram","type":"remote","format":"binary","url":"https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/telegram.srs","http_client":{"detour":"direct"}},
|
||||
{"tag":"geosite_telegram","type":"remote","format":"binary","url":"https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/telegram.srs","http_client":{"detour":"direct"}},
|
||||
{"tag":"category-ai-chat-!cn","type":"remote","format":"binary","url":"https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/category-ai-chat-!cn.srs","http_client":{"detour":"direct"}},
|
||||
{"tag":"whatsapp","type":"remote","format":"binary","url":"https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/whatsapp.srs","http_client":{"detour":"direct"}},
|
||||
{"tag":"tiktok","type":"remote","format":"binary","url":"https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/tiktok.srs","http_client":{"detour":"direct"}},
|
||||
{"tag":"facebook","type":"remote","format":"binary","url":"https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/facebook.srs","http_client":{"detour":"direct"}},
|
||||
{"tag":"facebook_ip","type":"remote","format":"binary","url":"https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/facebook.srs","http_client":{"detour":"direct"}},
|
||||
{"tag":"x","type":"remote","format":"binary","url":"https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/x.srs","http_client":{"detour":"direct"}},
|
||||
{"tag":"instagram","type":"remote","format":"binary","url":"https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/instagram.srs","http_client":{"detour":"direct"}},
|
||||
{"tag":"microsoft","type":"remote","format":"binary","url":"https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/microsoft.srs","http_client":{"detour":"direct"}},
|
||||
{"tag":"google","type":"remote","format":"binary","url":"https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/google.srs","http_client":{"detour":"direct"}},
|
||||
{"tag":"google_ip","type":"remote","format":"binary","url":"https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/google.srs","http_client":{"detour":"direct"}},
|
||||
{"tag":"geolocation-!cn","type":"remote","format":"binary","url":"https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/geolocation-!cn.srs","http_client":{"detour":"direct"}},
|
||||
{"tag":"Wifi_Call_HK","type":"remote","format":"source","url":"https://raw.githubusercontent.com/lusalem/ruleset/refs/heads/main/rules/singbox/Wifi_Call_HK.json","http_client":{"detour":"direct"}},
|
||||
{"tag":"Wifi_Call_UK","type":"remote","format":"source","url":"https://raw.githubusercontent.com/lusalem/ruleset/refs/heads/main/rules/singbox/Wifi_Call_UK.json","http_client":{"detour":"direct"}},
|
||||
{"tag":"Wifi_Call_US","type":"remote","format":"source","url":"https://raw.githubusercontent.com/lusalem/ruleset/refs/heads/main/rules/singbox/Wifi_Call_US.json","http_client":{"detour":"direct"}},
|
||||
{"tag":"salem@cn","type":"remote","format":"source","url":"https://raw.githubusercontent.com/lusalem/ruleset/refs/heads/main/rules/singbox/salem@cn.json","http_client":{"detour":"direct"}},
|
||||
{"tag":"us","type":"remote","format":"source","url":"https://raw.githubusercontent.com/lusalem/ruleset/refs/heads/main/rules/singbox/us.json","http_client":{"detour":"direct"}}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user