SagerNet / sing-box

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

服务端1.6.0-beta.3的hy2无法连接 #999

Closed chowyuan1314 closed 10 months ago

chowyuan1314 commented 10 months ago

操作系统

Linux

系统版本

Debian GNU/Linux 12

安装类型

sing-box 原始命令行程序

如果您使用图形客户端程序,请提供该程序版本。

No response

版本

sing-box version 1.6.0-beta.3

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

描述

服务端使用1.6.0-beta.3,hy2入站不设置"up_mbps"和"down_mbps",客户端1.6.0-beta.3,hy2出站设置"up_mbps"和"down_mbps",客户端启动后无法连接上服务端。以下为双端完整脱敏配置及日志,无任何删减。

重现方式

服务端完整配置:

{
    "log": {
        "disabled": false,
        "level": "trace",
        "output": "/usr/local/bin/box-t.log",
        "timestamp": true
    },
    "inbounds": [
        {
            "type": "hysteria2",
            "tag": "hy2-in",
            "sniff": true,
            "sniff_override_destination": false,
            "tcp_multi_path": true,
            "tcp_fast_open": true,
            "listen": "::",
            "listen_port": **,
            "users": [
                {
                    "name": "**",
                    "password": "**"
                }
            ],
            "ignore_client_bandwidth": false,
            "tls": {
                "enabled": true,
                "certificate_path": "**",
                "key_path": "**",
                "alpn": "h3",
                "server_name": "**"
            }
        }
    ],
    "outbounds": [
        {
            "type": "direct",
            "tag": "direct-out"
        }
    ]
}

客户端完整配置:

{
    "log": {
        "level": "trace",
        "output": "box.log",
        "timestamp": true
    },
    "dns": {
        "servers": [
            {
                "address": "https://1.1.1.1/dns-query",
                "detour": "🇯🇵东京3-hy2"
            }
        ],
        "independent_cache": false
        },
    "inbounds": [
        {
            "type": "mixed",
            "tag": "mixed-in",
            "listen": "127.0.0.1",
            "listen_port": 7890,
            "sniff": true,
            "domain_strategy": "prefer_ipv4",
            "set_system_proxy": true
        }
    ],
    "outbounds": [
        {
            "type": "dns",
            "tag": "dns-out"
        },
        {
            "type": "hysteria2",
            "tag": "🇯🇵东京3-hy2",
            "server": "IP",
            "server_port": ***,
            "up_mbps": 150,
            "down_mbps": 200,
            "password": "***",
            "tcp_multi_path": true,
            "tcp_fast_open": true,
            "tls": {
                "enabled": true,
                "alpn": [
                    "h3"
                ],
                "server_name": "***",
                "disable_sni": true
            }
        }
    ],
    "route": {
        "auto_detect_interface": true,
        "final": "🇯🇵东京3-hy2"
    }
}

日志

客户端完整日志:

