# ErdongChan-LazyConf # Update:2024.10(精简配置,删除部分分流规则) # 后期本配置文件不再定期更新,各位有需要的话可以根据自己需求修改配置文件 # ------------------ # YouTube:www.youtube.com/@erdongchan # Telegram:t.me/erdongchan # EDC导航站:https://erdon.cc/ # EDCstore:https://store.erdongchan.cn/ # ------------------ # 导入配置后,添加机场订阅链接,之后更新订阅规则。 # 点击配置-证书管理-生成新的CA证书,之后进入「设置」>「通用」>「描述文件」, 安装Loon的证书,并在「设置」>「通用」>「关于本机」>「证书信任设置」开启对Loon证书的信任。 [General] ip-mode = ipv4-only # > 这些IP段、域名将不会转发到Loon,而是由系统处理 bypass-tun = 10.0.0.0/8,100.64.0.0/10,127.0.0.0/8,169.254.0.0/16,172.16.0.0/12,192.0.0.0/24,192.0.2.0/24,192.88.99.0/24,192.168.0.0/16,198.51.100.0/24,203.0.113.0/24,224.0.0.0/4,239.255.255.250/32,255.255.255.255/32 skip-proxy = 127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,localhost # DNS 服务器 dns-server = system,119.29.29.29,114.114.114.114,223.5.5.5 # DNS over HTTPS服务器,用,隔开多个服务器,system表示系统dns doh-server = https://dns.alidns.com/dns-query # IPv6 支持 ipv6 = false # Wi-Fi 相关设置 # > 是否开启局域网代理访问 allow-wifi-access = false # > 开启局域网访问后的http代理端口 wifi-access-http-port = 7222 # > 开启局域网访问后的socks5代理端口 wifi-access-socks5-port = 7221 # 测速所用的测试链接 proxy-test-url = http://cp.cloudflare.com/generate_204 # 检测网络可用性时的链接 internet-test-url = http://wifi.vivo.com.cn/generate_204 # 测速超时秒数 test-timeout = 5 # 一个节点连接失败几次后会进行节点切换 switch-node-after-failure-times = 2 # 订阅资源解析器链接 resource-parser = https://github.com/sub-store-org/Sub-Store/releases/latest/download/sub-store-parser.loon.min.js # 解决一些ip请求无法匹配规则的问题。real-ip指定的域名将不返回fake ip响应,直接将dns请求发往目标dns服务器 real-ip = *.apple.com,*.icloud.com,msftconnecttest.com,msftncsi.com,*.msftconnecttest.com,*.msftncsi.com,*.srv.nintendo.net,*.stun.playstation.net,xbox.*.microsoft.com,*.xboxlive.com,*.battlenet.com.cn,*.battlenet.com,*.blzstatic.cn,*.battle.net # 指定流量使用哪个网络接口进行转发,目前包含三种模式 # > Auto: 系统自动分配 # > Cellular: 在WiFi和蜂窝数据都开启的情况下指定使用蜂窝网络 # > Performace: 在WiFi和蜂窝数据都开启的情况下使用最优的网络接口 # > Balance: 在WiFi和蜂窝数据都开启的情况下,均衡使用网络接口 interface-mode = auto # 禁用udp协议的一些端口 disable-udp-ports = 443,80 # 禁用stun是否禁用stun协议的udp数据,禁用后可以有效解决webrtc的ip泄露 disable-stun = true # GeoIP 数据库 geoip-url = https://github.com/Masaiki/GeoIP2-CN/raw/release/Country.mmdb # 3.2.0+ build(702) # 当UDP的流量规则匹配到相关节点,但该节点不支持UDP或未未开启UDP转发时使用的策略,可选DIRECT、REJECT udp-fallback-mode = DIRECT [Host] [Proxy] [Remote Proxy] # 远程节点订阅 # >Sub-Store订阅,多机场用户可以通过Sub-Store管理所有机场订阅 # 下载配置文件后请自行把https://sub.store/download/collection/MySub替换为你自己的机场订阅链接或Sub-Store订阅链接 MyProxy = https://sub.store/download/collection/MySub,parser-enabled = true,udp=false,fast-open=false,vmess-aead=true,skip-cert-verify=default,enabled=true,flexible-sni=true,img-url=flame.fill [Remote Filter] # 远程节点订阅正则筛选 美国 = NameRegex, FilterKey = "(?i)(美|美国|美|波特兰|达拉斯|俄勒冈|凤凰城|费利蒙|硅谷|拉斯维加斯|洛杉矶|圣何塞|圣克拉拉|西雅图|芝加哥|🇺🇸|US)" 香港 = NameRegex, FilterKey = "(?i)(香港|港|hong|HK|HKG|🇭🇰)" 日本 = NameRegex, FilterKey = "(?i)(日本|东京|大阪|泉日|埼玉|沪日|深日|🇯🇵|JP|Japan)" 台湾 = NameRegex, FilterKey = "(?i)(台|台湾|TW|Taiwan)" 新加坡 = NameRegex, FilterKey = "(?i)(狮城|新加坡|🇸🇬|SG|Singapore)" [Proxy Group] ## 策略组 ## 将分流规则传递过来的网络请求进行分发 # 可供手动选择的所有节点 Proxy = select,MyProxy,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Proxy.png # 自动选择最优节点-HK Auto-HK = url-test,香港,url = http://www.gstatic.com/generate_204,interval = 600,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Auto.png # 服务器按地区分组策略 # > 美国 US = select,美国,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Country/US.png # > 香港 HK = select,香港,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Country/HK02.png # > 日本 JP = select,日本,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Country/JP.png # > 台湾 TW = select,台湾,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Country/TW.png # > 新加坡 SG = select,新加坡,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Country/SG.png # OutSide策略 OutSide = select,US,,HK,JP,TW,SG,FINAL,DIRECT,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Outside.png # GlobalMedia策略 GlobalMedia = select,US,,HK,JP,TW,SG,FINAL,DIRECT,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/GMedia.png # 国外媒体细分策略 # > YouTube策略 YouTube = select,US,HK,JP,TW,SG,FINAL,DIRECT,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Youtube.png # > Spotify策略 Spotify = select,US,HK,JP,TW,SG,FINAL,DIRECT,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Spotify.png # 国内媒体细分策略 # > BiliBili策略 Bilibili = select,HK,TW,DIRECT,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Bilibili.png # 软件&服务策略 # > Telegram策略 Telegram = select,US,HK,JP,TW,SG,FINAL,DIRECT,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Telegram.png # > OpenAI OpenAI = select,US,HK,JP,TW,SG,FINAL,DIRECT,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/OpenAI.png # Mainland策略-国内访问 Mainland = select,US,HK,JP,TW,SG,FINAL,DIRECT,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Mainland.png # Advertising策略-去广告 Advertising = select,DIRECT,REJECT,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/AdBlock.png # FINAL策略:如果以上的策略均未被匹配到,则听从此策略组的规定 FINAL = select,Auto-HK,Proxy,DIRECT,url = http://cp.cloudflare.com/generate_204,img-url = https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/Final01.png [Remote Rule] ## 远程分流规则订阅 ## 将网络请求进行分流,网络请求的走向(是否能成功访问)由匹配到的策略组决定 # OutSide规则 https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/OutSide/OutSide.list, policy=OutSide, tag=OutSide规则, enabled=true # GlobalMedia规则 https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/GlobalMedia/GlobalMedia.list, policy=GlobalMedia, tag=GlobalMedia规则, enabled=true # YouTube规则 https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/YouTube/YouTube.list, policy=YouTube, tag=YouTube规则, enabled=true # Spotify规则 https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Spotify/Spotify.list, policy=Spotify, tag=Spotify规则, enabled=true # BiliBili规则 https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/BiliBili/BiliBili.list, policy=BiliBili, tag=BiliBili规则, enabled=true # Telegram规则 https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Telegram/Telegram.list, policy=Telegram, tag=Telegram规则, enabled=true # OpenAI规则 https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/OpenAI/OpenAI.list, policy=YouTube, tag=OpenAI规则, enabled=true # Mainland规则 https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/China/China.list, policy=Mainland, tag=Mainland规则, enabled=true # Advertising规则 https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/Advertising/Advertising.list, policy=Advertising, tag=Advertising规则, enabled=true [Rule] # 本地分流规则:相同规则下本地规则优先生效 DOMAIN-SUFFIX,local,DIRECT GEOIP,CN,DIRECT FINAL,FINAL [Remote Rewrite] [Rewrite] [Remote Script] [Script] generic script-path=https://raw.githubusercontent.com/Loon0x00/LoonScript/main/MediaCheck/check.js, timeout=300, tag=流媒体-解锁查询, img-url=https://raw.githubusercontent.com/erdongchanyo/icon/main/Policy-Filter/GMedia.png [Plugin] https://raw.githubusercontent.com/erdongchanyo/Rules/refs/heads/main/Loon/EDCstore.plugin, enabled=true https://github.com/VirgilClyne/iRingo/raw/main/plugin/Siri.plugin, enabled=true https://github.com/VirgilClyne/iRingo/raw/main/plugin/Location.plugin, enabled=true https://gitlab.com/lodepuly/vpn_tool/-/raw/master/Tool/Loon/Plugin/Bilibili_remove_ads.plugin, tag=哔哩去广告, enabled=true https://gitlab.com/lodepuly/vpn_tool/-/raw/master/Tool/Loon/Plugin/Zhihu_remove_ads.plugin, tag=知乎去广告, enabled=true https://gitlab.com/lodepuly/vpn_tool/-/raw/master/Tool/Loon/Plugin/BlockAdvertisers.plugin, enabled=true https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rewrite/Loon/Advertising/Advertising.plugin, policy=REJECT, tag=Advertising (blackmatrix7, enabled=true https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rewrite/Loon/Redirect/Redirect.plugin, tag=Redirect (blackmatrix7, enabled=true https://gitlab.com/lodepuly/vpn_tool/-/raw/master/Tool/Loon/Plugin/Node_detection_tool.plugin, enabled=true https://raw.githubusercontent.com/chavyleung/scripts/master/box/rewrite/boxjs.rewrite.loon.plugin, policy=Auto-HK, enabled=true https://raw.githubusercontent.com/Peng-YM/Sub-Store/master/config/Loon.plugin, policy=Auto-HK, tag=Sub-Store, enabled=true [MITM] hostname = ca-p12 = ca-passphrase = enable = false skip-server-cert-verify = true