V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
o0OoO0o
V2EX  ›  问与答

请教 Clash for Windows 自定义规则 自动测速的问题

  •  
  •   o0OoO0o · 2020-10-04 13:01:15 +08:00 · 15412 次点击
    这是一个创建于 1516 天前的主题,其中的信息可能已经有所发展或是发生改变。

    正在用的完整规则如下。两个 proxy-providers:

    一个是机场原本的订阅 shutiaooriginal,只加在手动选择 select 分组里,避免自动测速导致封号或被加入专门的测速组

    另一个是从 shutiaooriginal 里面手动筛选后的仅 6 个节点的订阅 shutiao,加在 fallback 分组里,平时主要用这个

    预想的是只有第二个里的 6 个节点会自动测延迟,其它节点不会批量测,但实际使用,第一个订阅里面的也会批量测延迟(会显示 ms 数)

    这是怎么回事啊?哪里没配置正确吗?

    mixed-port: 4411
    allow-lan: false
    bind-address: '*'
    mode: rule
    log-level: info
    ipv6: false
    external-controller: 127.0.0.1:9090
    hosts:
    dns:
      enable: false
      listen: 0.0.0.0:53
      default-nameserver:
        - 114.114.114.114
        - 8.8.8.8
      enhanced-mode: redir-host # or fake-ip
      fake-ip-range: 198.18.0.1/16 # Fake IP addresses pool CIDR
      nameserver:
        - 114.114.114.114 # default value
        - 8.8.8.8 # default value
        - tls://dns.rubyfish.cn:853 # DNS over TLS
        - https://1.1.1.1/dns-query # DNS over HTTPS
      fallback-filter:
        geoip: true
        ipcidr:
    
    proxies:
    proxy-groups:
      - name: 🚀 节点选择
        type: select
        use:
          - shutiao
          - shutiaoorginal
        proxies:
          - ♻️ 自动选择
          - 🔯 故障转移
          - 🔮 负载均衡
          - DIRECT
      - name: ♻️ 自动选择
        type: url-test
        url: http://www.gstatic.com/generate_204
        interval: 300
        use:
          - shutiao
      - name: 🔯 故障转移
        type: fallback
        url: http://www.gstatic.com/generate_204
        interval: 180
        use:
          - shutiao
      - name: 🔮 负载均衡
        type: load-balance
        url: http://www.gstatic.com/generate_204
        interval: 180
        use:
          - shutiao
      - name: 🎯 全球直连
        type: select
        proxies:
          - DIRECT
          - 🚀 节点选择
          - ♻️ 自动选择
      - name: 🛑 全球拦截
        type: select
        proxies:
          - REJECT
          - DIRECT
      - name: 🐟 漏网之鱼
        type: select
        use:
          - shutiao
        proxies:
          - 🚀 节点选择
          - 🎯 全球直连
          - ♻️ 自动选择
          - 🔯 故障转移
          - 🔮 负载均衡
    
    proxy-providers:
    
      shutiao:
        type: file
        interval: 36000
        path: ./shutiao.yaml
        health-check:
          enable: true
          interval: 600
          url: http://www.gstatic.com/generate_204
        
      shutiaoorginal:
        type: http
        interval: 36000
        url: https://losadhwscd4ds8332dasd.xyz/link/q0iQYHXXke4KuzD6?clash=1
        path: ./shutiaoorginal.yaml
        health-check:
          enable: true
          interval: 600
          url: http://www.gstatic.com/generate_204
      
    rule-providers:
    
      Unbreak:
        type: http
        behavior: classical
        path: ./RuleSet/Unbreak.yaml
        url: https://raw.githubusercontent.com/DivineEngine/Profiles/master/Clash/RuleSet/Unbreak.yaml
        interval: 86400
    
      Streaming:
        type: http
        behavior: classical
        path: ./RuleSet/StreamingMedia/Streaming.yaml
        url: https://raw.githubusercontent.com/DivineEngine/Profiles/master/Clash/RuleSet/StreamingMedia/Streaming.yaml
        interval: 86400
    
      Global:
        type: http
        behavior: classical
        path: ./RuleSet/Global.yaml
        url: https://raw.githubusercontent.com/DivineEngine/Profiles/master/Clash/RuleSet/Global.yaml
        interval: 86400
    
      China:
        type: http
        behavior: classical
        path: ./RuleSet/China.yaml
        url: https://raw.githubusercontent.com/DivineEngine/Profiles/master/Clash/RuleSet/China.yaml
        interval: 86400
    
      ChinaIP:
        type: http
        behavior: ipcidr
        path: ./RuleSet/Extra/ChinaIP.yaml
        url: https://raw.githubusercontent.com/DivineEngine/Profiles/master/Clash/RuleSet/Extra/ChinaIP.yaml
        interval: 86400
    
    rules:  
      - RULE-SET,Unbreak,🎯 全球直连
      - RULE-SET,Streaming,🚀 节点选择
      - RULE-SET,Global,🚀 节点选择
      - RULE-SET,China,🎯 全球直连
    
      - IP-CIDR,192.168.0.0/16,🎯 全球直连
      - IP-CIDR,10.0.0.0/8,🎯 全球直连
      - IP-CIDR,172.16.0.0/12,🎯 全球直连
      - IP-CIDR,127.0.0.0/8,🎯 全球直连
      - IP-CIDR,100.64.0.0/10,🎯 全球直连
      - IP-CIDR,224.0.0.0/4,🎯 全球直连
    
      - RULE-SET,ChinaIP,🎯 全球直连
    
      - MATCH,🐟 漏网之鱼
    
    
    3 条回复    2020-10-04 13:30:18 +08:00
    neteroster
        1
    neteroster  
       2020-10-04 13:17:58 +08:00   ❤️ 1
    ```
    shutiaoorginal:
    type: http
    interval: 36000
    url: https://losadhwscd4ds8332dasd.xyz/link/q0iQYHXXke4KuzD6?clash=1
    path: ./shutiaoorginal.yaml
    health-check:
    enable: true
    interval: 600
    url: http://www.gstatic.com/generate_204
    ```

    改为

    ```
    shutiaoorginal:
    type: http
    interval: 36000
    url: https://losadhwscd4ds8332dasd.xyz/link/q0iQYHXXke4KuzD6?clash=1
    path: ./shutiaoorginal.yaml
    health-check:
    enable: false
    ```
    neteroster
        2
    neteroster  
       2020-10-04 13:19:05 +08:00   ❤️ 1
    @neteroster #1 缩进全没了,能看懂就行。
    o0OoO0o
        3
    o0OoO0o  
    OP
       2020-10-04 13:30:18 +08:00
    @neteroster #1 哦,原来是一直在做 health-check,我傻了,谢谢老哥吖
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3114 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 13:46 · PVG 21:46 · LAX 05:46 · JFK 08:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.