[General] # > tutu 的 Surge 配置 欢迎使用! # > 配置下载𝐔𝐑𝐋: https://raw.githubusercontent.com/bunizao/TutuBetterRules/tutu/Surge/Surge.conf # > 使用教程查看:https://github.com/bunizao/TutuBetterRules/blob/tutu/Surge/README.md # > 花样字体生成: https://qwerty.dev/fancy-font-generator/ # > 推荐订阅转换: https://sub.tuu.cat # > 机场转义𝐄𝐍𝐂𝐎𝐃𝐄: https://www.urlencoder.org # > 更新通知telegram频道:https://t.me/hututu00 # > 𝐔𝐩𝐝𝐚𝐭𝐞: 2025.04.26 20:23 # > 𝐕 𝟐.𝟒.𝟐 # General http-listen = 0.0.0.0:8888 socks5-listen = 0.0.0.0:8889 external-controller-access = tutu@0.0.0.0:6170 # Lateracy internet-test-url = http://wifi.vivo.com.cn/generate_204 proxy-test-url = http://cp.cloudflare.com/generate_204 test-timeout = 3 ipv6 = true ipv6-vif = auto show-error-page-for-reject = true # Advanced loglevel = notify exclude-simple-hostnames = true use-default-policy-if-wifi-not-primary = false force-http-engine-hosts = boxjs.com, boxjs.net # DNS hijack-dns = *:53 dns-server = 119.29.29.29, 223.5.5.5, system read-etc-hosts = true doh-skip-cert-verification = true encrypted-dns-server = https://dns.alidns.com/dns-query encrypted-dns-follow-outbound-mode = true # Others allow-wifi-access = false # hide-vpn-icon = true // 如果需要隐藏 VPN 图标请启用,可能会带来问题。 allow-hotspot-access = true # network-framework = true http-api = tutu@0.0.0.0:2500 http-api-web-dashboard = true all-hybrid = false wifi-access-http-port = 1314 udp-priority = true always-raw-tcp-hosts = www.google.com, 91.108.56.*, 91.108.4.*, 91.108.8.*, 91.108.16.*, 91.108.12.*, 149.154.16*, 149.154.17*, 91.108.20.*, 185.76.151.*, 91.105.192.*, 5.28.19* [Proxy Group] # > 这是一个final规则,没有命中的连接会走以下的策略组。 🏳️‍⚧️ = select, 🐼 Mainland, 𝐀𝐮𝐭𝐨𝐦𝐚𝐭𝐢𝐜 # > 代理链接 ℕ𝕖𝕩𝕚𝕥𝕒𝕝𝕝𝕪 = select, policy-path= // 换成你的订阅链接 𝔽𝕝𝕠𝕨𝕖𝕣ℂ𝕝𝕠𝕦𝕕 = select, policy-path= // 换成你的订阅链接 # > 以下是策略组,需先配置好 sub-store 使用 𝐀𝐥𝐥𝐒𝐞𝐫𝐯𝐞𝐫 = select, policy-path=https://sub.store/download/collection/Surge, update-interval=0, no-alert=0, hidden=0 𝐏𝐫𝐨𝐱𝐲 = select, 𝐀𝐮𝐭𝐨𝐦𝐚𝐭𝐢𝐜, 𝐅𝐚𝐥𝐥𝐛𝐚𝐜𝐤, 🇭🇰Hong Kong, 🇨🇳Taiwan, 🇸🇬Singapore, 🇯🇵Japan, 🇺🇸United States, no-alert=0, hidden=1, include-all-proxies=0 𝐀𝐮𝐭𝐨𝐦𝐚𝐭𝐢𝐜 = url-test, policy-path=https://sub.store/download/collection/Surge, url=http://www.gstatic.com/generate_204, interval=600, tolerance=50 𝐅𝐚𝐥𝐥𝐛𝐚𝐜𝐤 = fallback, policy-path=https://sub.store/download/collection/Surge, url=http://www.gstatic.com/generate_204, interval=600, tolerance=50 🇭🇰Hong Kong = url-test, policy-path=https://sub.store/download/collection/Surge, policy-regex-filter=港|🇭🇰|香港|HK|Hong, interval=600, tolerance=50,update-interval=43200, no-alert=0, hidden=0, include-all-proxies=0 🇨🇳Taiwan = url-test, policy-path=https://sub.store/download/collection/Surge, policy-regex-filter=台|🇨🇳|台湾|TW|Tai, interval=600, tolerance=50,update-interval=43200, no-alert=0, hidden=0, include-all-proxies=0 🇯🇵Japan = url-test, policy-path=https://sub.store/download/collection/Surge, policy-regex-filter=日|🇯🇵|日本|JP|Japan, interval=600, tolerance=50,update-interval=43200, no-alert=0, hidden=0, include-all-proxies=0 🇸🇬Singapore = url-test, policy-path=https://sub.store/download/collection/Surge, policy-regex-filter=坡|🇸🇬|新加坡|狮城|SG|Singapore, interval=600, tolerance=50,update-interval=43200, no-alert=0, hidden=0, include-all-proxies=0 🇺🇸United States = url-test, policy-path=https://sub.store/download/collection/Surge, policy-regex-filter=美|🇺🇸|美国|US|States|American, interval=600, tolerance=50,update-interval=43200, no-alert=0, hidden=0, include-all-proxies=0 🐼 Mainland = select, DIRECT, hidden=1  𝑨𝒑𝒑𝒍𝒆 = select, 🐼 Mainland, 🇭🇰Hong Kong, 🇨🇳Taiwan, 🇸🇬Singapore, 🇯🇵Japan, 🇺🇸United States 📺 𝒃𝒊𝒍𝒊𝒃𝒊𝒍𝒊 = select, 🐼 Mainland, 🇭🇰Hong Kong, 🇨🇳Taiwan 🎥 𝑫𝒊𝒔𝒏𝒆𝒚+ = select, 🇭🇰Hong Kong, 🇸🇬Singapore 🎥 𝑵𝒆𝒕𝒇𝒍𝒊𝒙 = select, 🇭🇰Hong Kong, 🇨🇳Taiwan, 🇸🇬Singapore, 🇯🇵Japan, 🇺🇸United States 💵 𝑷𝒂𝒚𝑷𝒂𝒍 = select, 🐼 Mainland, 🇭🇰Hong Kong, 🇺🇸United States ✉️ 𝑻𝒆𝒍𝒆𝒈𝒓𝒂𝒎 = select, 𝐀𝐮𝐭𝐨𝐦𝐚𝐭𝐢𝐜, 🇸🇬Singapore, 🇺🇸United States 🎬 𝑻𝒊𝒌𝑻𝒐𝒌 = select, 🇨🇳Taiwan, 🇸🇬Singapore, 🇯🇵Japan, 🇺🇸United States 👾 𝐎𝐩𝐞𝐧𝐀𝐈 = select, 🇨🇳Taiwan, 🇸🇬Singapore, 🇯🇵Japan, 🇺🇸United States 🕊️ 𝑻𝒘𝒊𝒕𝒕𝒆𝒓 = select, 𝐀𝐮𝐭𝐨𝐦𝐚𝐭𝐢𝐜, 🇭🇰Hong Kong, 🇨🇳Taiwan, 🇸🇬Singapore, 🇯🇵Japan, 🇺🇸United States 📹 𝒀𝒐𝒖𝑻𝒖𝒃𝒆 = select, 𝐀𝐮𝐭𝐨𝐦𝐚𝐭𝐢𝐜, 🇭🇰Hong Kong, 🇨🇳Taiwan, 🇸🇬Singapore, 🇯🇵Japan, 🇺🇸United States 🧣 𝑾𝒆𝒊𝒃𝒐 = select, 🐼 Mainland, 🇭🇰Hong Kong, 🇨🇳Taiwan, 🇸🇬Singapore, 🇯🇵Japan, 🇺🇸United States, 𝐀𝐥𝐥𝐒𝐞𝐫𝐯𝐞𝐫 [Rule] # ban UDP on Youtube # AND,((PROTOCOL,UDP), (DOMAIN-SUFFIX,googlevideo.com)),REJECT-NO-DROP # > Direct(Google|Proxy|Download|Spotify) RULE-SET,https://raw.githubusercontent.com/bunizao/TutuBetterRules/tutu/RuleList/DOMAlN/Direct.list,DIRECT # > Mail RULE-SET,https://raw.githubusercontent.com/bunizao/TutuBetterRules/tutu/RuleList/DOMAlN/Mail.list,𝐏𝐫𝐨𝐱𝐲 # ------Rulesets (规则集)------ # > Whitelist RULE-SET,https://raw.githubusercontent.com/bunizao/TutuBetterRules/tutu/RuleList/DOMAlN/Whitelist_Proxy.list,𝐏𝐫𝐨𝐱𝐲 # > Anti-AD DOMAIN-SET,https://ruleset.skk.moe/List/domainset/reject_extra.conf,REJECT RULE-SET,https://ruleset.skk.moe/List/non_ip/reject.conf,REJECT,extended-matching RULE-SET,https://ruleset.skk.moe/List/non_ip/reject-no-drop.conf,REJECT-NO-DROP,extended-matching RULE-SET,https://ruleset.skk.moe/List/non_ip/reject-drop.conf,REJECT-DROP,extended-matching # > Stream Media RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/BiliBili/BiliBili.list,📺 𝒃𝒊𝒍𝒊𝒃𝒊𝒍𝒊 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Disney/Disney.list,🎥 𝑫𝒊𝒔𝒏𝒆𝒚+ RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Netflix/Netflix.list,🎥 𝑵𝒆𝒕𝒇𝒍𝒊𝒙 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/AbemaTV/AbemaTV.list,🇯🇵Japan //AbemaTV RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Peacock/Peacock.list,🇺🇸United States //Peacock RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/HBOUSA/HBOUSA.list,🇺🇸United States // HBO NOW && HBO MAX # > PayPal: 注意,与金融有关的境外服务建议固定访问ip. RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/PayPal/PayPal.list,💵 𝑷𝒂𝒚𝑷𝒂𝒍 # >Telegram RULE-SET,https://raw.githubusercontent.com/bunizao/TutuBetterRules/tutu/RuleList/DOMAlN/Telegram.list,✉️ 𝑻𝒆𝒍𝒆𝒈𝒓𝒂𝒎 # > TikTok RULE-SET,https://raw.githubusercontent.com/Semporia/TikTok-Unlock/master/Surge/TikTok.list,🎬 𝑻𝒊𝒌𝑻𝒐𝒌 # > ChatGPT RULE-SET,https://raw.githubusercontent.com/bunizao/TutuBetterRules/tutu/RuleList/DOMAlN/OpenAI.list,👾 𝐎𝐩𝐞𝐧𝐀𝐈 # > Twitter RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Twitter/Twitter.list,🕊️ 𝑻𝒘𝒊𝒕𝒕𝒆𝒓 # > Youtube & Google Search RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/YouTube/YouTube.list,📹 𝒀𝒐𝒖𝑻𝒖𝒃𝒆 RULE-SET,https://raw.githubusercontent.com/bunizao/TutuBetterRules/tutu/RuleList/DOMAlN/Google_Search.list,🇺🇸United States # > Apple RULE-SET,https://raw.githubusercontent.com/bunizao/TutuBetterRules/tutu/RuleList/DOMAlN/Apple_Direct.list,DIRECT RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/AppleNews/AppleNews.list,🇺🇸United States RULE-SET,https://raw.githubusercontent.com/bunizao/TutuBetterRules/tutu/RuleList/DOMAlN/Apple_Proxy.list,𝐏𝐫𝐨𝐱𝐲 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Apple/Apple.list, 𝑨𝒑𝒑𝒍𝒆 # > Weibo RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Weibo/Weibo.list,🧣 𝑾𝒆𝒊𝒃𝒐 # > WeChat 根据你自己的Wechat DC选择策略 #RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Extra/WeChat.list,🇸🇬Singapore #RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Extra/WeChat.list,🇺🇸United States # > Global RULE-SET,https://raw.githubusercontent.com/bunizao/TutuBetterRules/tutu/RuleList/DOMAlN/Global.list,𝐏𝐫𝐨𝐱𝐲 # > China RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/China/China.list,DIRECT # > Local Area Network 局域网 IP-CIDR,192.168.0.0/16,DIRECT IP-CIDR,10.0.0.0/8,DIRECT IP-CIDR,172.16.0.0/12,DIRECT IP-CIDR,127.0.0.0/8,DIRECT IP-CIDR,100.64.0.0/10,DIRECT IP-CIDR,224.0.0.0/4,DIRECT RULE-SET,LAN,DIRECT # > ASN China RULE-SET,https://raw.githubusercontent.com/VirgilClyne/GetSomeFries/main/ruleset/ASN.China.list,DIRECT # > GeoIP China(若启用,则需禁用 ASN) # GEOIP,CN,DIRECT # > DNS 查询失败走 Final 规则 FINAL,🏳️‍⚧️,dns-failed [Host] # > 该段定义本地 DNS 记录 # > 该功能等同于 /etc/hosts,加上了泛解析和别名支持。 [URL Rewrite] # > 建议引用模块: # - https://raw.githubusercontent.com/bunizao/TutuBetterRules/tutu/Surge/module/All-in-One.sgmodule 最强力的去广告模块 # - https://raw.githubusercontent.com/bunizao/TutuBetterRules/tutu/Surge/module/All-in-One-2.x.sgmodule 最强力的去广告模块 进阶版 # - https://raw.githubusercontent.com/bunizao/TutuBetterRules/tutu/Surge/module/SurgePro.sgmodule Surge 增强 # 详情请见 https://t.me/hututu00/470 [Script] Sub-Store Core=type=http-request,pattern=^https?:\/\/sub\.store\/((download)|api\/(preview|sync|(utils\/node-info))),script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store-1.min.js,requires-body=true,timeout=120 Sub-Store Simple=type=http-request,pattern=^https?:\/\/sub\.store,script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store-0.min.js,requires-body=true Sub-Store Sync=type=cron,cronexp=0 0 * * *,wake-system=1,timeout=120,script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/cron-sync-artifacts.min.jsSub-Store Sync=type=cron,cronexp=0 0 * * *,wake-system=1,timeout=120,script-path=https://github.com/sub-store-org/Sub-Store/releases/latest/download/cron-sync-artifacts.min.js Rewrite: BoxJs = type=http-request,pattern=https?:\/\/boxjs\.(com|net),script-path=https://raw.githubusercontent.com/chavyleung/scripts/master/box/chavy.boxjs.js, requires-body=true, timeout=120 [MITM] hostname = sub.store, boxjs.com, boxjs.net skip-server-cert-verify = true tcp-connection = true h2 = true