[General] # Troy根据神机自定义DIY配置 # 更新日期:2023.9.5 # 版本:3.5.5 # 不保证完全可以使用,因为懒得更新( # 通用设置 # > 增强版 Wi-Fi 助理 # (在 Wi-Fi 网络不佳时尝试使用数据网络建立连接,请仅当使用不限量的数据流量时开启) wifi-assist = false # > Internet 测试 URL internet-test-url = http://wifi.vivo.com.cn/generate_204 # > 代理测速 URL proxy-test-url = http://cp.cloudflare.com/generate_204 # > 测试超时(秒) test-timeout = 5 # > 自定义 GeoIP 数据库 geoip-maxmind-url = https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country.mmdb # > IPv6 支持(默认关闭) ipv6 = false # > 允许 Wi-Fi 访问 (仅 iOS,若允许远程访问将「false」改为「true」) allow-wifi-access = false wifi-access-http-port = 6152 wifi-access-socks5-port = 6153 # > 允许 Wi-Fi 访问 (仅 macOS,若允许远程访问将「127.0.0.1」改为「0.0.0.0」) http-listen = 127.0.0.1:6152 socks5-listen = 127.0.0.1:6153 # > 兼容模式 (仅 iOS) # compatibility-mode = 0 # > 跳过代理 skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local, passenger.t3go.cn # > 排除简单主机名 exclude-simple-hostnames = true # > Network framwork network-framework = false # > DNS 服务器 (如无必要不建议使用 DNS over HTTPS) dns-server = 119.29.29.29, 223.5.5.5, 223.6.6.6 doh-server = https://dns.alidns.com/dns-query # > 从 /etc/hosts 读取 DNS 记录 read-etc-hosts = true # 高级设置 # > 日志级别 loglevel = notify # > 当遇到 REJECT 策略时返回错误页 show-error-page-for-reject = true # > Always Real IP Hosts always-real-ip = *.msftconnecttest.com, *.msftncsi.com, *.srv.nintendo.net, *.stun.playstation.net, xbox.*.microsoft.com, *.xboxlive.com, *.logon.battlenet.com.cn, *.logon.battle.net, stun.l.google.com # > VIF Excluded Routes tun-excluded-routes = 239.255.255.250/32 # 如果没有代理服务器支持 UDP 转发,可修改为「 direct 」或注释下条,但需注意同一目标主机名 TCP 请求与 UDP 请求的源地址不同所造成的隐私及安全风险。 udp-policy-not-supported-behaviour = reject [Replica] # 0 为关闭,1 为开启 # 隐藏 Apple 请求 hide-apple-request = 0 # 隐藏崩溃追踪器请求 hide-crash-reporter-request = 1 # 隐藏 UDP 会话 hide-udp = 0 # 关键词过滤器 # none(关闭关键词过滤器) / whitelist(blacklist(仅记录包含关键字的请求)) / blacklist(仅记录不包含关键字的请求) / pattern(匹配通配符的请求) # >> keyword-filter-type = none # >关键词 # keyword-filter = (null) [Proxy] Direct = direct [Proxy Group] Global Media = select, Hong Kong, Japan, Taiwan, Singapore, United States, no-alert=0, hidden=0, include-all-proxies=0 Asian Media = select, DIRECT, Hong Kong, Taiwan, Japan, United States, no-alert=0, hidden=0, include-all-proxies=0, update-interval=0 Proxy = select, no-alert=0, hidden=0, include-all-proxies=1, policy-path=https://sub.store/download/%E8%8F%9C%E8%8F%9C, update-interval=0 Hong Kong = select, no-alert=0, hidden=0, include-all-proxies=0, include-other-group=Proxy, policy-regex-filter=(?i)(港|HK|Hong) Taiwan = select, policy-regex-filter=(?i)(台|TW|Tai), no-alert=0, hidden=0, include-all-proxies=0, include-other-group=Proxy Singapore = select, policy-regex-filter=(?i)(新加坡|坡|狮城|SG|Singapore), no-alert=0, hidden=0, include-all-proxies=0, include-other-group=Proxy Japan = select, policy-regex-filter=(?i)(日本|川日|东京|大阪|泉日|埼玉|沪日|深日|JP|Japan), no-alert=0, hidden=0, include-all-proxies=0, include-other-group=Proxy United States = select, policy-regex-filter=(?i)(美|波特兰|达拉斯|俄勒冈|凤凰城|费利蒙|硅谷|拉斯维加斯|洛杉矶|圣何塞|圣克拉拉|西雅图|芝加哥|US|United States), no-alert=0, hidden=0, include-all-proxies=0, include-other-group=Proxy [Rule] AND,((PROTOCOL,UDP), (DEST-PORT,443)),REJECT-NO-DROP RULE-SET,https://raw.githubusercontent.com/Trovoy/Troy-s-ruleset/main/Direct.list,DIRECT RULE-SET,https://raw.githubusercontent.com/Trovoy/Troy-s-ruleset/main/AsianMedia.list,Asian Media RULE-SET,https://raw.githubusercontent.com/Trovoy/Troy-s-ruleset/main/GlobalMedia.list,Global Media DOMAIN-SET,https://raw.githubusercontent.com/Trovoy/Troy-s-ruleset/main/GlobalDomain.list,Proxy RULE-SET,https://raw.githubusercontent.com/Trovoy/Troy-s-ruleset/main/Global.list,Proxy RULE-SET,https://raw.githubusercontent.com/Trovoy/Troy-s-ruleset/main/ChinaASN.list,DIRECT RULE-SET,LAN,DIRECT FINAL,Proxy,dns-failed [Host] [URL Rewrite] [SSID Setting] # > SSID暂停,适用于你家里有网关接管或者其他方式在家不需要用到Surge # > 默认不启用 # > ROUTER:你的网管地址 suspend=true [MITM] skip-server-cert-verify = true tcp-connection = true h2 = true hostname = www.google.cn, www.firefox.com.cn, api.abema.io [Script] # > SurgePro带有重载功能 status-info = type=generic,script-path=https://raw.githubusercontent.com/Trovoy/Troy/main/Surge%20for%20myself/JS/SurgePRO.js # > 机场流量信息 Sub_info = type=generic,timeout=10,script-path=https://raw.githubusercontent.com/futurkk/Potato/main/Surge%20for%20myself/JS/sub_info.js,script-update-interval=0,argument=url=转码后的机场订阅链接=𝗧𝗲𝘅𝗼𝗻&icon=fork.knife&color=#0047AB&reset_day=20 # > 流媒体解锁面板 Stream_all = type=generic,timeout=15,script-path=https://raw.githubusercontent.com/Trovoy/Troy/main/Surge%20for%20myself/JS/YTB-NF-D%2B.js [Panel] # > Surge Pro SurgePro = script-name=status-info,title=Surge,content=请刷新,update-interval=60 # > Airport Sub_info1 = script-name=Sub_info,update-interval=43200 # > Streaming Stream_all = script-name=Stream_all,title=流媒体解锁检测,content=请刷新,update-interval=-1