SagerNet / sing-box

The universal proxy platform
https://sing-box.sagernet.org/
Other
18.25k stars 2.18k forks source link

HY2玩游戏UDP不通 #956

Closed CC-3301 closed 11 months ago

CC-3301 commented 11 months ago

Operating system

Linux

System version

OpenWrt

Installation type

Others

If you are using a graphical client, please provide the version of the client.

clash-meta alpha-7eae775

Version

sing-box version 1.6.0-alpha.3

Environment: go1.21.1 linux/amd64
Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_ech,with_utls,with_reality_server,with_clash_api
Revision: e885666eb24c50022fd4f56e7ae46f02a49bd829
CGO: disabled

Description

用hy2玩游戏,能进入游戏,但无法完成匹配,服务端日志提示 DEBUG inbound/hysteria2[hy2-in]: connection failed: receive message: PROTOCOL_VIOLATION (remote): DATAGRAM frame too large

Reproduction

客户端使用clash-meta alpha-7eae775,服务端使用sing-box v1.6.0-alpha.3,协议使用hysteria2 客户端节点配置

- name: xxx
  type: hysteria2
  server: xxx
  port: 443
  password: xxx
  alpn: [h3]

服务端配置

{
            "listen": "::",
            "listen_port": 443,
            "sniff": true,
            "domain_strategy": "prefer_ipv6",
            "type": "hysteria2",
            "tag": "hy2-in",
            "users": [
                {
                    "password": "脱敏"
                }
            ],
            "ignore_client_bandwidth": true,
            "masquerade": "",
            "tls": {
                "enabled": true,
                "alpn": "h3",
                "certificate_path": "脱敏",
                "key_path": "脱敏"
            }
}

Logs

+0800 2023-10-07 18:01:53 DEBUG [4242810764 0ms] dns: resolved [23.202.132.41]
+0800 2023-10-07 18:01:53 INFO [4242810764 0ms] outbound/direct[direct]: outbound connection to ratt.juno.ea.com:443
+0800 2023-10-07 18:01:57 DEBUG inbound/hysteria2[hy2-in]: connection failed: receive message: PROTOCOL_VIOLATION (remote): DATAGRAM frame too large
+0800 2023-10-07 18:01:57 INFO [3083951164 0ms] inbound/hysteria2[hy2-in]: [CC] inbound connection to split-evaluator.juno.ea.com:443
+0800 2023-10-07 18:01:57 INFO [4062463830 0ms] inbound/hysteria2[hy2-in]: [CC] inbound connection to split-evaluator.juno.ea.com:443
+0800 2023-10-07 18:01:57 DEBUG [3083951164 0ms] router: sniffed protocol: tls, domain: split-evaluator.juno.ea.com
+0800 2023-10-07 18:01:57 DEBUG [3083951164 0ms] dns: lookup domain split-evaluator.juno.ea.com
+0800 2023-10-07 18:01:57 INFO [3083951164 0ms] dns: lookup succeed for split-evaluator.juno.ea.com: 23.202.132.41
+0800 2023-10-07 18:01:57 DEBUG [3083951164 0ms] dns: resolved [23.202.132.41]
+0800 2023-10-07 18:01:57 INFO [3083951164 0ms] outbound/direct[direct]: outbound connection to split-evaluator.juno.ea.com:443
chise0713 commented 11 months ago

可能是传域名导致的,试试看关掉fakeip或者在服务端direct出站加域名策略

JAXo-China commented 11 months ago

fakeip开混合模式

nekohasekai commented 11 months ago

Try the latest pre release version.

chise0713 commented 11 months ago

可能是传域名导致的,试试看关掉fakeip或者在服务端direct出站加域名策略

这句话是我从自己遇到的经验得出的,有错误抱歉了。

CC-3301 commented 11 months ago

Try the latest pre release version.

服务端sing-box v1.6.0-alpha.5 客户端clash-meta 最新alpha e8ac99b

游戏还是进不了对局,不过PROTOCOL_VIOLATION (remote): DATAGRAM frame too large的提示倒是没了,日志显示一直在尝试连接 +0800 2023-10-11 17:26:14 INFO [398266788 0ms] inbound/hysteria2[hy2-in]: inbound packet connection to 13.214.124.36:25201 +0800 2023-10-11 17:26:14 INFO [398266788 0ms] outbound/direct[direct]: outbound packet connection +0800 2023-10-11 17:26:21 INFO [514560958 0ms] inbound/hysteria2[hy2-in]: inbound packet connection to 13.214.124.36:25201 +0800 2023-10-11 17:26:21 INFO [514560958 0ms] outbound/direct[direct]: outbound packet connection +0800 2023-10-11 17:26:29 INFO [2061448753 0ms] inbound/hysteria2[hy2-in]: inbound packet connection to 13.214.124.36:25201 +0800 2023-10-11 17:26:29 INFO [2061448753 0ms] outbound/direct[direct]: outbound packet connection +0800 2023-10-11 17:26:38 INFO [3947770457 0ms] inbound/hysteria2[hy2-in]: inbound packet connection to 13.214.124.36:25201 +0800 2023-10-11 17:26:38 INFO [3947770457 0ms] outbound/direct[direct]: outbound packet connection +0800 2023-10-11 17:26:47 INFO [3033025752 0ms] inbound/hysteria2[hy2-in]: inbound packet connection to 13.214.124.36:25201 +0800 2023-10-11 17:26:47 INFO [3033025752 0ms] outbound/direct[direct]: outbound packet connection

nekohasekai commented 11 months ago

Try switching to the official Hysteria2 server or server and client to determine the location of the problem.

CC-3301 commented 11 months ago

Try switching to the official Hysteria2 server or server and client to determine the location of the problem.

服务端hysteria2 official v2.0.4 客户端clash-meta alpha e8ac99b 成功

服务端sing-box v1.6.0-alpha.5 客户端sing-box v1.6.0-alpha.5 失败

nekohasekai commented 11 months ago

Please provide complete local server and client configurations, logs and steps to reproduce the problem in a new issue.