刚开始用surge mac端,系统代理+增强模式常开的场景,mac主要用于前端开发,会经常访问一些非大陆服务。
刚看了一篇关于fake ip原理的文章,主要在纠结no-resolve这个参数对本地dns请求次数的影响,于是有了如下的疑问和改动。
自己改了下别人给的rule,如下:
[Rule]
# 更多规则集:https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Surge
# 动态区域 - 有list
RULE-SET,https://mirror.ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/YouTube/YouTube.list,YouTube,no-resolve
RULE-SET,https://mirror.ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/BiliBili/BiliBili.list,BiliBili,no-resolve
RULE-SET,https://mirror.ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Steam/Steam.list,Steam,no-resolve
# 固定区域 - 有list
RULE-SET,https://mirror.ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/DMM/DMM.list,🇯🇵 日本,no-resolve
RULE-SET,https://mirror.ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/OpenAI/OpenAI.list,🇺🇸 美国,no-resolve
RULE-SET,https://mirror.ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Claude/Claude.list,🇺🇸 美国,no-resolve
# 固定区域 - 无list
DOMAIN-SUFFIX,square-enix.com,🇯🇵 日本
DOMAIN-SUFFIX,square-enix-games.com,🇯🇵 日本
DOMAIN-SUFFIX,finalfantasy.com,🇯🇵 日本
DOMAIN-SUFFIX,finalfantasyxiv.com,🇯🇵 日本
# 大陆白名单
DOMAIN-SET,https://mirror.ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/ChinaMax/ChinaMax_Domain.list,DIRECT,no-resolve
RULE-SET,https://mirror.ghproxy.com/https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/ChinaMax/ChinaMax.list,DIRECT,no-resolve
# FINAL
RULE-SET,LAN,DIRECT,no-resolve
FINAL,Proxy,dns-failed
这样配置的话应该不会有多余的本地dns请求?chinamax应该能覆盖绝大多数大陆服务吧?
改之前rule-set全用的resolve版本,RULE-SET,FINAL,proxy前还有个RULE-SET,geoip cn,direct
但发现不加no-resolve版本不管请求什么域名都会先进行一次dns request,但是也就一次。
改了no-resolve版之后应该就没办法用geoip cn了。
想请教下surge老手们平时都是怎么配置rule使用的,给个参考呗。