Skip to content

25.9.5版本的反向代理无法正常使用 #5088

@kmzs123

Description

@kmzs123

完整性要求

  • 我读完了 issue 模板中的所有注释,确保填写符合要求。
  • 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • 我提供了完整的配置文件和日志,而不是出于自己的判断只给出截取的部分。
  • 我搜索了 issues, 没有发现已提出的类似问题。
  • 问题在 Release 最新的版本上可以成功复现

描述

25.9.5版本更新后之前正常使用的反向代理无法正常使用了,我用相同的配置文件测试了25.8.31版本是正常的

重现方式

在25.9.5版本使用反向代理Reverse即可重现

客户端配置

Details

{
	"log": {
		"access": "log",
		"error": "log",
		"loglevel": "debug",
		"dnsLog": true
	},
	"outbounds": [{
            "protocol": "freedom",
            "tag": "out"
        }, {
		"tag": "interconn",
		"protocol": "vless",
		"settings": {
			"vnext": [{
				"address": "127.0.0.1",
				"port": 1080,
				"users": [{
					"id": "05f760f7-7543-4089-bcf2-e83e8edaa723",
					"encryption": "none"
				}]
			}]
		},
		"streamSettings": {
			"network": "xhttp",
			"xhttpSettings": {
				"path": "/hello/"
			},
			"security": "reality",
			"realitySettings": {
				"show": false,
				"fingerprint": "chrome",
				"serverName": "newtrackon.com",
				"password": "yLGiEn5Zy8NyEdBDzwJ1PIJjy3bmoQufi_6NxcZ0tg4",
				"shortId": "eb11bd7f06860756",
				"spiderX": "/world"
			}
		}
	}],
	"reverse": {
		"bridges": [{
			"tag": "bridge",
			"domain": "reverse-proxy.xray.internal"
		}]
	},
	"routing": {
		"rules": [{
			"type": "field",
			"inboundTag": ["bridge"],
			"domain": ["full:reverse-proxy.xray.internal"],
			"outboundTag": "interconn"
		}, {
			"type": "field",
			"inboundTag": ["bridge"],
			"outboundTag": "out"
		}]
	}
}

服务端配置

Details

{
    "log": {
        "access": "log",
        "error": "log",
        "loglevel": "debug",
        "dnsLog": true
    },
    "inbounds": [
        {
            "tag": "external",
            "port": "1111,8888",
            "protocol": "tunnel",
            "settings": {
                "address": "127.0.0.1",
                "port": 5201,
                "portMap": {
                    "1111": "127.0.0.1:5201",
                    "8888": "192.168.15.20:5201"
                },
                "network": "tcp",
                "followRedirect": false
            },
            "sniffing": {
                "enabled": true,
                "destOverride": [
                    "http",
                    "tls",
                    "quic",
                    "fakedns",
                    "fakedns+others"
                ],
                "routeOnly": false
            }
        },
        {
            "tag": "interconn",
            "port": 1080,
            "protocol": "vless",
            "settings": {
                "clients": [
                    {
                        "id": "05f760f7-7543-4089-bcf2-e83e8edaa723"
                    }
                ],
                "decryption": "none"
            },
            "sniffing": {
                "enabled": false,
                "destOverride": [
                    "http",
                    "tls",
                    "quic",
                    "fakedns",
                    "fakedns+others"
                ],
                "routeOnly": false
            },
            "streamSettings": {
                "network": "xhttp",
                "xhttpSettings": {
                    "path": "/hello/"
                },
                "security": "reality",
                "realitySettings": {
                    "show": false,
                    "target": "www.bilibili.com:443",
                    "serverNames": [
                        "newtrackon.com"
                    ],
                    "privateKey": "aPIBnPB0_dm-KBMPU4fKcvQFr7EFYDPnL9S-LBPq9l0",
                    "shortIds": [
                        "eb11bd7f06860756"
                    ]
                }
            }
        }
    ],
    "reverse": {
        "portals": [
            {
                "tag": "portal",
                "domain": "reverse-proxy.xray.internal"
            }
        ]
    },
    "routing": {
        "rules": [
            {
                "type": "field",
                "inboundTag": [
                    "external",
                    "interconn"
                ],
                "outboundTag": "portal"
            }
        ]
    }
}

客户端日志

Details

