[General] # 日志等级 warning, notify, info, verbose (默认: notify) loglevel = notify # 网络诊断 # > Internet 测试 URL internet-test-url = http://www.aliyun.com # > 代理测速 URL proxy-test-url = http://www.google.com/generate_204 # > 测速超时 (s) test-timeout = 3 # IPv6 支持 ipv6 = false # Wi-Fi 访问 # > 允许 Wi-Fi 网络下其它设备访问 allow-wifi-access = true # > HTTP 代理服务端口(默认 "6152") # wifi-access-http-port = 6152 # > SOCKS5 代理服务端口(默认 "6153") # wifi-access-socks5-port = 6153 # 外部控制器 external-controller-access = admin@127.0.0.1:6170 # 兼容性 # > 兼容模式(默认 "禁用") # compatibility-mode = 0 # > 跳过某个域名或者IP段 skip-proxy = 192.168.0.0/16, 193.168.0.0/24, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, 17.0.0.0/8, 127.0.0.1, localhost, *.local bypass-system = true # 实验性支持 # > TLS Provider: default, secure-transport, network-framework, openssl (默认: default) tls-provider = default # > 启动 Network.framework(默认不启用) network-framework = false # 其他(请先阅读手册,除非你明确知道其含义,否则不要修改任何设置) # > Show Reject Error Page show-error-page-for-reject = true # > Hijack DNS # hijack-dns = # > TCP Force HTTP Hosts # force-http-engine-hosts = example.com:80 # > VIF Excluded Routes tun-excluded-routes = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 # > VIF Included Routes tun-included-routes = 192.168.1.12/32 # DNS 服务器 dns-server = 119.29.29.29,223.5.5.5,system [Replica] # [抓取流量] => 过滤器 # > 隐藏 Apple 请求 hide-apple-request = true # > 隐藏 Crashlytics 请求 hide-crashlytics-request = true # > 隐藏 UDP 会话 hide-udp = false # > 关键词过滤器 keyword-filter-type = (null) keyword-filter = icloud,ocsp,logs,analytic,ads,imap,adthor,applovin,appnext,talk,dropbox,spys [Proxy] 𝐑𝐞𝐣𝐞𝐜𝐭-𝐓𝐢𝐧𝐲𝐠𝐢𝐟 = reject-tinygif 𝐑𝐞𝐣𝐞𝐜𝐭 = reject 𝐃𝐢𝐫𝐞𝐜𝐭 = direct [Proxy Group] 𝐏𝐫𝐨𝐱𝐲 = select, 𝐀𝐮𝐭𝐨, 𝐒𝐞𝐥𝐞𝐜𝐭, 𝐅𝐚𝐥𝐥𝐛𝐚𝐜𝐤 𝐀𝐮𝐭𝐨 = url-test, url=http://www.gstatic.com/generate_204, policy-path=https://sub.store/download/collection/Agnehc, update-interval=0, timeout=0, interval=600, tolerance=50 𝐒𝐞𝐥𝐞𝐜𝐭 = select, policy-path=https://sub.store/download/collection/Agnehc, update-interval=0 𝐑𝐨𝐮𝐧𝐝𝐑𝐨𝐛𝐢𝐧 = load-balance, persistent=1, policy-path=负载均衡, update-interval=0 𝐅𝐚𝐥𝐥𝐛𝐚𝐜𝐤 = fallback, policy-path=故障切换, url=http://www.gstatic.com/generate_204, interval=600, tolerance=50 AsianMedia = select, 🇭🇰HK, 🇨🇳TW Netease music = select, copyright, 𝐃𝐢𝐫𝐞𝐜𝐭 Telegram = select, 𝐏𝐫𝐨𝐱𝐲, 𝐃𝐢𝐫𝐞𝐜𝐭 Twitter = select, 𝐏𝐫𝐨𝐱𝐲, DIRECT YouTube = select, 𝐏𝐫𝐨𝐱𝐲, 𝐃𝐢𝐫𝐞𝐜𝐭 Speedtest = select, 𝐏𝐫𝐨𝐱𝐲, 𝐃𝐢𝐫𝐞𝐜𝐭 Apple = select, 𝐃𝐢𝐫𝐞𝐜𝐭, 𝐏𝐫𝐨𝐱𝐲 𝐅𝐢𝐧𝐚𝐥 = select, 𝐏𝐫𝐨𝐱𝐲, 𝐃𝐢𝐫𝐞𝐜𝐭 𝐀𝐝 𝐁𝐥𝐨𝐜𝐤 = select, 𝐑𝐞𝐣𝐞𝐜𝐭, 𝐑𝐞𝐣𝐞𝐜𝐭-𝐓𝐢𝐧𝐲𝐠𝐢𝐟, 𝐃𝐢𝐫𝐞𝐜𝐭 copyright = select, policy-path=https://sub.store/download/NetEaseCloudMusic, update-interval=0 🇭🇰HK = url-test, url=http://www.gstatic.com/generate_204, policy-path=https://sub.store/download/collection/Agnehc, update-interval=0, policy-regex-filter=HK|香港, timeout=0, interval=0, tolerance=0 🇨🇳TW = url-test, url=http://www.gstatic.com/generate_204, policy-path=https://sub.store/download/collection/Agnehc, update-interval=0, policy-regex-filter=TW|台湾, timeout=0, interval=0, tolerance=0 🇸🇬SG = url-test, url=http://www.gstatic.com/generate_204, policy-path=https://sub.store/download/collection/Agnehc, update-interval=0, policy-regex-filter=SG|新加坡, timeout=0, interval=0, tolerance=0 🇯🇵JP = url-test, url=http://www.gstatic.com/generate_204, policy-path=https://sub.store/download/collection/Agnehc, update-interval=0, policy-regex-filter=JP|日本, timeout=0, interval=0, tolerance=0 🇰🇷KR = url-test, url=http://www.gstatic.com/generate_204, policy-path=https://sub.store/download/collection/Agnehc, update-interval=0, policy-regex-filter=KR|韩国, timeout=0, interval=0, tolerance=0 🇺🇸US = url-test, url=http://www.gstatic.com/generate_204, policy-path=https://sub.store/download/collection/Agnehc, update-interval=0, policy-regex-filter=US|美国, timeout=0, interval=0, tolerance=0 🏳️‍🌈IPLC = select, policy-path=https://sub.store/download/collection/Agnehc, update-interval=0, policy-regex-filter=IPLC|iplc 🏳️‍🌈IEPL = select, policy-path=https://sub.store/download/collection/Agnehc, update-interval=0, policy-regex-filter=IEPL|iepl LeiSu = select, policy-path=https://sub.store/download/LeiSu, update-interval=0 樱云 = select, policy-path=https://sub.store/download/yinyun [Rule] # CUSTOM RULE # Rulesets (by eHpo1 + ConnersHua) # > Reject RULE-SET,https://raw.githubusercontent.com/eHpo1/Rules/master/Surge4/Ruleset/Liby.list,𝐀𝐝 𝐁𝐥𝐨𝐜𝐤 RULE-SET,https://raw.githubusercontent.com/eHpo1/Rules/master/Surge4/Ruleset/Tide.list,𝐀𝐝 𝐁𝐥𝐨𝐜𝐤 # BlockOTA RULE-SET,https://raw.githubusercontent.com/nzw9314/Surge/master/Ruleset/BlockOTA.list,𝐀𝐝 𝐁𝐥𝐨𝐜𝐤 # Antirevoke RULE-SET,https://raw.githubusercontent.com/nzw9314/Surge/master/Ruleset/Antirevoke.list,𝐀𝐝 𝐁𝐥𝐨𝐜𝐤 # > Youtube RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/YouTube/YouTube.list,YouTube # Twitter RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Twitter/Twitter.list,Twitter # Telegram RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Telegram/Telegram.list,Telegram # > Outlook、Gmail RULE-SET,https://raw.githubusercontent.com/nzw9314/Surge/master/Ruleset/Mail.list,𝐏𝐫𝐨𝐱𝐲 # > GoogleDrive RULE-SET,https://raw.githubusercontent.com/nzw9314/Surge/master/Ruleset/GoogleDrive.list,𝐏𝐫𝐨𝐱𝐲 # Speedtest RULE-SET,https://raw.githubusercontent.com/eHpo1/Rules/master/Surge4/Ruleset/Sub/Speedtest.list,Speedtest # > Apple RULE-SET,https://raw.githubusercontent.com/eHpo1/Rules/master/Surge4/Ruleset/Apple_API.list,Apple RULE-SET,https://raw.githubusercontent.com/eHpo1/Rules/master/Surge4/Ruleset/Apple_CDN.list,𝐃𝐢𝐫𝐞𝐜𝐭 # TestFlight # RULE-SET,https://raw.githubusercontent.com/DivineEngine/Profiles/master/Surge/Ruleset/Extra/Apple/TestFlight.list,𝐏𝐫𝐨𝐱𝐲 # > Special RULE-SET,https://raw.githubusercontent.com/nzw9314/Surge/master/Ruleset/Special.list,𝐃𝐢𝐫𝐞𝐜𝐭 # PxxBuy # AND,((USER-AGENT,iTunes stored*), (DOMAIN-KEYWORD,-buy.itunes.apple.com)),🧿 Pxx-Buy # FakeiAP # RULE-SET,https://raw.githubusercontent.com/tinycarrot/tinycarrot/master/Surge/FakeiAP-Filter-Surge.txt,♨️ IPA-Premium # >Unlock NeteaseMusic RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/NetEaseMusic/NetEaseMusic.list,Netease music # > GlobalMedia RULE-SET,https://raw.githubusercontent.com/eHpo1/Rules/master/Surge4/Ruleset/GlobalMedia.list,𝐏𝐫𝐨𝐱𝐲 # > Global RULE-SET,https://raw.githubusercontent.com/eHpo1/Rules/master/Surge4/Ruleset/Global.list,𝐏𝐫𝐨𝐱𝐲 # > AsianMedia RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/AsianMedia/AsianMedia.list,AsianMedia # > Domestic RULE-SET,https://raw.githubusercontent.com/eHpo1/Rules/master/Surge4/Ruleset/Domestic.list,𝐃𝐢𝐫𝐞𝐜𝐭 # Local Area Network RULE-SET,LAN,𝐃𝐢𝐫𝐞𝐜𝐭 # GeoIP China GEOIP,CN,𝐃𝐢𝐫𝐞𝐜𝐭 FINAL,𝐅𝐢𝐧𝐚𝐥,dns-failed [Host] # CUSTOM DNS iosapps.itunes.apple.com = script:dnspod *.126.com = server:119.29.29.29 *.126.net = server:119.29.29.29 *.127.net = server:119.29.29.29 *.163.com = server:119.29.29.29 *.alicdn.com = server:223.5.5.5 *.aliyun.com = server:223.5.5.5 *.baidu.com = server:syslib *.bdstatic.com = server:syslib *.bilibili.com = server:119.29.29.29 *.jd.com = server:119.28.28.28 *.mi.com = server:119.29.29.29 *.netease.com = server:119.29.29.29 *.pcbeta.com = 120.52.19.113 *.qpic.cn = server:119.28.28.28 *.qq.com = server:119.28.28.28 *.taobao.com = server:223.6.6.6 *.tencent.com = server:119.28.28.28 *.tmall.com = server:223.6.6.6 *.weixin.com = server:119.28.28.28 *.xiaomi.com = server:119.29.29.29 cdn.pcbeta.attachment.inimc.com = 120.52.19.113 cdn.pcbeta.css.inimc.com = 120.52.19.113 cdn.pcbeta.static.inimc.com = 120.52.19.113 hdslb.com = server:119.29.29.29 [URL Rewrite] # CUSTOM URL # > Redirect Google Service ^https?:\/\/(www.)?(g|google)\.cn https://www.google.com 302 [MITM] skip-server-cert-verify = true hostname = %APPEND% ca-passphrase = UNCLEWANG ca-p12 = MIIJ4QIBAz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qGSIb3DQEJFTEWBBQKwhbGZp3ZUB4s0EFGdDEjsOdG6TAxMCEwCQYFKw4DAhoFAAQURUuNj4DsRdHOU+VdF1f1LMcVK9sECJeYQZ+sQWRAAgIIAA== [Script] # > Speed up download app ios dnspod = script-path=https://raw.githubusercontent.com/langkhach270389/Scripting/master/Surge/dnspod.js,script-update-interval=0,type=dns