SagerNet / sing-box

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

这个调试信息是什么意思?连不上。 #1847

Closed bh7825 closed 2 weeks ago

bh7825 commented 2 weeks ago

下面是命令行窗口显示的调试信息:

PS D:\fanqiang\sing-box-1.9.0-windows-amd64> .\sing-box.exe run -c client-tun-test.json
INFO[0000] router: updated default interface 以太网, index 16
TRACE[0000] inbound/tun[0]: creating stack
INFO[0001] inbound/tun[0]: started at tun0
INFO[0001] sing-box started (1.766s)
INFO[0001] [2065955055 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:59063
INFO[0001] [2065955055 10ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53
DEBUG[0001] [2065955055 17ms] router: match[1] geoip=private => direct
INFO[0001] [4248344155 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:50817
INFO[0001] [4248344155 18ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53
DEBUG[0001] [4248344155 20ms] router: match[1] geoip=private => direct
INFO[0001] [144770319 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:50478
INFO[0001] [144770319 30ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53
DEBUG[0001] [144770319 38ms] router: match[1] geoip=private => direct
INFO[0001] [1887217547 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:55935
INFO[0001] [1887217547 43ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53
DEBUG[0001] [1887217547 46ms] router: match[1] geoip=private => direct
INFO[0001] [3175299672 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:63474
INFO[0001] [3175299672 56ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53
DEBUG[0001] [3175299672 59ms] router: match[1] geoip=private => direct
INFO[0001] [2065955055 80ms] outbound/direct[direct]: outbound packet connection
INFO[0001] [4248344155 90ms] outbound/direct[direct]: outbound packet connection
INFO[0001] [144770319 92ms] outbound/direct[direct]: outbound packet connection
INFO[0001] [1887217547 107ms] outbound/direct[direct]: outbound packet connection
INFO[0001] [3175299672 119ms] outbound/direct[direct]: outbound packet connection
INFO[0002] [4284798866 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:54153
INFO[0002] [4284798866 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53
DEBUG[0002] [4284798866 0ms] router: match[1] geoip=private => direct
INFO[0002] [4284798866 40ms] outbound/direct[direct]: outbound packet connection
INFO[0002] [2601906602 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:62366
INFO[0002] [2601906602 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53
DEBUG[0002] [2601906602 0ms] router: match[1] geoip=private => direct
INFO[0002] [2601906602 32ms] outbound/direct[direct]: outbound packet connection
INFO[0003] [2357080369 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:49904
INFO[0003] [2357080369 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53
DEBUG[0003] [2357080369 0ms] router: match[1] geoip=private => direct
INFO[0003] [378394053 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:62408
INFO[0003] [378394053 1ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53
DEBUG[0003] [378394053 1ms] router: match[1] geoip=private => direct
INFO[0003] [378394053 26ms] outbound/direct[direct]: outbound packet connection
INFO[0003] [2357080369 27ms] outbound/direct[direct]: outbound packet connection
INFO[0010] [3287476056 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:49598
INFO[0010] [3287476056 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53
DEBUG[0010] [3287476056 0ms] router: match[1] geoip=private => direct
INFO[0010] [3287476056 27ms] outbound/direct[direct]: outbound packet connection
INFO[0010] [924588238 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:62940
INFO[0010] [924588238 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53
DEBUG[0010] [924588238 0ms] router: match[1] geoip=private => direct
INFO[0010] [924588238 34ms] outbound/direct[direct]: outbound packet connection
INFO[0011] [1075937698 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:55238
INFO[0011] [1075937698 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53
DEBUG[0011] [1075937698 0ms] router: match[1] geoip=private => direct
INFO[0011] [1075937698 18ms] outbound/direct[direct]: outbound packet connection
INFO[0011] [420916875 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:49475
INFO[0011] [420916875 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53
DEBUG[0011] [420916875 0ms] router: match[1] geoip=private => direct
INFO[0011] [2779971629 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:49807
INFO[0011] [2779971629 1ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53
DEBUG[0011] [2779971629 3ms] router: match[1] geoip=private => direct
INFO[0011] [420916875 74ms] outbound/direct[direct]: outbound packet connection
INFO[0011] [2779971629 64ms] outbound/direct[direct]: outbound packet connection
INFO[0013] [429921171 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:54853
INFO[0013] [429921171 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53
DEBUG[0013] [429921171 0ms] router: match[1] geoip=private => direct
INFO[0013] [429921171 20ms] outbound/direct[direct]: outbound packet connection
INFO[0013] [4193152978 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:60245
INFO[0013] [4193152978 0ms] inbound/tun[0]: inbound connection to 152.195.38.76:80
INFO[0013] [4193152978 0ms] outbound/shadowsocks[ss-out]: outbound multiplex connection to 152.195.38.76:80
INFO[0013] [1911784693 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:60247
INFO[0013] [1911784693 0ms] inbound/tun[0]: inbound connection to 23.211.57.160:443
INFO[0013] [1911784693 0ms] outbound/shadowsocks[ss-out]: outbound multiplex connection to 23.211.57.160:443
DEBUG[0013] [4193152978 139ms] inbound/tun[0]: connection closed: upload: raw-read tcp4 172.19.0.1:60243->172.19.0.2:10000: use of closed network connection | download: http2: client connection force closed via ClientConn.Close
DEBUG[0013] [1911784693 93ms] inbound/tun[0]: connection closed: upload: raw-read tcp4 172.19.0.1:60243->172.19.0.2:10001: use of closed network connection | download: http2: client connection force closed via ClientConn.Close
INFO[0013] [5353615 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:60248
INFO[0013] [5353615 0ms] inbound/tun[0]: inbound connection to 23.211.57.160:443
INFO[0013] [5353615 0ms] outbound/shadowsocks[ss-out]: outbound multiplex connection to 23.211.57.160:443
INFO[0013] [2806748071 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:64683
INFO[0013] [2806748071 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53
DEBUG[0013] [2806748071 0ms] router: match[1] geoip=private => direct
INFO[0013] [2806748071 21ms] outbound/direct[direct]: outbound packet connection
DEBUG[0013] [5353615 133ms] inbound/tun[0]: connection closed: upload: raw-read tcp4 172.19.0.1:60243->172.19.0.2:10002: use of closed network connection | download: http2: client connection force closed via ClientConn.Close
INFO[0013] [9220201 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:60250
INFO[0013] [9220201 0ms] inbound/tun[0]: inbound connection to 52.167.164.84:443
INFO[0013] [9220201 0ms] outbound/shadowsocks[ss-out]: outbound multiplex connection to 52.167.164.84:443
INFO[0013] [1770816426 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:60252
INFO[0013] [1770816426 0ms] inbound/tun[0]: inbound connection to 23.211.57.160:443
INFO[0013] [1770816426 0ms] outbound/shadowsocks[ss-out]: outbound multiplex connection to 23.211.57.160:443
DEBUG[0013] [9220201 132ms] inbound/tun[0]: connection closed: upload: raw-read tcp4 172.19.0.1:60243->172.19.0.2:10003: use of closed network connection | download: http2: client connection force closed via ClientConn.Close
DEBUG[0013] [1770816426 129ms] inbound/tun[0]: connection closed: upload: raw-read tcp4 172.19.0.1:60243->172.19.0.2:10004: use of closed network connection | download: http2: client connection force closed via ClientConn.Close
INFO[0013] [1836600355 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:60254
INFO[0013] [1836600355 0ms] inbound/tun[0]: inbound connection to 23.211.57.160:443
INFO[0013] [1836600355 0ms] outbound/shadowsocks[ss-out]: outbound multiplex connection to 23.211.57.160:443
INFO[0013] [399832354 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:63068
INFO[0013] [399832354 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53
DEBUG[0013] [399832354 0ms] router: match[1] geoip=private => direct
INFO[0013] [399832354 28ms] outbound/direct[direct]: outbound packet connection
DEBUG[0014] [1836600355 145ms] inbound/tun[0]: connection closed: upload: raw-read tcp4 172.19.0.1:60243->172.19.0.2:10005: use of closed network connection | download: http2: client connection force closed via ClientConn.Close
INFO[0014] [3555496345 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:60256
INFO[0014] [3555496345 0ms] inbound/tun[0]: inbound connection to 23.211.57.160:443
INFO[0014] [3555496345 0ms] outbound/shadowsocks[ss-out]: outbound multiplex connection to 23.211.57.160:443
DEBUG[0014] [3555496345 141ms] inbound/tun[0]: connection closed: upload: raw-read tcp4 172.19.0.1:60243->172.19.0.2:10006: use of closed network connection | download: http2: client connection force closed via ClientConn.Close
INFO[0014] [2846715792 0ms] inbound/tun[0]: inbound connection from 172.19.0.1:60258
INFO[0014] [2846715792 0ms] inbound/tun[0]: inbound connection to 23.211.57.160:443
INFO[0014] [2846715792 0ms] outbound/shadowsocks[ss-out]: outbound multiplex connection to 23.211.57.160:443
DEBUG[0014] [2846715792 134ms] inbound/tun[0]: connection closed: upload: raw-read tcp4 172.19.0.1:60243->172.19.0.2:10007: use of closed network connection | download: http2: client connection force closed via ClientConn.Close
INFO[0016] [4116664240 0ms] inbound/tun[0]: inbound packet connection from 172.19.0.1:54142
INFO[0016] [4116664240 0ms] inbound/tun[0]: inbound packet connection to 172.19.0.2:53
DEBUG[0016] [4116664240 0ms] router: match[1] geoip=private => direct
INFO[0016] [4116664240 17ms] outbound/direct[direct]: outbound packet connection
DEBUG[0016] [3287476056 6.22s] inbound/tun[0]: connection closed: upload: EOF | download: raw-read udp4 0.0.0.0:49599: use of closed network connection | upstream: context canceled
DEBUG[0016] [144770319 14.56s] inbound/tun[0]: connection closed: upload: EOF | download: raw-read udp4 0.0.0.0:64387: use of closed network connection | upstream: context canceled
DEBUG[0016] [1075937698 5.16s] inbound/tun[0]: connection closed: upload: EOF | download: raw-read udp4 0.0.0.0:55239: use of closed network connection | upstream: context canceled
DEBUG[0016] [924588238 6.2s] inbound/tun[0]: connection closed: upload: EOF | download: raw-read udp4 0.0.0.0:62941: use of closed network connection | upstream: context canceled
DEBUG[0016] [2601906602 13.60s] inbound/tun[0]: connection closed: upload: EOF | download: raw-read udp4 0.0.0.0:62367: use of closed network connection | upstream: context canceled
DEBUG[0016] [378394053 13.6s] inbound/tun[0]: connection closed: upload: EOF | download: raw-read udp4 0.0.0.0:64547: use of closed network connection | upstream: context canceled
DEBUG[0016] [2806748071 2.66s] inbound/tun[0]: connection closed: upload: EOF | download: raw-read udp4 0.0.0.0:64684: use of closed network connection | upstream: context canceled
DEBUG[0016] [1887217547 14.56s] inbound/tun[0]: connection closed: upload: EOF | download: raw-read udp4 0.0.0.0:64388: use of closed network connection | upstream: context canceled
DEBUG[0016] [2357080369 13.6s] inbound/tun[0]: connection closed: upload: EOF | download: raw-read udp4 0.0.0.0:64548: use of closed network connection | upstream: context canceled
DEBUG[0016] [4284798866 13.88s] inbound/tun[0]: connection closed: upload: EOF | download: raw-read udp4 0.0.0.0:52971: use of closed network connection | upstream: context canceled
DEBUG[0016] [399832354 2.41s] inbound/tun[0]: connection closed: upload: EOF | download: raw-read udp4 0.0.0.0:63069: use of closed network connection | upstream: context canceled
DEBUG[0016] [420916875 4.99s] inbound/tun[0]: connection closed: upload: EOF | download: raw-read udp4 0.0.0.0:49808: use of closed network connection | upstream: context canceled
DEBUG[0016] [4248344155 14.56s] inbound/tun[0]: connection closed: upload: EOF | download: raw-read udp4 0.0.0.0:64386: use of closed network connection | upstream: context canceled
DEBUG[0016] [4116664240 163ms] inbound/tun[0]: connection closed: upload: EOF | download: raw-read udp4 0.0.0.0:54143: use of closed network connection | upstream: context canceled
DEBUG[0016] [2065955055 14.56s] inbound/tun[0]: connection closed: upload: EOF | download: raw-read udp4 0.0.0.0:64385: use of closed network connection | upstream: context canceled
DEBUG[0016] [429921171 3.13s] inbound/tun[0]: connection closed: upload: EOF | download: raw-read udp4 0.0.0.0:54854: use of closed network connection | upstream: context canceled
DEBUG[0016] [3175299672 14.56s] inbound/tun[0]: connection closed: upload: EOF | download: raw-read udp4 0.0.0.0:64389: use of closed network connection | upstream: context canceled
DEBUG[0016] [2779971629 4.97s] inbound/tun[0]: connection closed: upload: EOF | download: raw-read udp4 0.0.0.0:49809: use of closed network connection | upstream: context canceled

客户端配置文件是这样的: client-tun-test.json:

{
    "log": {},
    "dns": {
        "servers": [
            {
                "tag": "google",
                "address": "https://1.1.1.1/dns-query"
            },
            {
                "tag": "local",
                "address": "223.5.5.5",
                "detour": "direct"
            }
        ],
        "rules": [
            {
                "outbound": "any",
                "server": "local"
            }
        ],
        "strategy": "ipv4_only"
    },
    "inbounds": [
        {
            "type": "tun",
            "inet4_address": "172.19.0.1/30",
            "auto_route": true,
            "strict_route": false
        }
    ],
    "outbounds": [
        {
            "type": "shadowsocks",
            "tag": "ss-out",

            "server": "xxx.xxx.xxx.xxx",
            "server_port": 8080,
            "method": "2022-blake3-aes-128-gcm",
            "password": "password",
            "multiplex": {
              "enabled": true
            }
          },
        {
            "type": "direct",
            "tag": "direct"
        },
        {
            "type": "dns",
            "tag": "dns-out"
        }
    ],
    "route": {
        "rules": [
      {
        "protocol": "dns",
        "outbound": "dns-out"
      },
      {
        "geoip": [
          "private"
        ],
        "outbound": "direct"
      }
    ],
    "auto_detect_interface": true
    },
    "experimental": {}
}

服务端配置文件是这样的:

{
  "log": {
    "level": "info"
  },
  "dns": {
    "servers": [
      {
        "address": "tls://8.8.8.8"
      }
    ]
  },
  "inbounds": [
    {
      "type": "shadowsocks",
      "listen": "::",
      "listen_port": 8080,
      "sniff": true,
      "network": "tcp",
      "method": "2022-blake3-aes-128-gcm",
      "password": "password"
    }
  ],
  "outbounds": [
    {
      "type": "direct"
    },
    {
      "type": "dns",
      "tag": "dns-out"
    }
  ],
  "route": {
    "rules": [
      {
        "protocol": "dns",
        "outbound": "dns-out"
      }
    ]
  }
}

不能科学上网,打不开网页。

charliez0 commented 2 weeks ago

你服务端忘开multiplex了吧

bh7825 commented 2 weeks ago

@charliez0 添加上了也不行

xiaobo-lab commented 3 days ago

请问解决了吗?我也遇到同样的问题了