2025/09/05 20:37:40.156536 [Debug] app/log: Logger started
2025/09/05 20:37:40.156536 [Debug] app/router: MphDomainMatcher is enabled for 1 domain rule(s)
2025/09/05 20:37:40.156536 [Warning] core: Xray 25.9.5 started
2025/09/05 20:37:40.156536 [Info] app/dispatcher: taking detour [interconn] for [tcp:reverse-proxy.xray.internal:0]
2025/09/05 20:37:40.156536 [Debug] transport/internet/splithttp: XMUX: creating xmuxClient because xmuxClients is empty
2025/09/05 20:37:40.157036 [Info] transport/internet/splithttp: XHTTP is dialing to tcp:127.0.0.1:1080, mode stream-one, HTTP version 2, host newtrackon.com
2025/09/05 20:37:40.157036 [Debug] transport/internet: dialing to tcp:127.0.0.1:1080
2025/09/05 20:37:40.189041 [Info] proxy/vless/outbound: tunneling request to tcp:reverse-proxy.xray.internal:0 via 127.0.0.1:1080
2025/09/05 20:37:42.156762 [Info] app/dispatcher: taking detour [interconn] for [tcp:reverse-proxy.xray.internal:0]
2025/09/05 20:37:42.156762 [Info] transport/internet/splithttp: XHTTP is dialing to tcp:127.0.0.1:1080, mode stream-one, HTTP version 2, host newtrackon.com
2025/09/05 20:37:42.156762 [Info] proxy/vless/outbound: tunneling request to tcp:reverse-proxy.xray.internal:0 via 127.0.0.1:1080
2025/09/05 20:37:44.156824 [Info] app/dispatcher: taking detour [interconn] for [tcp:reverse-proxy.xray.internal:0]
2025/09/05 20:37:44.156910 [Info] transport/internet/splithttp: XHTTP is dialing to tcp:127.0.0.1:1080, mode stream-one, HTTP version 2, host newtrackon.com
2025/09/05 20:37:44.156910 [Info] proxy/vless/outbound: tunneling request to tcp:reverse-proxy.xray.internal:0 via 127.0.0.1:1080
2025/09/05 20:37:46.156859 [Info] app/dispatcher: taking detour [interconn] for [tcp:reverse-proxy.xray.internal:0]
2025/09/05 20:37:46.156859 [Info] transport/internet/splithttp: XHTTP is dialing to tcp:127.0.0.1:1080, mode stream-one, HTTP version 2, host newtrackon.com
2025/09/05 20:37:46.156859 [Info] proxy/vless/outbound: tunneling request to tcp:reverse-proxy.xray.internal:0 via 127.0.0.1:1080
2025/09/05 20:37:48.156989 [Info] app/dispatcher: taking detour [interconn] for [tcp:reverse-proxy.xray.internal:0]
2025/09/05 20:37:48.156989 [Info] transport/internet/splithttp: XHTTP is dialing to tcp:127.0.0.1:1080, mode stream-one, HTTP version 2, host newtrackon.com
2025/09/05 20:37:48.156989 [Info] proxy/vless/outbound: tunneling request to tcp:reverse-proxy.xray.internal:0 via 127.0.0.1:1080

服务端日志

Details

