# ErdongChan-LazyConf # Update:2024.10(精简配置,删除部分分流规则) # 后期本配置文件不再定期更新,各位有需要的话可以根据自己需求修改配置文件 # ------------------ # YouTube:www.youtube.com/@erdongchan # Telegram:t.me/erdongchan # EDC导航站:https://erdon.cc/ # EDCstore:https://store.erdongchan.cn/ # ------------------ # 下载配置后,需要自行添加机场订阅链接(详见[Proxy Group]部分) # 此处推荐使用Sub-Store订阅链接,多机场用户可以将多个机场订阅整合为一个Sub-Store订阅 # Surge MAC: # 显示主窗口 - 策略 - 右键编辑"PROXY"策略组 - 选择"可选策略组"下一步 - 更换“同时包含外部策略”对话框中的链接为你自己的Sub-Store订阅链接或机场订阅链接; # Surge iOS # 首页 - “出站模式”模块下选择“代理服务器” - 选择“PROXY”策略组 - 下拉到底部“外部代理列表” - 更换其中的链接为你自己的Sub-Store订阅链接或机场订阅链接; # ErdongChan-LazyConf # Update:2024.10(精简配置,删除部分分流规则) # 后期本配置文件不再定期更新,各位有需要的话可以根据自己需求修改配置文件 # ------------------ # YouTube:www.youtube.com/@erdongchan # Telegram:t.me/erdongchan # EDC导航站:https://erdon.cc/ # EDCstore:https://store.erdongchan.cn/ # ------------------ [General] # 通用设置 # # ---延迟设置--- # > 网络访问延迟测速URL internet-test-url = http://cp.cloudflare.com/generate_204 # > 代理延迟测速URL proxy-test-url = http://cp.cloudflare.com/generate_204 # > 测试超时(秒) test-timeout = 3 # # ---GeoIP数据库--- # > 自定义GeoIP数据库 geoip-maxmind-url = https://raw.githubusercontent.com/JMVoid/ipip2mmdb/release/Country.mmdb # # ---WiFi助理--- # 在Wi-Fi网络不佳时尝试使用数据网络建立连接 # ture=开启,false=关闭 wifi-assist = false # # ---WiFi访问--- # > 允许WiFi访问 # >> iOS,若允许远程访问将false改为true allow-wifi-access = false wifi-access-http-port = 6152 wifi-access-socks5-port = 6153 # >> macOS,若允许远程访问将127.0.0.1改为0.0.0.0 http-listen = 0.0.0.0 socks5-listen = 0.0.0.0 # # ---远程控制器--- # > 允许Surge请求查看器或Surge CI进行管理控制 # @前内容为密码 external-controller-access = 123456@127.0.0.1:6170 # > HTTP API # 可以让另一个App或者设备通过HTTP API控制Surge功能 # @前内容为密码 http-api = 123456@127.0.0.1:6166 # > 远程控制器开关 http-api-tls = true http-api-web-dashboard = true # # ---兼容性设置--- # > IPv6 支持(默认关闭) ipv6 = ture # > 兼容模式(仅iOS) # compatibility-mode = 0 # > 排除简单主机名 exclude-simple-hostnames = true # > 跳过代理 skip-proxy = localhost, *.local, 10.0.0.0/8, 100.64.0.0/10, 127.0.0.1/32, 169.254.0.0/16, 172.16.0.0/12, 192.168.0.0/16,192.168.122.1/32, 193.168.0.1/32, 224.0.0.0/4, 240.0.0.0/4, 255.255.255.255/32, *.crashlytics.com, passenger.t3go.cn, captive.apple.com, seed-sequoia.siri.apple.com, sequoia.apple.com, injections.adguard.org, local.adguard.org # # ---DNS 服务器--- # 如无必要不建议使用DNS over HTTPS dns-server = 119.29.29.29, 223.5.5.5, 8.8.8.8, system # > 从/etc/hosts读取DNS记录 read-etc-hosts = true # # ---高级设置--- # > 日志级别 loglevel = notify # > 当遇到REJECT策略时返回错误页 show-error-page-for-reject = true # > Always Real IP Hosts # 当Surge VIF处理DNS问题时,要求Surge返回真实IP地址 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 # > TCP Force HTTP Hosts # 让Surge把TCP连接当作HTTP请求来处理 # Surge HTTP引擎将处理这些请求 # 所有的高级功能,如捕获、重写和脚本等都可以使用 force-http-engine-hosts = *.ott.cibntv.net # > UDP转发 # 如果没有代理服务器支持UDP转发 # 可修改为direct或注释本条 # 需注意同一目标主机名TCP请求与UDP请求的源地址不同所造成的隐私及安全风险 udp-policy-not-supported-behaviour = reject [Proxy Group] # 下载配置文件后请自行把https://sub.store/download/collection/MySub替换为你自己的机场订阅链接或Sub-Store订阅链接 PROXY = select, policy-path=https://sub.store/download/collection/MySub, update-interval=0 AutoHK = url-test, policy-path=https://sub.store/download/collection/MySub, update-interval=0, policy-regex-filter=(香港|港|hong|HK|HKG|🇭🇰), interval=600, timeout=3, hidden=true US = select, policy-path=https://sub.store/download/collection/MySub, update-interval=0, policy-regex-filter=(美|美国|美|波特兰|达拉斯|俄勒冈|凤凰城|费利蒙|硅谷|拉斯维加斯|洛杉矶|圣何塞|圣克拉拉|西雅图|芝加哥|🇺🇸|US) HK = select, policy-path=https://sub.store/download/collection/MySub, update-interval=0, policy-regex-filter=(香港|港|hong|HK|HKG|🇭🇰) TW = select, policy-path=https://sub.store/download/collection/MySub, update-interval=0, policy-regex-filter=(台|台湾|TW|Taiwan) JP = select, policy-path=https://sub.store/download/collection/MySub, update-interval=0, policy-regex-filter=(日本|东京|大阪|泉日|埼玉|沪日|深日|🇯🇵|JP|Japan) SG = select, policy-path=https://sub.store/download/collection/MySub, update-interval=0, policy-regex-filter=(狮城|新加坡|🇸🇬|SG|Singapore) OutSide = select, US, HK, TW, JP, SG, FINAL GlobalMedia = select, US, HK, TW, JP, SG, FINAL YouTube = select, US, HK, TW, JP, SG, FINAL Spotify = select, DIRECT, US, HK, TW, JP, SG, FINAL Bilibili = select, DIRECT, HK, TW, FINAL Telegram = select, US, HK, TW, JP, SG, FINAL OpenAI = select, US, HK, TW, JP, SG, FINAL Mainland = select, DIRECT, FINAL FINAL = select, PROXY, AutoHK, DIRECT Advertising = select, REJECT, PROXY, DIRECT # hidden=true [Rule] DOMAIN,bw.erdongchan.cn,HK # ---域名规则--- # > 耳东橙导航站 DOMAIN-SUFFIX,erdon.cc,FINAL # > 抖音本地分流 DOMAIN-SUFFIX,snssdk.com,DIRECT DOMAIN-SUFFIX,amemv.com,DIRECT # > 其它 DOMAIN-SUFFIX,local,DIRECT DOMAIN-SUFFIX,kuaishou.com,DIRECT # ---进程规则--- # > 只在macOS生效,iOS会自动忽略这个类型的规则 PROCESS-NAME,UUBooster,DIRECT # ---逻辑规则--- # > AND规则:当所含规则全部匹配时,会被触发 AND,((PROTOCOL,UDP), (DEST-PORT,443)),REJECT-NO-DROP # ---规则集---- # ---内置规则集--- # SYSTEM # > 包含了绝大多数来自macOS和iOS系统本身所发送的请求 RULE-SET,SYSTEM,DIRECT # ---远程规则集--- # > 去广告 # Advertising 广告 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Advertising/Advertising.list,Advertising DOMAIN-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Advertising/Advertising_Domain.list,Advertising # Privacy 隐私 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Privacy/Privacy_Domain.list,Advertising DOMAIN-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Privacy/Privacy_Domain.list,Advertising # Hijacking 运营商劫持或恶意网站 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Hijacking/Hijacking.list,Advertising # > 海外流媒体 # YouTube RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/YouTube/YouTube.list,YouTube # Spotify RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Spotify/Spotify.list,Spotify # > 海外流媒体总规则 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/GlobalMedia/GlobalMedia.list,GlobalMedia # > 国内媒体 # Bilibili RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/BiliBili/BiliBili.list,Bilibili # > 软件&服务 # Telegram RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Telegram/Telegram.list,Telegram # Mainland 国内访问 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/China/China.list,Mainland # Global 全球加速 RULE-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Global/Global.list,OutSide DOMAIN-SET,https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Surge/Global/Global_Domain.list,OutSide # ---IP地址规则--- # > GeoIP China GEOIP,CN,DIRECT # ---Final规则--- # > 必须写在所有其他类型的规则之后 # > 当某条请求不匹配以上任何一条规则,则与FINAL规则匹配 FINAL,FINAL,dns-failed [Host] # ---定义本地DNS记录--- # 该功能等同于 /etc/hosts,加上了泛解析和别名支持。 # > Firebase Cloud Messaging mtalk.google.com = 108.177.125.188 # > Google Dl dl.google.com = server:119.29.29.29 dl.l.google.com = server:119.29.29.29 update.googleapis.com = server:119.29.29.29 # > PlayStation *.dl.playstation.net = server:119.29.29.29 # > 淘宝 *.taobao.com = server:223.5.5.5 # > 天猫 *.tmall.com = server:223.5.5.5 # > 阿里云 *.alicdn.com = server:223.5.5.5 *.aliyun.com = server:223.5.5.5 # > 腾迅 *.tencent.com = server:119.29.29.29 # > 腾讯QQ *.qq.com = server:119.29.29.29 # > 微信 *.weixin.com = server:119.29.29.29 *.qpic.cn = server:119.29.29.29 # > 京东 *.jd.com = server:119.29.29.29 # > 哔哩哔喱 *.bilibili.com = server:119.29.29.29 hdslb.com = server:119.29.29.29 # > 网易 *.163.com = server:119.29.29.29 *.126.com = server:119.29.29.29 *.126.net = server:119.29.29.29 *.127.net = server:119.29.29.29 *.netease.com = server:119.29.29.29 # > 小米 *.mi.com = server:119.29.29.29 *.xiaomi.com = server:119.29.29.29 # 解锁了「模块」功能的用户可以使用 General.sgmodule 后可移除 [URL Rewrite] 及 [MITM] 的「hostname = www.google.cn,api.abema.io」部分 # 建议使用 General.sgmodule,其他 .sgmodule 按需加入 # 未解锁「模块」功能的用户不要删除以下内容,参照 # (https://github.com/DivineEngine/Profiles/tree/master/Surge)使用快捷指令更新相关内容。 [URL Rewrite] # 有两种重定向方式: 'header' 和 '302' # 建议用模块 [Panel] # macOS不生效 # > EDC_Surge-Panel # 显示运行时间及MitM等功能开关状态 # 点击刷新为重载配置 EDC_Surge-Panel = script-name=EDC_Surge-Panel,update-interval=1 [Script] # 显示运行时间及MitM等功能开关状态 EDC_Surge-Panel = type=generic,script-path=https://raw.githubusercontent.com/erdongchanyo/Rules/main/Surge/Panels/EDC_Surge-Panel.js,argument=icon=crown.fill&color=#f6c970 [MITM] skip-server-cert-verify = true