Xray-core icon indicating copy to clipboard operation
Xray-core copied to clipboard

Vless reverse fail

Open mshahr1 opened this issue 6 months ago • 10 comments

In latest release (v26.6.1) reverse-out on outbound side fail to dial to reverse-in inbound.

I have downgraded reverse-out side to v26.4.25 and everything works fine again.

Please note that I didn't change config file in both versions.

mshahr1 avatar Jun 01 '26 11:06 mshahr1

https://xtls.github.io/en/config/outbounds/freedom.html#finalruleobject

Meo597 avatar Jun 01 '26 11:06 Meo597

I add an outbound for reverse-out as following

{ "tag": "output", "protocol": "freedom", "settings": { "domainStrategy": "AsIs", "finalRules": [ { "action": "allow", "network": "tcp,udp" } ] } }

nothing changed.

mshahr1 avatar Jun 01 '26 11:06 mshahr1

Provide the complete configuration according to the issue template

Meo597 avatar Jun 01 '26 12:06 Meo597

here you are,

{ "outbounds": [ { "tag": "direct", "protocol": "freedom", "settings": {} }, { "tag": "blocked", "protocol": "blackhole", "settings": {} }, { "tag": "vless@test", "protocol": "vless", "settings": { "address": "mysite", "port": 443, "id": "UIID", "flow": "", "encryption": "none", "reverse": { "tag": "reverse-ws" } }, "streamSettings": { "network": "ws", "security": "tls", "tlsSettings": { "serverName": "ws.mysite", "alpn": [ "h2", "http/1.1" ], "fingerprint": "chrome", "echConfigList": "", "verifyPeerCertByName": "", "pinnedPeerCertSha256": "" }, "wsSettings": { "path": "/", "host": "", "heartbeatPeriod": 0 } } }, { "tag": "output", "protocol": "freedom", "settings": { "domainStrategy": "AsIs", "finalRules": [ { "action": "allow", "network": "tcp,udp" } ] } } ], "routing": { "rules": [ { "type": "field", "inboundTag": [ "api" ], "outboundTag": "api" }, { "type": "field", "inboundTag": [ "reverse-ws" ], "outboundTag": "output" } ] } }

mshahr1 avatar Jun 01 '26 13:06 mshahr1

你应该提供双端完整配置 建议阅读 https://xtls.github.io/en/document/level-2/vless_reverse.html

Meo597 avatar Jun 01 '26 13:06 Meo597

I was followed your documents in my configuration.

mshahr1 avatar Jun 01 '26 13:06 mshahr1

你应该提供双端完整配置

Meo597 avatar Jun 01 '26 14:06 Meo597

my reverse-in side is:
{ "listen": "0.0.0.0", "port": 443, "protocol": "vless", "settings": { "clients": [

      {
        "email": "me",
        "id": "UIID",
        "reverse": {
          "tag": "reverse-ws-1"
        }
      }
    ],
    "decryption": "none"
  },
  "sniffing": {
    "destOverride": [
      "http",
      "tls",
      "quic",
      "fakedns"
    ],
    "enabled": false,
    "metadataOnly": false,
    "routeOnly": false
  },
  "streamSettings": {
    "network": "ws",
    "security": "tls",
    "tlsSettings": {
      "alpn": [
        "h2",
        "http/1.1"
      ],
      "certificates": [
        {
          "buildChain": false,
          "certificateFile": "crt",
          "keyFile": "crt.key",
          "oneTimeLoading": false,
          "usage": "encipherment"
        }
      ],
      "cipherSuites": "",
      "disableSystemRoot": false,
      "echServerKeys": "",
      "enableSessionResumption": false,
      "maxVersion": "1.3",
      "minVersion": "1.1",
      "rejectUnknownSni": false,
      "serverName": "mysite"
    },
    "wsSettings": {
      "acceptProxyProtocol": false,
      "headers": {},
      "heartbeatPeriod": 0,
      "host": "",
      "path": "/"
    }
  },
  "tag": "inbound-@@vless_cdn"
},

mshahr1 avatar Jun 01 '26 14:06 mshahr1

你应该提供双端完整配置

Meo597 avatar Jun 01 '26 14:06 Meo597

@patterniha do you have any solution for this issue? I was created a different freedom outbound with final rule set to allow, and bind it to reverse outbound in routing rule. nothing changed

mshahr1 avatar Jul 16 '26 10:07 mshahr1