2025/09/05 20:37:38.959616 [Debug] app/log: Logger started
2025/09/05 20:37:38.959616 [Debug] app/proxyman/inbound: creating stream worker on 0.0.0.0:1111
2025/09/05 20:37:38.959616 [Debug] app/proxyman/inbound: creating stream worker on 0.0.0.0:8888
2025/09/05 20:37:38.959616 [Debug] app/proxyman/inbound: creating stream worker on 0.0.0.0:1080
2025/09/05 20:37:38.960116 [Info] transport/internet/tcp: listening TCP on 0.0.0.0:1111
2025/09/05 20:37:38.960116 [Info] transport/internet/tcp: listening TCP on 0.0.0.0:8888
2025/09/05 20:37:38.960116 [Info] transport/internet/splithttp: listening TCP for XHTTP on 0.0.0.0:1080
2025/09/05 20:37:38.960616 [Warning] core: Xray 25.9.5 started
2025/09/05 20:37:40.689165 [Info] [1416466199] proxy/vless/inbound: firstLen = 50
2025/09/05 20:37:40.689165 from 127.0.0.1:5833 accepted tcp:reverse-proxy.xray.internal:0 [interconn -> portal]
2025/09/05 20:37:40.689165 [Info] [1416466199] proxy/vless/inbound: received request for tcp:reverse-proxy.xray.internal:0
2025/09/05 20:37:40.689165 [Info] [1416466199] app/dispatcher: taking detour [portal] for [tcp:reverse-proxy.xray.internal:0]
2025/09/05 20:37:40.689666 [Info] common/mux: failed to read metadata > stream error: stream ID 1; NO_ERROR
2025/09/05 20:37:40.689666 [Info] common/mux: dispatching request to udp:reverse.internal.v2fly.org:0
2025/09/05 20:37:40.689666 [Info] common/mux: failed to write first payload > io: read/write on closed pipe
2025/09/05 20:37:42.657680 [Info] [4178010866] proxy/vless/inbound: firstLen = 50
2025/09/05 20:37:42.657680 from 127.0.0.1:5833 accepted tcp:reverse-proxy.xray.internal:0 [interconn -> portal]
2025/09/05 20:37:42.657680 [Info] [4178010866] proxy/vless/inbound: received request for tcp:reverse-proxy.xray.internal:0
2025/09/05 20:37:42.657680 [Info] [4178010866] app/dispatcher: taking detour [portal] for [tcp:reverse-proxy.xray.internal:0]
2025/09/05 20:37:42.657680 [Info] common/mux: dispatching request to udp:reverse.internal.v2fly.org:0
2025/09/05 20:37:42.657680 [Info] common/mux: failed to read metadata > stream error: stream ID 3; NO_ERROR
2025/09/05 20:37:42.657680 [Info] common/mux: failed to write first payload > io: read/write on closed pipe
2025/09/05 20:37:44.237338 [Debug] [266389270] proxy/dokodemo: processing connection from: 127.0.0.1:5835
2025/09/05 20:37:44.237338 [Info] [266389270] proxy/dokodemo: received request for 127.0.0.1:5835
2025/09/05 20:37:44.269345 from 127.0.0.1:5835 accepted tcp:127.0.0.1:5201 [external -> portal]
2025/09/05 20:37:44.269345 [Info] [266389270] app/dispatcher: taking detour [portal] for [tcp:127.0.0.1:5201]
2025/09/05 20:37:44.269844 [Info] [266389270] app/reverse: failed to process reverse connection > app/reverse: no mux client worker available
2025/09/05 20:37:44.657216 [Info] [2935472491] proxy/vless/inbound: firstLen = 50
2025/09/05 20:37:44.657216 [Info] [2935472491] proxy/vless/inbound: received request for tcp:reverse-proxy.xray.internal:0
2025/09/05 20:37:44.657216 [Info] [2935472491] app/dispatcher: taking detour [portal] for [tcp:reverse-proxy.xray.internal:0]
2025/09/05 20:37:44.657216 from 127.0.0.1:5833 accepted tcp:reverse-proxy.xray.internal:0 [interconn -> portal]
2025/09/05 20:37:44.657216 [Info] common/mux: dispatching request to udp:reverse.internal.v2fly.org:0
2025/09/05 20:37:44.657216 [Info] common/mux: failed to read metadata > stream error: stream ID 5; NO_ERROR
2025/09/05 20:37:44.657216 [Info] common/mux: failed to write first payload > io: read/write on closed pipe
2025/09/05 20:37:46.657256 [Info] [322541687] proxy/vless/inbound: firstLen = 50
2025/09/05 20:37:46.657256 [Info] [322541687] proxy/vless/inbound: received request for tcp:reverse-proxy.xray.internal:0
2025/09/05 20:37:46.657256 [Info] [322541687] app/dispatcher: taking detour [portal] for [tcp:reverse-proxy.xray.internal:0]
2025/09/05 20:37:46.657256 from 127.0.0.1:5833 accepted tcp:reverse-proxy.xray.internal:0 [interconn -> portal]
2025/09/05 20:37:46.657256 [Info] common/mux: dispatching request to udp:reverse.internal.v2fly.org:0
2025/09/05 20:37:46.657256 [Info] common/mux: failed to write first payload > io: read/write on closed pipe
2025/09/05 20:37:46.657256 [Info] common/mux: failed to read metadata > stream error: stream ID 7; NO_ERROR
2025/09/05 20:37:48.657479 [Info] [3001867588] proxy/vless/inbound: firstLen = 50
2025/09/05 20:37:48.657479 from 127.0.0.1:5833 accepted tcp:reverse-proxy.xray.internal:0 [interconn -> portal]
2025/09/05 20:37:48.657479 [Info] [3001867588] proxy/vless/inbound: received request for tcp:reverse-proxy.xray.internal:0
2025/09/05 20:37:48.657479 [Info] [3001867588] app/dispatcher: taking detour [portal] for [tcp:reverse-proxy.xray.internal:0]
2025/09/05 20:37:48.657479 [Info] common/mux: dispatching request to udp:reverse.internal.v2fly.org:0
2025/09/05 20:37:48.657479 [Info] common/mux: failed to write first payload > io: read/write on closed pipe
2025/09/05 20:37:48.657479 [Info] common/mux: failed to read metadata > stream error: stream ID 9; NO_ERROR
2025/09/05 20:37:48.753495 [Debug] app/log: Logger closing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions