From b267a7b33da1a160e0cc5b9a77f3acda13c91829 Mon Sep 17 00:00:00 2001 From: zgqq Date: Tue, 24 Feb 2026 09:48:03 +0000 Subject: [PATCH] Update phone_singbox_v2.json --- phone_singbox_v2.json | 143 ++++++++++++++++++++++++++++-------------- 1 file changed, 95 insertions(+), 48 deletions(-) diff --git a/phone_singbox_v2.json b/phone_singbox_v2.json index b07ae76..d1b3929 100644 --- a/phone_singbox_v2.json +++ b/phone_singbox_v2.json @@ -7,35 +7,36 @@ "servers": [ { "tag": "local", - "address": "https://223.5.5.5/dns-query", + "type": "https", + "server": "223.5.5.5", "detour": "DIRECT" }, { "tag": "local2", - "address": "https://1.12.12.12/dns-query", + "type": "https", + "server": "1.12.12.12", "detour": "DIRECT" }, { "tag": "fallback", - "address": "tls://8.8.4.4", + "type": "tls", + "server": "8.8.4.4", "detour": "PROXY" }, { "tag": "fallback2", - "address": "tls://1.1.1.1", + "type": "tls", + "server": "1.1.1.1", "detour": "PROXY" }, { "tag": "fakeip", - "address": "fakeip" + "type": "fakeip", + "inet4_range": "198.18.0.0/16", + "inet6_range": "fc00::/18" } ], "rules": [ - { - "outbound": "any", - "server": "local", - "disable_cache": true - }, { "domain_suffix": [".lan", ".test", ".home.arpa"], "server": "local" @@ -48,20 +49,11 @@ "clash_mode": "Global", "server": "fallback" }, - { - "geosite": "cn", - "server": "local" - }, { "query_type": ["A", "AAAA"], "server": "fakeip" } ], - "fakeip": { - "enabled": true, - "inet4_range": "198.18.0.0/16", - "inet6_range": "fc00::/18" - }, "final": "fallback", "independent_cache": true }, @@ -70,9 +62,7 @@ "type": "mixed", "tag": "mixed-in", "listen": "127.0.0.1", - "listen_port": 7890, - "sniff": true, - "sniff_override_destination": true + "listen_port": 7890 } ], "outbounds": [ @@ -279,46 +269,36 @@ { "type": "direct", "tag": "DIRECT" - }, - { - "type": "block", - "tag": "REJECT" - }, - { - "type": "dns", - "tag": "dns-out" } ], "route": { - "geoip": { - "path": "geoip.db", - "download_url": "https://github.likezgq.top/https://github.com/SagerNet/sing-geoip/releases/latest/download/geoip.db", - "download_detour": "DIRECT" - }, - "geosite": { - "path": "geosite.db", - "download_url": "https://github.likezgq.top/https://github.com/SagerNet/sing-geosite/releases/latest/download/geosite.db", - "download_detour": "DIRECT" - }, "rules": [ + { + "inbound": "mixed-in", + "action": "sniff" + }, { "protocol": "dns", - "outbound": "dns-out" + "action": "hijack-dns" }, { "clash_mode": "Direct", + "action": "route", "outbound": "DIRECT" }, { "clash_mode": "Global", + "action": "route", "outbound": "PROXY" }, { "domain_suffix": ["anthropic.com"], + "action": "route", "outbound": "PG_AMERICA" }, { "domain": ["huggingface.co"], + "action": "route", "outbound": "SB_SELECTED" }, { @@ -331,34 +311,42 @@ "cdn.usefathom.com", "stripe.com" ], + "action": "route", "outbound": "GPT_SELECTED" }, { "domain_keyword": ["openai", "chatgpt", "claude", "sora", "grok", "aistudio"], + "action": "route", "outbound": "GPT_SELECTED" }, { "domain_keyword": ["gemini"], + "action": "route", "outbound": "GOOGLE_SELECTED" }, { "domain_keyword": ["youtube"], + "action": "route", "outbound": "YOUTUBE_SELECTED" }, { "domain": ["bard.google.com", "one.google.com"], + "action": "route", "outbound": "PG_AMERICA" }, { "domain_keyword": ["discord", "us-api", "paypal", "paypa1"], + "action": "route", "outbound": "PG_AMERICA" }, { "domain_keyword": ["reddit"], + "action": "route", "outbound": "REDDIT_SELECTED" }, { "domain_keyword": ["avgle", "porn", "xvideo", "xhamster"], + "action": "route", "outbound": "PG_JAPAN" }, { @@ -370,14 +358,17 @@ "nvidia.com", "tailscale.com" ], + "action": "route", "outbound": "PROXY" }, { "ip_cidr": ["149.154.160.0/20", "91.108.4.0/22"], + "action": "route", "outbound": "PROXY" }, { "domain": ["time.windows.com", "clash.razord.top", "yacd.haishan.me"], + "action": "route", "outbound": "DIRECT" }, { @@ -387,10 +378,12 @@ "kgithub.com", "lan" ], + "action": "route", "outbound": "DIRECT" }, { "domain_keyword": ["ra2web.com", "bun.sh.cn", "chronodivide.com"], + "action": "route", "outbound": "DIRECT" }, { @@ -402,6 +395,7 @@ "142.171.94.73/32", "100.64.0.0/10" ], + "action": "route", "outbound": "DIRECT" }, { @@ -413,41 +407,94 @@ "tailscaled", "Tailscale" ], + "action": "route", "outbound": "DIRECT" }, { "ip_is_private": true, + "action": "route", "outbound": "DIRECT" }, { - "geosite": "category-ads-all", - "outbound": "REJECT" + "rule_set": "geosite-category-ads-all", + "action": "reject" }, { - "geosite": "icloud", + "rule_set": "geosite-icloud", + "action": "route", "outbound": "DIRECT" }, { - "geosite": "apple", + "rule_set": "geosite-apple", + "action": "route", "outbound": "DIRECT" }, { - "geosite": "google", + "rule_set": "geosite-google", + "action": "route", "outbound": "DIRECT" }, { - "geosite": "cn", + "rule_set": "geosite-cn", + "action": "route", "outbound": "DIRECT" }, { - "geoip": "cn", + "rule_set": "geoip-cn", + "action": "route", "outbound": "DIRECT" }, { "port": 22, + "action": "route", "outbound": "SB_SELECTED" } ], + "rule_set": [ + { + "tag": "geosite-category-ads-all", + "type": "remote", + "format": "binary", + "url": "https://github.likezgq.top/https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-category-ads-all.srs", + "download_detour": "DIRECT" + }, + { + "tag": "geosite-icloud", + "type": "remote", + "format": "binary", + "url": "https://github.likezgq.top/https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-icloud.srs", + "download_detour": "DIRECT" + }, + { + "tag": "geosite-apple", + "type": "remote", + "format": "binary", + "url": "https://github.likezgq.top/https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-apple.srs", + "download_detour": "DIRECT" + }, + { + "tag": "geosite-google", + "type": "remote", + "format": "binary", + "url": "https://github.likezgq.top/https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-google.srs", + "download_detour": "DIRECT" + }, + { + "tag": "geosite-cn", + "type": "remote", + "format": "binary", + "url": "https://github.likezgq.top/https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-cn.srs", + "download_detour": "DIRECT" + }, + { + "tag": "geoip-cn", + "type": "remote", + "format": "binary", + "url": "https://github.likezgq.top/https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs", + "download_detour": "DIRECT" + } + ], + "default_domain_resolver": "local", "auto_detect_interface": true, "final": "GPT_SELECTED" },