clash icon indicating copy to clipboard operation
clash copied to clipboard

[Bug] Potential transport bug affecting h3/quic connections

Open czp744 opened this issue 3 years ago • 7 comments

Verify steps

  • [X] 确保你使用的是本仓库最新的的 clash 或 clash premium 版本 Ensure you are using the latest version of Clash or Clash Premium from this repository.
  • [X] 如果你可以自己 debug 并解决的话,提交 PR 吧 Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome.
  • [X] 我已经在 Issue Tracker 中找过我要提出的问题 I have searched on the issue tracker for a related issue.
  • [X] 我已经使用 dev 分支版本测试过,问题依旧存在 I have tested using the dev branch, and the issue still exists.
  • [X] 我已经仔细看过 Documentation 并无法自行解决问题 I have read the documentation and was unable to solve the issue.
  • [X] 这是 Clash 核心的问题,并非我所使用的 Clash 衍生版本(如 OpenClash、KoolClash 等)的特定问题 This is an issue of the Clash core per se, not to the derivatives of Clash, like OpenClash or KoolClash.

Clash version

2023.03.4

What OS are you seeing the problem on?

Linux

Clash config

dns:
  enable: true
  ipv6: false
  listen: 0.0.0.0:53
  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.1/16
  nameserver:
    - 10.0.1.5

tun:
  enable: true
  stack: system # or gvisor
  auto-route: true # auto set global route
  auto-detect-interface: true # conflict with interface-name


port: 7890
socks-port: 7891
redir-port: 7893
allow-lan: true
mode: Rule
log-level: debug
external-controller: '0.0.0.0:8080'
external-ui: /etc/clash/clash-dashboard

proxy-groups:
  - name: PROXY
    type: select
    use:
      - subscribe

proxy-providers:
  subscribe:
    type: http
    url: 
    interval: 86400
    path: ./proxy/subscribe.yaml
    health-check:
      enable: false
      interval: 600
      # lazy: true
      url: http://www.gstatic.com/generate_204

rule-providers:
  icloud:
    type: http
    behavior: domain
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/icloud.txt"
    path: ./ruleset/icloud.yaml
    interval: 86400

  apple:
    type: http
    behavior: domain
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/apple.txt"
    path: ./ruleset/apple.yaml
    interval: 86400

  google:
    type: http
    behavior: domain
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/google.txt"
    path: ./ruleset/google.yaml
    interval: 86400

  proxy:
    type: http
    behavior: domain
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt"
    path: ./ruleset/proxy.yaml
    interval: 86400

  direct:
    type: http
    behavior: domain
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt"
    path: ./ruleset/direct.yaml
    interval: 86400

  private:
    type: http
    behavior: domain
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/private.txt"
    path: ./ruleset/private.yaml
    interval: 86400

  telegramcidr:
    type: http
    behavior: ipcidr
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/telegramcidr.txt"
    path: ./ruleset/telegramcidr.yaml
    interval: 86400

  cncidr:
    type: http
    behavior: ipcidr
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/cncidr.txt"
    path: ./ruleset/cncidr.yaml
    interval: 86400

  lancidr:
    type: http
    behavior: ipcidr
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt"
    path: ./ruleset/lancidr.yaml
    interval: 86400

  applications:
    type: http
    behavior: classical
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/applications.txt"
    path: ./ruleset/applications.yaml
    interval: 86400

rules:
  - DOMAIN-SUFFIX,disneyplus.com,PROXY
  - DOMAIN-SUFFIX,disney-plus.net,PROXY
  - DOMAIN-SUFFIX,disneystreaming.com,PROXY
  - DOMAIN-SUFFIX,bamgrid.com,PROXY
  - DOMAIN-SUFFIX,dssott.com,PROXY
  - DOMAIN-KEYWORD,youtube,PROXY
  - DOMAIN-SUFFIX,youtu.be,PROXY
  - DOMAIN-SUFFIX,youtube-nocookie.com,PROXY
  - DOMAIN-SUFFIX,youtube.com,PROXY
  - DOMAIN,cdn.registerdisney.go.com,PROXY
  - PROCESS-NAME,clash,DIRECT
  - RULE-SET,applications,DIRECT
  - RULE-SET,private,DIRECT
  - RULE-SET,icloud,DIRECT
  - RULE-SET,apple,DIRECT
  - RULE-SET,google,DIRECT
  - RULE-SET,proxy,PROXY
  - RULE-SET,direct,DIRECT
  - RULE-SET,lancidr,DIRECT
  - RULE-SET,cncidr,DIRECT
  - RULE-SET,telegramcidr,PROXY
  - GEOIP,LAN,DIRECT
  - GEOIP,CN,DIRECT
  - MATCH,PROXY

Clash log

[2023-03-17 10:49:31][DEBUG] [UDP] accept session lAddr=10.0.1.1:62512 rAddr=rr2---sn-i3belnl7.googlevideo.com:443 inbound=TUN
[2023-03-17 10:49:31][DEBUG] [Matcher] find process failed error=process not found addr=rr2---sn-i3belnl7.googlevideo.com
[2023-03-17 10:49:31][DEBUG] [TCP] accept connection lAddr=10.0.1.1:7824 rAddr=rr2---sn-i3belnl7.googlevideo.com:443 inbound=TUN
[2023-03-17 10:49:31][DEBUG] [Matcher] find process failed error=process not found addr=rr2---sn-i3belnl7.googlevideo.com
[2023-03-17 10:49:31][DEBUG] [TCP] accept connection lAddr=10.0.1.1:7825 rAddr=rr2---sn-i3belnl7.googlevideo.com:443 inbound=TUN
[2023-03-17 10:49:31][DEBUG] [Matcher] find process failed error=process not found addr=rr2---sn-i3belnl7.googlevideo.com

Description

ros lan 10.0.0.1 mosdns 10.0.1.4 adg 10.0.1.5 clash 10.0.1.3 其他网站目前都可以正常打开 就是YouTube打开播放 需要很长时间转圈 请问下应该怎么去解决

czp744 avatar Mar 17 '23 02:03 czp744