ShellCrash icon indicating copy to clipboard operation
ShellCrash copied to clipboard

[Bug] h2客户端可以链接但是clash和surge连接不上

Open txl263 opened this issue 11 months ago • 3 comments

Verify steps

  • [X] 我已经在 Issue Tracker 中找过我要提出的问题 I have searched on the issue tracker for a related issue.
  • [X] 我已经使用公测版本测试过,问题依旧存在 I have tested using the test mod, and the issue still exists.
  • [X] 我已经仔细看过 常见问题 并无法自行解决问题

Description

描述问题 在一台arch VPS 上运行了几个月的h2,最近突然无法连接,客户端用的clash-verge和shellclash,经过测试发现hysteria官方客户端还有一个NekoBox可以,但是shellclash和clash-verge还有surge都不能连接,求教怎么抓客户端的log找出问题原因。 我在hysteria提了bug,那边说最好在三方问一下 https://github.com/apernet/hysteria/issues/965 设备和操作系统 Linux archDo 6.7.8-arch1-1 https://github.com/apernet/hysteria/issues/1 SMP PREEMPT_DYNAMIC Sun, 03 Mar 2024 00:30:36 +0000 x86_64 GNU/Linux hysteria版本2.2.1 问题出现后又试过2.1版本,问题依旧 服务器日志

Mar 05 00:49:19 archDo systemd[1]: Started Hysteria Server Service.
Mar 05 00:49:19 archDo hysteria[292]: 2024-03-05T00:49:19+08:00        INFO        server mode
Mar 05 00:49:19 archDo hysteria[292]: 2024-03-05T00:49:19+08:00        INFO        server up and running        {"listen": ":443"}
Mar 05 01:01:56 archDo hysteria[292]: 2024-03-05T01:01:56+08:00        INFO        client connected        {"addr": "111.194.▆▆▆.227:46177", "id": "user", "tx": 12500000}
Mar 05 01:11:40 archDo hysteria[292]: 2024-03-05T01:11:40+08:00        INFO        client disconnected        {"addr": "111.194.▆▆▆.227:46177", "id": "user", "error": "accepting stream failed: timeout: no recent network activity"}
Mar 05 13:59:52 archDo hysteria[292]: 2024-03-05T13:59:52+08:00        INFO        client connected        {"addr": "146.190.▆▆▆.118:43174", "id": "user", "tx": 12500000}
Mar 05 14:03:16 archDo hysteria[292]: 2024-03-05T14:03:16+08:00        ERROR        TCP error        {"addr": "146.190.▆▆▆.118:43174", "id": "user", "reqAddr": "api.hy2.io:443", "error": "readfrom tcp4 146.190.▆▆▆.118:33500->172.67.208.246:443: timeout: no recent network activity"}
Mar 05 14:03:16 archDo hysteria[292]: 2024-03-05T14:03:16+08:00        INFO        client disconnected        {"addr": "146.190.▆▆▆.118:43174", "id": "user", "error": "accepting stream failed: timeout: no recent network activity"}
Mar 05 14:06:27 archDo hysteria[292]: 2024-03-05T14:06:27+08:00        INFO        client connected        {"addr": "146.190.▆▆▆.118:57662", "id": "user", "tx": 12500000}
Mar 05 14:07:08 archDo hysteria[292]: 2024-03-05T14:07:08+08:00        ERROR        TCP error        {"addr": "146.190.▆▆▆.118:57662", "id": "user", "reqAddr": "api.hy2.io:443", "error": "readfrom tcp4 146.190.▆▆▆.118:34382->104.21.69.135:443: timeout: no recent network activity"}
Mar 05 14:07:08 archDo hysteria[292]: 2024-03-05T14:07:08+08:00        INFO        client disconnected        {"addr": "146.190.▆▆▆.118:57662", "id": "user", "error": "accepting stream failed: timeout: no recent network activity"}

TCP error的部分应该是clash客户端连接时的信息 hysteria客户端日志

hysteria -c config.yaml
2024-03-05T15:08:20+08:00       INFO    client mode
2024-03-05T15:08:20+08:00       INFO    connected to server     {"udpEnabled": true, "tx": 2500000, "count": 1}
2024-03-05T15:08:20+08:00       INFO    use this URI to share your server       {"uri": "hysteria2://▆▆▆@146.190.▆▆▆.118:443/?insecure=1&sni=▆▆▆.top"}
2024-03-05T15:08:20+08:00       INFO    SOCKS5 server listening {"addr": "127.0.0.1:1080"}
2024-03-05T15:08:20+08:00       INFO    HTTP proxy server listening     {"addr": "127.0.0.1:8080"}

txl263 avatar Mar 10 '24 08:03 txl263

@txl263 这边没办法回复内核相关问题,你可以尝试使用singbox

juewuy avatar Mar 10 '24 11:03 juewuy

@juewuy 您指的是clash内核吗,主要路由器需要shellcrash,其他平台倒是好说。shellcrash没有具体的log可以查看吗

txl263 avatar Mar 10 '24 11:03 txl263

singbox内核 具体日志可以面板日志开debug查看 多数时候可能都是时间不同步导致的

juewuy avatar Mar 10 '24 13:03 juewuy