+0800 2023-10-23 16:27:28 INFO router: updated default interface en0, index 15
+0800 2023-10-23 16:27:28 TRACE initializing inbound/mixed[mixed-in]
+0800 2023-10-23 16:27:28 INFO inbound/mixed[mixed-in]: tcp server started at 127.0.0.1:7890
+0800 2023-10-23 16:27:28 INFO sing-box started (0.111s)
+0800 2023-10-23 16:27:30 INFO [536270967 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60421
+0800 2023-10-23 16:27:30 INFO [536270967 1ms] inbound/mixed[mixed-in]: inbound connection to mobile.events.data.microsoft.com:443
+0800 2023-10-23 16:27:30 DEBUG [536270967 2ms] router: sniffed protocol: tls, domain: mobile.events.data.microsoft.com
+0800 2023-10-23 16:27:30 DEBUG [536270967 2ms] dns: lookup domain mobile.events.data.microsoft.com
+0800 2023-10-23 16:27:30 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:30 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:34 INFO [3589845115 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60422
+0800 2023-10-23 16:27:34 INFO [3589845115 0ms] inbound/mixed[mixed-in]: inbound connection to self.events.data.microsoft.com:443
+0800 2023-10-23 16:27:34 DEBUG [3589845115 1ms] router: sniffed protocol: tls, domain: self.events.data.microsoft.com
+0800 2023-10-23 16:27:34 DEBUG [3589845115 1ms] dns: lookup domain self.events.data.microsoft.com
+0800 2023-10-23 16:27:34 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:34 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:38 INFO [4153533841 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60423
+0800 2023-10-23 16:27:38 INFO [4153533841 0ms] inbound/mixed[mixed-in]: inbound connection to twitter.com:443
+0800 2023-10-23 16:27:38 DEBUG [4153533841 1ms] router: sniffed protocol: tls, domain: twitter.com
+0800 2023-10-23 16:27:38 DEBUG [4153533841 1ms] dns: lookup domain twitter.com
+0800 2023-10-23 16:27:38 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:38 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:39 INFO [3033237083 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60424
+0800 2023-10-23 16:27:39 INFO [3033237083 3ms] inbound/mixed[mixed-in]: inbound connection to twitter.com:443
+0800 2023-10-23 16:27:39 DEBUG [3033237083 4ms] router: sniffed protocol: tls, domain: twitter.com
+0800 2023-10-23 16:27:39 DEBUG [3033237083 4ms] dns: lookup domain twitter.com
+0800 2023-10-23 16:27:39 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:39 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:40 ERROR [536270967 10.0s] dns: lookup failed for mobile.events.data.microsoft.com: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:40 DEBUG [536270967 10.0s] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60421: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:40 INFO [2761715819 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60425
+0800 2023-10-23 16:27:40 INFO [2761715819 0ms] inbound/mixed[mixed-in]: inbound connection to mobile.events.data.microsoft.com:443
+0800 2023-10-23 16:27:40 DEBUG [2761715819 0ms] router: sniffed protocol: tls, domain: mobile.events.data.microsoft.com
+0800 2023-10-23 16:27:40 DEBUG [2761715819 0ms] dns: lookup domain mobile.events.data.microsoft.com
+0800 2023-10-23 16:27:40 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:40 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:42 INFO [1701852927 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60426
+0800 2023-10-23 16:27:42 INFO [1701852927 0ms] inbound/mixed[mixed-in]: inbound connection to safebrowsing.googleapis.com:443
+0800 2023-10-23 16:27:42 DEBUG [1701852927 1ms] router: sniffed protocol: tls, domain: safebrowsing.googleapis.com
+0800 2023-10-23 16:27:42 DEBUG [1701852927 1ms] dns: lookup domain safebrowsing.googleapis.com
+0800 2023-10-23 16:27:42 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:42 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:43 INFO [1363689620 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60427
+0800 2023-10-23 16:27:43 INFO [1701542328 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60428
+0800 2023-10-23 16:27:43 INFO [1363689620 2ms] inbound/mixed[mixed-in]: inbound connection to outlook.office365.com:443
+0800 2023-10-23 16:27:43 INFO [1701542328 0ms] inbound/mixed[mixed-in]: inbound connection to outlook.office365.com:443
+0800 2023-10-23 16:27:43 DEBUG [1363689620 3ms] router: sniffed protocol: tls, domain: outlook.office365.com
+0800 2023-10-23 16:27:43 DEBUG [1363689620 3ms] dns: lookup domain outlook.office365.com
+0800 2023-10-23 16:27:43 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:43 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:43 DEBUG [1701542328 4ms] router: sniffed protocol: tls, domain: outlook.office365.com
+0800 2023-10-23 16:27:43 DEBUG [1701542328 4ms] dns: lookup domain outlook.office365.com
+0800 2023-10-23 16:27:43 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:43 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:43 INFO [2659713201 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60429
+0800 2023-10-23 16:27:43 INFO [2659713201 0ms] inbound/mixed[mixed-in]: inbound connection to outlook.office365.com:443
+0800 2023-10-23 16:27:43 DEBUG [2659713201 1ms] router: sniffed protocol: tls, domain: outlook.office365.com
+0800 2023-10-23 16:27:43 DEBUG [2659713201 1ms] dns: lookup domain outlook.office365.com
+0800 2023-10-23 16:27:43 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:43 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:44 ERROR [3589845115 10.0s] dns: lookup failed for self.events.data.microsoft.com: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:44 DEBUG [3589845115 10.0s] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60422: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:44 INFO [1110248736 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60430
+0800 2023-10-23 16:27:44 INFO [1110248736 0ms] inbound/mixed[mixed-in]: inbound connection to self.events.data.microsoft.com:443
+0800 2023-10-23 16:27:44 DEBUG [1110248736 2ms] router: sniffed protocol: tls, domain: self.events.data.microsoft.com
+0800 2023-10-23 16:27:44 DEBUG [1110248736 2ms] dns: lookup domain self.events.data.microsoft.com
+0800 2023-10-23 16:27:44 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:44 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:48 ERROR [4153533841 10.0s] dns: lookup failed for twitter.com: exchange4: Post "https://1.1.1.1/dns-query": context canceled | exchange6: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:48 DEBUG [4153533841 10.0s] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60423: exchange4: Post "https://1.1.1.1/dns-query": context canceled | exchange6: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:48 INFO [2337580249 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60431
+0800 2023-10-23 16:27:48 INFO [2337580249 0ms] inbound/mixed[mixed-in]: inbound connection to twitter.com:443
+0800 2023-10-23 16:27:48 DEBUG [2337580249 2ms] router: sniffed protocol: tls, domain: twitter.com
+0800 2023-10-23 16:27:48 DEBUG [2337580249 2ms] dns: lookup domain twitter.com
+0800 2023-10-23 16:27:48 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:48 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:49 ERROR [3033237083 10.0s] dns: lookup failed for twitter.com: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:49 DEBUG [3033237083 10.0s] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60424: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:49 INFO [3180430799 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60432
+0800 2023-10-23 16:27:49 INFO [3180430799 0ms] inbound/mixed[mixed-in]: inbound connection to twitter.com:443
+0800 2023-10-23 16:27:49 DEBUG [3180430799 1ms] router: sniffed protocol: tls, domain: twitter.com
+0800 2023-10-23 16:27:49 DEBUG [3180430799 1ms] dns: lookup domain twitter.com
+0800 2023-10-23 16:27:49 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:49 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:50 ERROR [2761715819 10.0s] dns: lookup failed for mobile.events.data.microsoft.com: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:50 DEBUG [2761715819 10.0s] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60425: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:52 ERROR [1701852927 10.0s] dns: lookup failed for safebrowsing.googleapis.com: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:52 DEBUG [1701852927 10.0s] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60426: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:52 INFO [3976643716 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60433
+0800 2023-10-23 16:27:52 INFO [3976643716 1ms] inbound/mixed[mixed-in]: inbound connection to safebrowsing.googleapis.com:443
+0800 2023-10-23 16:27:52 DEBUG [3976643716 2ms] router: sniffed protocol: tls, domain: safebrowsing.googleapis.com
+0800 2023-10-23 16:27:52 DEBUG [3976643716 2ms] dns: lookup domain safebrowsing.googleapis.com
+0800 2023-10-23 16:27:52 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:52 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:53 ERROR [1363689620 10.0s] dns: lookup failed for outlook.office365.com: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:53 DEBUG [1363689620 10.0s] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60427: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:53 ERROR [1701542328 10.0s] dns: lookup failed for outlook.office365.com: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:53 DEBUG [1701542328 10.0s] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60428: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:53 INFO [2463854703 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60434
+0800 2023-10-23 16:27:53 INFO [4107859507 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60435
+0800 2023-10-23 16:27:53 INFO [2463854703 1ms] inbound/mixed[mixed-in]: inbound connection to outlook.office365.com:443
+0800 2023-10-23 16:27:53 INFO [4107859507 1ms] inbound/mixed[mixed-in]: inbound connection to outlook.office365.com:443
+0800 2023-10-23 16:27:53 DEBUG [2463854703 3ms] router: sniffed protocol: tls, domain: outlook.office365.com
+0800 2023-10-23 16:27:53 DEBUG [2463854703 3ms] dns: lookup domain outlook.office365.com
+0800 2023-10-23 16:27:53 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:53 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:53 DEBUG [4107859507 3ms] router: sniffed protocol: tls, domain: outlook.office365.com
+0800 2023-10-23 16:27:53 DEBUG [4107859507 3ms] dns: lookup domain outlook.office365.com
+0800 2023-10-23 16:27:53 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:53 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:53 ERROR [2659713201 10.0s] dns: lookup failed for outlook.office365.com: exchange4: Post "https://1.1.1.1/dns-query": context canceled | exchange6: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:53 DEBUG [2659713201 10.0s] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60429: exchange4: Post "https://1.1.1.1/dns-query": context canceled | exchange6: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:53 INFO [1549347693 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60436
+0800 2023-10-23 16:27:53 INFO [1549347693 0ms] inbound/mixed[mixed-in]: inbound connection to outlook.office365.com:443
+0800 2023-10-23 16:27:53 DEBUG [1549347693 1ms] router: sniffed protocol: tls, domain: outlook.office365.com
+0800 2023-10-23 16:27:53 DEBUG [1549347693 1ms] dns: lookup domain outlook.office365.com
+0800 2023-10-23 16:27:53 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:53 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:54 ERROR [1110248736 10.0s] dns: lookup failed for self.events.data.microsoft.com: exchange4: Post "https://1.1.1.1/dns-query": context canceled | exchange6: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:54 DEBUG [1110248736 10.0s] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60430: exchange4: Post "https://1.1.1.1/dns-query": context canceled | exchange6: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:54 INFO [1633973699 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60437
+0800 2023-10-23 16:27:54 INFO [1633973699 0ms] inbound/mixed[mixed-in]: inbound connection to self.events.data.microsoft.com:443
+0800 2023-10-23 16:27:54 DEBUG [1633973699 1ms] router: sniffed protocol: tls, domain: self.events.data.microsoft.com
+0800 2023-10-23 16:27:54 DEBUG [1633973699 1ms] dns: lookup domain self.events.data.microsoft.com
+0800 2023-10-23 16:27:54 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:54 INFO outbound/hysteria2[🇯🇵东京3-hy2]: outbound connection to 1.1.1.1:443
+0800 2023-10-23 16:27:58 ERROR [2337580249 10.0s] dns: lookup failed for twitter.com: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:58 DEBUG [2337580249 10.0s] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60431: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:59 ERROR [3180430799 10.0s] dns: lookup failed for twitter.com: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:27:59 DEBUG [3180430799 10.0s] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60432: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context deadline exceeded
+0800 2023-10-23 16:28:00 TRACE closing inbound/mixed[0]
+0800 2023-10-23 16:28:00 ERROR [4107859507 6.45s] dns: lookup failed for outlook.office365.com: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 DEBUG [4107859507 6.45s] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60435: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 ERROR [1549347693 6.40s] dns: lookup failed for outlook.office365.com: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 DEBUG [1549347693 6.40s] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60436: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 ERROR [3976643716 8.16s] dns: lookup failed for safebrowsing.googleapis.com: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 DEBUG [3976643716 8.16s] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60433: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 ERROR [2463854703 6.46s] dns: lookup failed for outlook.office365.com: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 ERROR [1633973699 5.73s] dns: lookup failed for self.events.data.microsoft.com: exchange4: Post "https://1.1.1.1/dns-query": context canceled | exchange6: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 DEBUG [1633973699 5.73s] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60437: exchange4: Post "https://1.1.1.1/dns-query": context canceled | exchange6: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 DEBUG [2463854703 6.46s] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60434: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 INFO [1024300298 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60438
+0800 2023-10-23 16:28:00 INFO [1024300298 1ms] inbound/mixed[mixed-in]: inbound connection to self.events.data.microsoft.com:443
+0800 2023-10-23 16:28:00 DEBUG [1024300298 1ms] router: sniffed protocol: tls, domain: self.events.data.microsoft.com
+0800 2023-10-23 16:28:00 DEBUG [1024300298 1ms] dns: lookup domain self.events.data.microsoft.com
+0800 2023-10-23 16:28:00 ERROR [1024300298 1ms] dns: lookup failed for self.events.data.microsoft.com: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 DEBUG [1024300298 1ms] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60438: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 INFO [158481752 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60439
+0800 2023-10-23 16:28:00 INFO [158481752 0ms] inbound/mixed[mixed-in]: inbound connection to self.events.data.microsoft.com:443
+0800 2023-10-23 16:28:00 DEBUG [158481752 0ms] router: sniffed protocol: tls, domain: self.events.data.microsoft.com
+0800 2023-10-23 16:28:00 DEBUG [158481752 0ms] dns: lookup domain self.events.data.microsoft.com
+0800 2023-10-23 16:28:00 ERROR [158481752 0ms] dns: lookup failed for self.events.data.microsoft.com: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 DEBUG [158481752 1ms] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60439: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 INFO [2341938545 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60440
+0800 2023-10-23 16:28:00 INFO [2341938545 0ms] inbound/mixed[mixed-in]: inbound connection to self.events.data.microsoft.com:443
+0800 2023-10-23 16:28:00 DEBUG [2341938545 0ms] router: sniffed protocol: tls, domain: self.events.data.microsoft.com
+0800 2023-10-23 16:28:00 DEBUG [2341938545 0ms] dns: lookup domain self.events.data.microsoft.com
+0800 2023-10-23 16:28:00 ERROR [2341938545 0ms] dns: lookup failed for self.events.data.microsoft.com: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 DEBUG [2341938545 0ms] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60440: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 INFO [436492666 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60441
+0800 2023-10-23 16:28:00 INFO [2199731898 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60442
+0800 2023-10-23 16:28:00 INFO [495309032 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60443
+0800 2023-10-23 16:28:00 INFO [436492666 2ms] inbound/mixed[mixed-in]: inbound connection to outlook.office365.com:443
+0800 2023-10-23 16:28:00 INFO [2199731898 1ms] inbound/mixed[mixed-in]: inbound connection to outlook.office365.com:443
+0800 2023-10-23 16:28:00 INFO [495309032 5ms] inbound/mixed[mixed-in]: inbound connection to outlook.office365.com:443
+0800 2023-10-23 16:28:00 DEBUG [436492666 7ms] router: sniffed protocol: tls, domain: outlook.office365.com
+0800 2023-10-23 16:28:00 DEBUG [436492666 7ms] dns: lookup domain outlook.office365.com
+0800 2023-10-23 16:28:00 ERROR [436492666 7ms] dns: lookup failed for outlook.office365.com: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 DEBUG [436492666 7ms] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60441: exchange6: Post "https://1.1.1.1/dns-query": context canceled | exchange4: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 DEBUG [2199731898 7ms] router: sniffed protocol: tls, domain: outlook.office365.com
+0800 2023-10-23 16:28:00 DEBUG [2199731898 7ms] dns: lookup domain outlook.office365.com
+0800 2023-10-23 16:28:00 ERROR [2199731898 7ms] dns: lookup failed for outlook.office365.com: exchange4: Post "https://1.1.1.1/dns-query": context canceled | exchange6: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 DEBUG [2199731898 7ms] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60442: exchange4: Post "https://1.1.1.1/dns-query": context canceled | exchange6: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 DEBUG [495309032 7ms] router: sniffed protocol: tls, domain: outlook.office365.com
+0800 2023-10-23 16:28:00 DEBUG [495309032 7ms] dns: lookup domain outlook.office365.com
+0800 2023-10-23 16:28:00 ERROR [495309032 7ms] dns: lookup failed for outlook.office365.com: exchange4: Post "https://1.1.1.1/dns-query": context canceled | exchange6: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 DEBUG [495309032 7ms] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:60443: exchange4: Post "https://1.1.1.1/dns-query": context canceled | exchange6: Post "https://1.1.1.1/dns-query": context canceled | upstream: context canceled
+0800 2023-10-23 16:28:00 INFO [3509336683 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60444
+0800 2023-10-23 16:28:00 INFO [4049851132 0ms] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:60445
+0800 2023-10-23 16:28:00 TRACE closing outbound/dns[0]
+0800 2023-10-23 16:28:00 TRACE closing outbound/direct[1]
+0800 2023-10-23 16:28:00 TRACE closing outbound/hysteria2[2]
+0800 2023-10-23 16:28:00 TRACE closing router
+0800 2023-10-23 16:28:00 TRACE router: closing rule[0]
+0800 2023-10-23 16:28:00 TRACE router: closing transport[0] 
+0800 2023-10-23 16:28:00 TRACE router: closing interface monitor
+0800 2023-10-23 16:28:00 TRACE router: closing network monitor
+0800 2023-10-23 16:28:00 TRACE closing log factory

服务端完整日志:

+0800 2023-10-23 16:11:51 INFO router: updated default interface eth0, index 2
+0800 2023-10-23 16:11:51 TRACE initializing inbound/hysteria2[hy2-in]
+0800 2023-10-23 16:11:51 INFO inbound/hysteria2[hy2-in]: udp server started at [::]:**
+0800 2023-10-23 16:11:51 INFO sing-box started (0.00s)
+0800 2023-10-23 16:21:51 DEBUG inbound/hysteria2[hy2-in]: connection failed: receive message: Application error 0x0 (remote)
+0800 2023-10-23 16:23:23 DEBUG inbound/hysteria2[hy2-in]: connection failed: receive message: Application error 0x0 (remote)
+0800 2023-10-23 16:26:01 DEBUG inbound/hysteria2[hy2-in]: connection failed: receive message: Application error 0x0 (remote)
+0800 2023-10-23 16:27:27 DEBUG inbound/hysteria2[hy2-in]: connection failed: receive message: Application error 0x0 (remote)
+0800 2023-10-23 16:27:40 DEBUG inbound/hysteria2[hy2-in]: connection failed: receive message: Application error 0x0 (remote)
+0800 2023-10-23 16:27:44 DEBUG inbound/hysteria2[hy2-in]: connection failed: receive message: Application error 0x0 (remote)
+0800 2023-10-23 16:27:48 DEBUG inbound/hysteria2[hy2-in]: connection failed: receive message: Application error 0x0 (remote)
+0800 2023-10-23 16:27:49 DEBUG inbound/hysteria2[hy2-in]: connection failed: receive message: Application error 0x0 (remote)
+0800 2023-10-23 16:27:50 DEBUG inbound/hysteria2[hy2-in]: connection failed: receive message: Application error 0x0 (remote)
+0800 2023-10-23 16:27:52 DEBUG inbound/hysteria2[hy2-in]: connection failed: receive message: Application error 0x0 (remote)
+0800 2023-10-23 16:27:53 DEBUG inbound/hysteria2[hy2-in]: connection failed: receive message: Application error 0x0 (remote)
+0800 2023-10-23 16:27:54 DEBUG inbound/hysteria2[hy2-in]: connection failed: receive message: Application error 0x0 (remote)
+0800 2023-10-23 16:27:58 DEBUG inbound/hysteria2[hy2-in]: connection failed: receive message: Application error 0x0 (remote)
+0800 2023-10-23 16:27:59 DEBUG inbound/hysteria2[hy2-in]: connection failed: receive message: Application error 0x0 (remote)
+0800 2023-10-23 16:28:00 DEBUG inbound/hysteria2[hy2-in]: connection failed: receive message: Application error 0x0 (remote)
+0800 2023-10-23 16:30:34 TRACE closing inbound/hysteria2[0]
+0800 2023-10-23 16:30:34 DEBUG inbound/hysteria2[hy2-in]: listener closed: context canceled
+0800 2023-10-23 16:30:34 TRACE closing outbound/direct[0]
+0800 2023-10-23 16:30:34 TRACE closing router
+0800 2023-10-23 16:30:34 TRACE router: closing transport[0] 
+0800 2023-10-23 16:30:34 TRACE router: closing interface monitor
+0800 2023-10-23 16:30:34 TRACE router: closing network monitor
+0800 2023-10-23 16:30:34 TRACE closing log factory
xieyusi9 commented 10 months ago

我也遇到同样的情况,退回到1.6.0-beta2后恢复正常

xieyusi9 commented 10 months ago

试了一下,1.6.0-beta4问题仍然存在,只有继续退回到11.6.0-beta2

[root@centos ~]# /usr/local/bin/sing-box version sing-box version 1.6.0-beta.4

Environment: go1.21.3 linux/amd64 Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_ech,with_utls,with_reality_server,with_clash_api Revision: 9da49f42bfbce7e908d194c7041679d8082244b6 CGO: disabled [root@centos ~]# journalctl -u sing-box -o cat -f Stopped sing-box service. Started sing-box service. INFO[0000] router: updated default interface ens3, index 2 TRACE[0000] initializing inbound/hysteria2[0] INFO[0000] inbound/hysteria2[0]: udp server started at [::]:8443 TRACE[0000] initializing inbound/vless[1] INFO[0000] inbound/vless[1]: tcp server started at [::]:21 INFO[0000] sing-box started (0.00s) DEBUG[0071] inbound/hysteria2[0]: connection failed: receive message: Application error 0x0 (remote) DEBUG[0081] inbound/hysteria2[0]: connection failed: receive message: Application error 0x0 (remote)

ericsyj commented 10 months ago

同样的问题,hysteria2在1.6.0beta3和4上都不通,在beta2上正常

X126 commented 10 months ago

1.6.0rc1依然无法使用hysteria2

xieyusi9 commented 10 months ago

@nekohasekai hysteria2在1.6.0-rc.1上仍然无法正常,难道开发者只会闷头更新代码,完全不管不顾用户的BUG反馈?也不做任何实质性的测试就发布新版本?

nekohasekai commented 10 months ago

已验证修复。

chowyuan1314 commented 10 months ago

已验证修复。

双端1.6.0-rc.1,验证已修复。