Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mux connection closed: read frame header: EOF #2661

Open
4 of 5 tasks
alexander-potemkin opened this issue Mar 1, 2025 · 2 comments
Open
4 of 5 tasks

mux connection closed: read frame header: EOF #2661

alexander-potemkin opened this issue Mar 1, 2025 · 2 comments

Comments

@alexander-potemkin
Copy link

Operating system

Linux

System version

Ubuntu 24.04.2 LTS on client; 22.04.5 LTS on server

Installation type

Original sing-box Command Line

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

N/A

Version

sing-box version 1.11.4

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


On both client & server. Server's configuration is Docker based.

Description

Thank you for the a great software - I'm trying to make it work, but fail. Read all the docs, examples and tried to get support from anyone using it, but with not much luck.
I'm not a sponsor for now, but I would like to become one, just need to make it work - any help would be much appreciated!

I'm starting sudo sing-box -c 312266054.json run but nothing works. I can't see anything in DEBUG mode, except for the following error (also highlighted in the logs attached):
+0000 2025-03-01 11:49:33 ERROR [733328326 20.88s] inbound/vless[vless-in]: process connection from clientsIPAddress:51396: mux connection closed: read frame header: EOF

It feels like the connection is established, but for some reason failing. I'm in non-censored environment, so I don't believe it's DPI or something of the kind.

Reproduction

sudo sing-box -c 312266054.json run

Here is the client side JSON:

{
    "log": {
        "disabled": false,
        "level": "debug",
        "timestamp": true
    },

    "dns": {
        "servers": [
          {
            "tag": "local-1",
            "address": "77.88.8.8",
            "detour": "direct"
          },
          {
            "tag": "remote-1",
            "address": "8.8.8.8",
            "detour": "proxy"
          }
        ],
        "rules": [
            {
              "domain_suffix": [".eu"],
              "server": "local-1"
            },
            {
              "domain": ["*"],
              "server": "remote-1"
            }
          ],
        "strategy": "ipv4_only"
      },

    "inbounds": [
        {
            "type": "tun",
            "tag": "tun-in",
            "interface_name": "tun0",
            "address": [
                "172.16.0.1/30"
            ],
            "auto_route": true,
            "strict_route": true,
            "sniff": true,
            "endpoint_independent_nat": false
        }
    ],
    "outbounds": [
        {
            "tag": "proxy",
            "type": "vless",
            "flow": "xtls-rprx-vision",
            "server": "MY_SING_ADDRESS",
            "server_port": 443,
            "uuid": "7063efdf-d487-4a13-a269-1992583a1b19",
            "tls": {
                "enabled": true,
                "server_name": "mydomain.com",
                "reality": {
                    "enabled": true,
                    "public_key": "QRiUxmZiPWC0BkmqovBEbuDMlSnHqdUw2FLJ1fsbPxQ",
                    "short_id": "3addf2997314a6cb"
                },
                "utls": {
                    "enabled": true,
                    "fingerprint": "chrome"
                }
            },
            "multiplex": {
                "enabled": false
            }
        },
        {
            "tag": "direct",
            "type": "direct"
        }
    ],
    "route": {
        "rules": [
            {
              "domain_suffix": [".us"],
              "outbound": "direct"
            }
          ],
        "final": "proxy",
        "find_process": true,
        "auto_detect_interface": true,
        "override_android_vpn": true
    }
}

Here is a config from server side:

{
  "log": {
    "level": "debug",
    "timestamp": true
  },
  "inbounds": [
    {
      "type": "vless",
      "tag": "vless-in",
      "listen": "::",
      "listen_port": 443,
      "sniff": true,
      "sniff_override_destination": true,
      "domain_strategy": "ipv4_only",
      "users": [
        {
          "name": "myaccount",
          "uuid": "7063efdf-d487-4a13-a269-1992583a1b19",
          "flow": "xtls-rprx-vision"
        }
      ],
      "tls": {
        "enabled": true,
        "server_name": "mydomain.com",
        "reality": {
          "enabled": true,
          "handshake": {
            "server": "mydomain.com",
            "server_port": 443
          },
          "private_key": "yLyK0AQL-hjEu53NgvnIhHL2xDiXdZJMkDmEGjFtEWE",
          "short_id": [
            "3addf2997314a6cb"
          ]
        }
      },
      "multiplex": {
        "enabled": false
     }
    }
  ],
  "outbounds": [
    {
      "type": "direct",
      "tag": "direct"
    },
    {
      "type": "block",
      "tag": "block"
    }
  ]
}

Logs

# Server side


WARN[0000] legacy special outbounds is deprecated in sing-box 1.11.0 and will be removed in sing-box 1.13.0, checkout documentation for migration: https://sing-box.sagernet.org/migration/#migrate-legacy-special-outbounds-to-rule-actions
+0000 2025-03-01 11:48:24 INFO network: updated default interface eth0, index 2
+0000 2025-03-01 11:48:24 INFO inbound/vless[vless-in]: tcp server started at [::]:443
+0000 2025-03-01 11:48:24 INFO sing-box started (0.00s)
+0000 2025-03-01 11:49:02 INFO [2012958248 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:49412
+0000 2025-03-01 11:49:02 DEBUG [2012958248 0ms] dns: lookup domain mydomain.com
+0000 2025-03-01 11:49:02 INFO [295406023 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:49410
+0000 2025-03-01 11:49:02 DEBUG [295406023 0ms] dns: lookup domain mydomain.com
+0000 2025-03-01 11:49:02 DEBUG [295406023 49ms] dns: lookup succeed for mydomain.com: domainsIPAddress
+0000 2025-03-01 11:49:02 DEBUG [2012958248 50ms] dns: lookup succeed for mydomain.com: domainsIPAddress
+0000 2025-03-01 11:49:02 INFO [295406023 149ms] inbound/vless[vless-in]: [ap] inbound packet connection to 172.16.0.2:53
+0000 2025-03-01 11:49:02 DEBUG [295406023 149ms] router: sniffed packet protocol: dns
+0000 2025-03-01 11:49:02 INFO [295406023 149ms] outbound/direct[direct]: outbound packet connection
+0000 2025-03-01 11:49:02 INFO [2012958248 150ms] inbound/vless[vless-in]: [ap] inbound packet connection to 172.16.0.2:53
+0000 2025-03-01 11:49:02 DEBUG [2012958248 150ms] router: sniffed packet protocol: dns
+0000 2025-03-01 11:49:02 INFO [2012958248 150ms] outbound/direct[direct]: outbound packet connection
+0000 2025-03-01 11:49:03 INFO [2898702212 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:49428
+0000 2025-03-01 11:49:03 INFO [909844371 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:49430
+0000 2025-03-01 11:49:03 INFO [2898702212 91ms] inbound/vless[vless-in]: [ap] inbound packet connection to 172.16.0.2:53
+0000 2025-03-01 11:49:03 DEBUG [2898702212 91ms] router: sniffed packet protocol: dns
+0000 2025-03-01 11:49:03 INFO [2898702212 91ms] outbound/direct[direct]: outbound packet connection
+0000 2025-03-01 11:49:03 INFO [909844371 101ms] inbound/vless[vless-in]: [ap] inbound packet connection to 172.16.0.2:53
+0000 2025-03-01 11:49:03 DEBUG [909844371 101ms] router: sniffed packet protocol: dns
+0000 2025-03-01 11:49:03 INFO [909844371 101ms] outbound/direct[direct]: outbound packet connection
+0000 2025-03-01 11:49:08 INFO [3456055451 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:49432
+0000 2025-03-01 11:49:08 INFO [1224869106 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:49440
+0000 2025-03-01 11:49:08 INFO [3456055451 117ms] inbound/vless[vless-in]: [ap] inbound packet connection to 172.16.0.2:53
+0000 2025-03-01 11:49:08 DEBUG [3456055451 117ms] router: sniffed packet protocol: dns
+0000 2025-03-01 11:49:08 INFO [3456055451 117ms] outbound/direct[direct]: outbound packet connection
+0000 2025-03-01 11:49:08 INFO [1224869106 261ms] inbound/vless[vless-in]: [ap] inbound packet connection to 172.16.0.2:53
+0000 2025-03-01 11:49:08 DEBUG [1224869106 262ms] router: sniffed packet protocol: dns
+0000 2025-03-01 11:49:08 INFO [1224869106 262ms] outbound/direct[direct]: outbound packet connection
+0000 2025-03-01 11:49:12 INFO [733328326 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:51396
+0000 2025-03-01 11:49:12 INFO [733328326 178ms] inbound/vless[vless-in]: [ap] inbound packet connection to 172.16.0.2:53
+0000 2025-03-01 11:49:12 DEBUG [733328326 178ms] router: sniffed packet protocol: dns
+0000 2025-03-01 11:49:12 INFO [733328326 178ms] outbound/direct[direct]: outbound packet connection
+0000 2025-03-01 11:49:16 INFO [2490163849 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:51412
+0000 2025-03-01 11:49:16 INFO [2490163849 204ms] inbound/vless[vless-in]: [ap] inbound packet connection to clientsIPAddress:22000
+0000 2025-03-01 11:49:16 DEBUG [2490163849 204ms] router: sniffed packet protocol: quic, client: quic-go
+0000 2025-03-01 11:49:16 INFO [2490163849 205ms] outbound/direct[direct]: outbound packet connection
>>>>>>>> ==== <<<<<<<<<<<
+0000 2025-03-01 11:49:33 ERROR [733328326 20.88s] inbound/vless[vless-in]: process connection from clientsIPAddress:51396: mux connection closed: read frame header: EOF
+0000 2025-03-01 11:49:33 ERROR [3456055451 24.98s] inbound/vless[vless-in]: process connection from clientsIPAddress:49432: mux connection closed: read frame header: EOF
+0000 2025-03-01 11:49:33 ERROR [1224869106 24.87s] inbound/vless[vless-in]: process connection from clientsIPAddress:49440: mux connection closed: read frame header: EOF
>>>>>>>> ====<<<<<<<<<<<
+0000 2025-03-01 11:49:33 INFO [1419903975 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:49738
+0000 2025-03-01 11:49:33 INFO [1857832715 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:49786
+0000 2025-03-01 11:49:33 INFO [3521142885 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:49734
+0000 2025-03-01 11:49:33 INFO [696554539 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:49760
+0000 2025-03-01 11:49:33 INFO [624037529 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:49762
+0000 2025-03-01 11:49:33 INFO [361901628 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:49784
+0000 2025-03-01 11:49:33 INFO [1402300800 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:49796
+0000 2025-03-01 11:49:33 INFO [2204310051 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:49792
+0000 2025-03-01 11:49:33 INFO [2077947115 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:49754
+0000 2025-03-01 11:49:33 INFO [2571645158 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:49782
+0000 2025-03-01 11:49:33 INFO [1592371337 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:49766
+0000 2025-03-01 11:49:33 INFO [4044691023 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:49774
+0000 2025-03-01 11:49:33 INFO [2677294400 0ms] inbound/vless[vless-in]: inbound connection from clientsIPAddress:49800
+0000 2025-03-01 11:49:33 INFO [1419903975 96ms] inbound/vless[vless-in]: [ap] inbound packet connection to 172.16.0.2:53
+0000 2025-03-01 11:49:33 DEBUG [1419903975 97ms] router: sniffed packet protocol: dns
+0000 2025-03-01 11:49:33 INFO [1419903975 97ms] outbound/direct[direct]: outbound packet connection
+0000 2025-03-01 11:49:33 INFO [1857832715 89ms] inbound/vless[vless-in]: [ap] inbound packet connection to 172.16.0.2:53
+0000 2025-03-01 11:49:33 DEBUG [1857832715 89ms] router: sniffed packet protocol: dns
+0000 2025-03-01 11:49:33 INFO [1857832715 89ms] outbound/direct[direct]: outbound packet connection
+0000 2025-03-01 11:49:33 INFO [361901628 90ms] inbound/vless[vless-in]: [ap] inbound packet connection to 172.16.0.2:53
+0000 2025-03-01 11:49:33 DEBUG [361901628 91ms] router: sniffed packet protocol: dns
+0000 2025-03-01 11:49:33 INFO [361901628 91ms] outbound/direct[direct]: outbound packet connection
+0000 2025-03-01 11:49:33 INFO [1402300800 91ms] inbound/vless[vless-in]: [ap] inbound packet connection to 172.16.0.2:53
+0000 2025-03-01 11:49:33 DEBUG [1402300800 92ms] router: sniffed packet protocol: dns
+0000 2025-03-01 11:49:33 INFO [1402300800 92ms] outbound/direct[direct]: outbound packet connection
+0000 2025-03-01 11:49:33 INFO [696554539 97ms] inbound/vless[vless-in]: [ap] inbound packet connection to 172.16.0.2:53
+0000 2025-03-01 11:49:33 DEBUG [696554539 97ms] router: sniffed packet protocol: dns
+0000 2025-03-01 11:49:33 INFO [696554539 98ms] outbound/direct[direct]: outbound packet connection
+0000 2025-03-01 11:49:33 INFO [3521142885 99ms] inbound/vless[vless-in]: [ap] inbound packet connection to 172.16.0.2:53
+0000 2025-03-01 11:49:33 DEBUG [3521142885 99ms] router: sniffed packet protocol: dns
+0000 2025-03-01 11:49:33 INFO [3521142885 100ms] outbound/direct[direct]: outbound packet connection
+0000 2025-03-01 11:49:33 INFO [624037529 100ms] inbound/vless[vless-in]: [ap] inbound packet connection to 172.16.0.2:53
+0000 2025-03-01 11:49:33 DEBUG [624037529 100ms] router: sniffed packet protocol: dns
+0000 2025-03-01 11:49:33 INFO [624037529 100ms] outbound/direct[direct]: outbound packet connection
+0000 2025-03-01 11:49:33 INFO [2204310051 94ms] inbound/vless[vless-in]: [ap] inbound packet connection to 172.16.0.2:53
+0000 2025-03-01 11:49:33 DEBUG [2204310051 94ms] router: sniffed packet protocol: dns
+0000 2025-03-01 11:49:33 INFO [2204310051 94ms] outbound/direct[direct]: outbound packet connection
+0000 2025-03-01 11:49:33 INFO [2571645158 99ms] inbound/vless[vless-in]: [ap] inbound packet connection to 172.16.0.2:53
+0000 2025-03-01 11:49:33 DEBUG [2571645158 99ms] router: sniffed packet protocol: dns
+0000 2025-03-01 11:49:33 INFO [2571645158 99ms] outbound/direct[direct]: outbound packet connection
+0000 2025-03-01 11:49:33 INFO [1592371337 102ms] inbound/vless[vless-in]: [ap] inbound packet connection to 172.16.0.2:53
+0000 2025-03-01 11:49:33 DEBUG [1592371337 102ms] router: sniffed packet protocol: dns
+0000 2025-03-01 11:49:33 INFO [1592371337 102ms] outbound/direct[direct]: outbound packet connection
+0000 2025-03-01 11:49:33 INFO [2077947115 103ms] inbound/vless[vless-in]: [ap] inbound packet connection to 172.16.0.2:53
+0000 2025-03-01 11:49:33 DEBUG [2077947115 103ms] router: sniffed packet protocol: dns
+0000 2025-03-01 11:49:33 INFO [2077947115 103ms] outbound/direct[direct]: outbound packet connection
+0000 2025-03-01 11:49:33 INFO [4044691023 103ms] inbound/vless[vless-in]: [ap] inbound packet connection to 172.16.0.2:53
+0000 2025-03-01 11:49:33 DEBUG [4044691023 103ms] router: sniffed packet protocol: dns
+0000 2025-03-01 11:49:33 INFO [4044691023 103ms] outbound/direct[direct]: outbound packet connection
+0000 2025-03-01 11:49:33 INFO [2677294400 101ms] inbound/vless[vless-in]: [ap] inbound packet connection to 172.16.0.2:53
+0000 2025-03-01 11:49:33 DEBUG [2677294400 101ms] router: sniffed packet protocol: dns
+0000 2025-03-01 11:49:33 INFO [2677294400 101ms] outbound/direct[direct]: outbound packet connection
+0000 2025-03-01 11:49:41 ERROR [361901628 7.72s] inbound/vless[vless-in]: process connection from clientsIPAddress:49784: mux connection closed: read frame header: EOF
+0000 2025-03-01 11:49:41 ERROR [1419903975 7.74s] inbound/vless[vless-in]: process connection from clientsIPAddress:49738: mux connection closed: read frame header: EOF
+0000 2025-03-01 11:49:41 ERROR [2898702212 38.3s] inbound/vless[vless-in]: process connection from clientsIPAddress:49428: mux connection closed: read frame header: EOF
+0000 2025-03-01 11:49:41 ERROR [2012958248 39.12s] inbound/vless[vless-in]: process connection from clientsIPAddress:49412: mux connection closed: read frame header: EOF
+0000 2025-03-01 11:49:41 ERROR [2204310051 7.73s] inbound/vless[vless-in]: process connection from clientsIPAddress:49792: mux connection closed: read frame header: EOF
+0000 2025-03-01 11:49:41 ERROR [2571645158 7.72s] inbound/vless[vless-in]: process connection from clientsIPAddress:49782: mux connection closed: read frame header: EOF
+0000 2025-03-01 11:49:41 ERROR [295406023 39.12s] inbound/vless[vless-in]: process connection from clientsIPAddress:49410: mux connection closed: read frame header: EOF
+0000 2025-03-01 11:49:41 ERROR [1592371337 7.72s] inbound/vless[vless-in]: process connection from clientsIPAddress:49766: mux connection closed: read frame header: EOF
+0000 2025-03-01 11:49:41 ERROR [909844371 38.1s] inbound/vless[vless-in]: process connection from clientsIPAddress:49430: mux connection closed: read frame header: EOF
+0000 2025-03-01 11:49:41 ERROR [1857832715 7.74s] inbound/vless[vless-in]: process connection from clientsIPAddress:49786: mux connection closed: read frame header: EOF
+0000 2025-03-01 11:49:41 ERROR [2490163849 24.85s] inbound/vless[vless-in]: process connection from clientsIPAddress:51412: mux connection closed: read frame header: EOF
+0000 2025-03-01 11:49:41 ERROR [1402300800 7.73s] inbound/vless[vless-in]: process connection from clientsIPAddress:49796: mux connection closed: read frame header: EOF
+0000 2025-03-01 11:49:41 ERROR [624037529 7.74s] inbound/vless[vless-in]: process connection from clientsIPAddress:49762: mux connection closed: read frame header: EOF
+0000 2025-03-01 11:49:41 ERROR [3521142885 7.75s] inbound/vless[vless-in]: process connection from clientsIPAddress:49734: mux connection closed: read frame header: EOF
+0000 2025-03-01 11:49:41 ERROR [696554539 7.74s] inbound/vless[vless-in]: process connection from clientsIPAddress:49760: mux connection closed: read frame header: EOF
+0000 2025-03-01 11:49:41 ERROR [2677294400 7.73s] inbound/vless[vless-in]: process connection from clientsIPAddress:49800: mux connection closed: read frame header: EOF
+0000 2025-03-01 11:49:41 ERROR [2077947115 7.73s] inbound/vless[vless-in]: process connection from clientsIPAddress:49754: mux connection closed: read frame header: EOF
+0000 2025-03-01 11:49:41 ERROR [4044691023 7.73s] inbound/vless[vless-in]: process connection from clientsIPAddress:49774: mux connection closed: read frame header: EOF


# Client side:


$ sudo sing-box -c 312266054-ru.json run
+0100 2025-03-01 12:49:02 INFO network: updated default interface wlp1s0, index 2
+0100 2025-03-01 12:49:02 INFO inbound/tun[tun-in]: started at tun0
+0100 2025-03-01 12:49:02 INFO sing-box started (0.11s)
+0100 2025-03-01 12:49:02 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:02 INFO [1249947585 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:49111
+0100 2025-03-01 12:49:02 INFO [1249947585 0ms] inbound/tun[tun-in]: inbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:02 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:02 INFO [100897467 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:44809
+0100 2025-03-01 12:49:02 INFO [100897467 0ms] inbound/tun[tun-in]: inbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:02 INFO [100897467 0ms] router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:02 INFO [1249947585 2ms] router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:02 DEBUG [1249947585 2ms] router: sniffed packet protocol: dns
+0100 2025-03-01 12:49:02 DEBUG [100897467 1ms] router: sniffed packet protocol: dns
+0100 2025-03-01 12:49:02 INFO [1249947585 2ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:02 INFO [1249947585 2ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:02 INFO [100897467 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:02 INFO [100897467 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:02 INFO router: found process path: /usr/sbin/NetworkManager
+0100 2025-03-01 12:49:02 INFO router: found process path: /usr/sbin/NetworkManager
+0100 2025-03-01 12:49:03 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:03 INFO [4073258025 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:37166
+0100 2025-03-01 12:49:03 INFO [4073258025 0ms] inbound/tun[tun-in]: inbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:03 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:03 INFO [2845622065 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:38719
+0100 2025-03-01 12:49:03 INFO [2845622065 0ms] inbound/tun[tun-in]: inbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:03 INFO [4073258025 0ms] router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:03 DEBUG [4073258025 0ms] router: sniffed packet protocol: dns
+0100 2025-03-01 12:49:03 INFO [4073258025 0ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:03 INFO [4073258025 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:03 INFO [2845622065 0ms] router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:03 DEBUG [2845622065 1ms] router: sniffed packet protocol: dns
+0100 2025-03-01 12:49:03 INFO [2845622065 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:03 INFO [2845622065 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:08 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:08 INFO [3767976332 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:57579
+0100 2025-03-01 12:49:08 INFO [3767976332 0ms] inbound/tun[tun-in]: inbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:08 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:08 INFO [1587198165 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:41191
+0100 2025-03-01 12:49:08 INFO [1587198165 0ms] inbound/tun[tun-in]: inbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:08 INFO [3767976332 1ms] router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:08 DEBUG [3767976332 1ms] router: sniffed packet protocol: dns
+0100 2025-03-01 12:49:08 INFO [3767976332 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:08 INFO [3767976332 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:08 INFO [1587198165 0ms] router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:08 DEBUG [1587198165 0ms] router: sniffed packet protocol: dns
+0100 2025-03-01 12:49:08 INFO [1587198165 0ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:08 INFO [1587198165 0ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:12 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:12 INFO [3309572347 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:33657
+0100 2025-03-01 12:49:12 INFO [3309572347 0ms] inbound/tun[tun-in]: inbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:12 INFO [3309572347 0ms] router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:12 DEBUG [3309572347 1ms] router: sniffed packet protocol: dns
+0100 2025-03-01 12:49:12 INFO [3309572347 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:12 INFO [3309572347 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:13 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:16 INFO router: failed to search process: netlink message: NLMSG_ERROR
+0100 2025-03-01 12:49:16 INFO [2766410087 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:22000
+0100 2025-03-01 12:49:16 INFO [2766410087 0ms] inbound/tun[tun-in]: inbound packet connection to 79.117.225.181:22000
+0100 2025-03-01 12:49:16 INFO [2766410087 0ms] router: failed to search process: netlink message: NLMSG_ERROR
+0100 2025-03-01 12:49:16 DEBUG [2766410087 0ms] router: sniffed packet protocol: quic, client: quic-go
+0100 2025-03-01 12:49:16 INFO [2766410087 0ms] outbound/vless[proxy]: outbound packet connection to 79.117.225.181:22000
+0100 2025-03-01 12:49:16 INFO [2766410087 0ms] outbound/vless[proxy]: outbound packet connection to 79.117.225.181:22000
+0100 2025-03-01 12:49:23 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 INFO [755799694 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:38676
+0100 2025-03-01 12:49:33 INFO [755799694 0ms] inbound/tun[tun-in]: inbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 INFO [2832194321 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:37497
+0100 2025-03-01 12:49:33 INFO [2832194321 0ms] inbound/tun[tun-in]: inbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [755799694 1ms] router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 DEBUG [755799694 1ms] router: sniffed packet protocol: dns
+0100 2025-03-01 12:49:33 INFO [755799694 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [755799694 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 INFO [2832194321 1ms] router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 DEBUG [2832194321 1ms] router: sniffed packet protocol: dns
+0100 2025-03-01 12:49:33 INFO [3346717560 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:58365
+0100 2025-03-01 12:49:33 INFO [3346717560 0ms] inbound/tun[tun-in]: inbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [2832194321 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [2832194321 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 INFO [4005972282 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:55238
+0100 2025-03-01 12:49:33 INFO [4005972282 0ms] inbound/tun[tun-in]: inbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [3346717560 3ms] router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 DEBUG [3346717560 3ms] router: sniffed packet protocol: dns
+0100 2025-03-01 12:49:33 INFO [3346717560 3ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [3346717560 3ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 INFO [4005972282 1ms] router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 DEBUG [4005972282 2ms] router: sniffed packet protocol: dns
+0100 2025-03-01 12:49:33 INFO [4005972282 2ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [4005972282 2ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [81600860 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:50289
+0100 2025-03-01 12:49:33 INFO [81600860 0ms] inbound/tun[tun-in]: inbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 INFO [81600860 0ms] router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 INFO [2292156013 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:42767
+0100 2025-03-01 12:49:33 INFO [2292156013 0ms] inbound/tun[tun-in]: inbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 DEBUG [81600860 0ms] router: sniffed packet protocol: dns
+0100 2025-03-01 12:49:33 INFO [81600860 0ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [81600860 0ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 INFO [2292156013 1ms] router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 INFO [902425416 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:45532
+0100 2025-03-01 12:49:33 INFO [902425416 0ms] inbound/tun[tun-in]: inbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 DEBUG [2292156013 1ms] router: sniffed packet protocol: dns
+0100 2025-03-01 12:49:33 INFO [2292156013 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [2292156013 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [902425416 2ms] router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 DEBUG [902425416 2ms] router: sniffed packet protocol: dns
+0100 2025-03-01 12:49:33 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 INFO [902425416 2ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [902425416 2ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [2898169231 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:33450
+0100 2025-03-01 12:49:33 INFO [2898169231 0ms] inbound/tun[tun-in]: inbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 INFO [2898169231 1ms] router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 DEBUG [2898169231 1ms] router: sniffed packet protocol: dns
+0100 2025-03-01 12:49:33 INFO [2898169231 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [2898169231 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [3538689228 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:39861
+0100 2025-03-01 12:49:33 INFO [3538689228 0ms] inbound/tun[tun-in]: inbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 INFO [1642673897 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:40379
+0100 2025-03-01 12:49:33 INFO [1642673897 0ms] inbound/tun[tun-in]: inbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [3538689228 0ms] router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 DEBUG [3538689228 1ms] router: sniffed packet protocol: dns
+0100 2025-03-01 12:49:33 INFO [3538689228 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [3538689228 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 INFO [1642673897 1ms] router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 DEBUG [1642673897 1ms] router: sniffed packet protocol: dns
+0100 2025-03-01 12:49:33 INFO [1642673897 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [1642673897 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [3593110362 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:41270
+0100 2025-03-01 12:49:33 INFO [3593110362 0ms] inbound/tun[tun-in]: inbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 INFO [3593110362 1ms] router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 DEBUG [3593110362 1ms] router: sniffed packet protocol: dns
+0100 2025-03-01 12:49:33 INFO [3593110362 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [3593110362 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [1901730380 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:55324
+0100 2025-03-01 12:49:33 INFO [1901730380 0ms] inbound/tun[tun-in]: inbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 INFO [73233764 0ms] inbound/tun[tun-in]: inbound packet connection from 172.16.0.1:42307
+0100 2025-03-01 12:49:33 INFO [73233764 0ms] inbound/tun[tun-in]: inbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [1901730380 1ms] router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 DEBUG [1901730380 1ms] router: sniffed packet protocol: dns
+0100 2025-03-01 12:49:33 INFO [1901730380 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [1901730380 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [73233764 0ms] router: found process path: /usr/lib/systemd/systemd-resolved
+0100 2025-03-01 12:49:33 DEBUG [73233764 1ms] router: sniffed packet protocol: dns
+0100 2025-03-01 12:49:33 INFO [73233764 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:33 INFO [73233764 1ms] outbound/vless[proxy]: outbound packet connection to 172.16.0.2:53
+0100 2025-03-01 12:49:36 INFO router: failed to search process: netlink message: NLMSG_ERROR
+0100 2025-03-01 12:49:38 INFO router: found process path: /usr/lib/systemd/systemd-resolved

< Ctrl + C here >

Supporter

Integrity requirements

  • I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
  • I confirm that I have provided the server and client configuration files and process that can be reproduced locally, instead of a complicated client configuration file that has been stripped of sensitive data.
  • I confirm that I have provided the simplest configuration that can be used to reproduce the error I reported, instead of depending on remote servers, TUN, graphical interface clients, or other closed-source software.
  • I confirm that I have provided the complete configuration files and logs, rather than just providing parts I think are useful out of confidence in my own intelligence.
@alexander-potemkin
Copy link
Author

And, yeah, docker-compose.yml, just in case:

version: "3.8"
services:
  sing-box:
    image: ghcr.io/sagernet/sing-box:v1.11.4
    container_name: sing-box
    restart: unless-stopped
    volumes:
      - ./sing-box:/etc/sing-box/
    command: -D /var/lib/sing-box -C /etc/sing-box/ run -c /etc/sing-box/reality.json
    network_mode: "host"

@alexander-potemkin
Copy link
Author

Don't mean to spam, just trying to troubleshoot things on my own.

I've also tried to:

  • run 3rd party client with vless:// URL schema against sing server and everything was working just fine
  • run sing-box's server process without Docker - got the very same result
  • sun sing-box as a client against xray server - it didn't work as well, hope the xray's server's log might be of use though:
Mar 01 16:19:22 vless xray[11132]: 2025/03/01 16:19:22.027495 [Info] [3371043928] app/proxyman/inbound: connection ends > proxy/vless/inbound: connection ends > proxy/vless/inbound: failed to transfer response payload > io: read/write on closed pipe
Mar 01 16:19:29 vless xray[11132]: 2025/03/01 16:19:29.434702 [Info] [801933548] app/proxyman/inbound: connection ends > proxy/vless/inbound: connection ends > context canceled

So, I guess the problem is narrowed down to my client config, but I'm running out of guesses.

Routing to the servers, like 1.1.1.1 is in place through tun0 (verified with ip route get 1.1.1.1), ping seems to work to 1.1.1.1 (but I'm not sure which route it uses, as tracepath is useless here) and nc -vv 1.1.1.1 443 is silent - like connection get dropped of /dev/null-ed somehow.

Any help, if possible, would be much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant