[GH-ISSUE #5641] [Question]: configs' incompatibility #3928

Closed
opened 2026-10-31 20:35:58 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @RezaHaghgoo on GitHub (Jun 28, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5641

What are you trying to do?

I have created a tuunel:
Protocol: Tunnel
Port: any port users will connect to (e.g. 443)
In Settings, set Rewrite Address to your foreign server's IP/domain and Rewrite Port to the port your foreign server's VLESS inbound listens on.
my client configs are vless+WS+TLS.
How can I fix the issue of configuration incompatibility when connecting to different internet operators?

What have you already tried?

No response

3x-ui version

3.3.0

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 24

Screenshots or config snippets

No response

Before submitting

  • I read the Wiki and searched existing issues.
  • This is a usage question, not a bug report.
  • This question is written in English.
Originally created by @RezaHaghgoo on GitHub (Jun 28, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5641 ### What are you trying to do? I have created a tuunel: Protocol: Tunnel Port: any port users will connect to (e.g. 443) In Settings, set Rewrite Address to your foreign server's IP/domain and Rewrite Port to the port your foreign server's VLESS inbound listens on. my client configs are vless+WS+TLS. How can I fix the issue of configuration incompatibility when connecting to different internet operators? ### What have you already tried? _No response_ ### 3x-ui version 3.3.0 ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 24 ### Screenshots or config snippets _No response_ ### Before submitting - [x] I read the [Wiki](https://github.com/MHSanaei/3x-ui/wiki) and searched [existing issues](../issues?q=is%3Aissue). - [x] This is a usage question, not a bug report. - [x] This question is written in English.
Author
Owner

@github-actions[bot] commented on GitHub (Jun 28, 2026):

Your setup is architecturally valid: the Tunnel (Dokodemo-door) inbound acts as a raw TCP forwarder — it does not terminate TLS or WebSocket. When a client connects with its VLESS+WS+TLS configuration, the tunnel receives the raw TCP byte stream and forwards it intact to your foreign server's IP:port. TLS is negotiated end-to-end between the client and the foreign server; the tunnel server is transparent at the protocol level. This is confirmed in frontend/src/schemas/protocols/inbound/tunnel.ts and internal/database/model/model.go.

"Configuration incompatibility when connecting to different internet operators" is too vague to diagnose specifically. The fix depends entirely on the failure mode, which varies by cause:

Likely cause Symptom Mitigation in Xray
Foreign server IP blocked by some operators Connection times out or is reset on some networks, works on others Route through a CDN (e.g. Cloudflare) so clients connect to a CDN IP instead of your server IP directly
Outbound port blocked Timeout specifically on the port your tunnel/foreign inbound uses Try a different port (e.g. 80, 8080, 8443)
TLS fingerprint / DPI inspection Connection resets during TLS handshake on some networks Use uTLS fingerprinting on the VLESS inbound — configurable in the TLS security settings of the inbound (options: chrome, firefox, safari, random, randomized, etc., per frontend/src/schemas/protocols/security/tls.ts)
WebSocket traffic pattern detection Connection drops after WS upgrade on some networks Switch transport to xhttp or grpc, which have different DPI-resistance characteristics
TLS SNI leakage ISP sees the SNI in the ClientHello and blocks it Use REALITY security instead of TLS on the foreign VLESS inbound (no SNI exposure)

To give a specific recommendation, the following information is needed:

  1. What error do clients see when the connection fails — connection refused, timeout, TLS handshake error, or something else?
  2. Which operators or network types fail vs. succeed (e.g. mobile data vs. fixed broadband, specific carrier names)?
  3. Is the foreign server's IP directly reachable from the failing operators (test with curl -v https://<foreign-server-ip>:<port> from a device on that operator's network)?
  4. Does the failure occur at connection time or after some traffic has flowed?
  5. Are sniffing and any routing/outbound rules configured on the foreign server that could affect traffic from specific source IPs?

Without answers to the above, it is not possible to determine which layer is causing the operator-specific failure.

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:4826925071 --> @github-actions[bot] commented on GitHub (Jun 28, 2026): Your setup is architecturally valid: the Tunnel (Dokodemo-door) inbound acts as a raw TCP forwarder — it does not terminate TLS or WebSocket. When a client connects with its VLESS+WS+TLS configuration, the tunnel receives the raw TCP byte stream and forwards it intact to your foreign server's IP:port. TLS is negotiated end-to-end between the client and the foreign server; the tunnel server is transparent at the protocol level. This is confirmed in `frontend/src/schemas/protocols/inbound/tunnel.ts` and `internal/database/model/model.go`. "Configuration incompatibility when connecting to different internet operators" is too vague to diagnose specifically. The fix depends entirely on the failure mode, which varies by cause: | Likely cause | Symptom | Mitigation in Xray | |---|---|---| | Foreign server IP blocked by some operators | Connection times out or is reset on some networks, works on others | Route through a CDN (e.g. Cloudflare) so clients connect to a CDN IP instead of your server IP directly | | Outbound port blocked | Timeout specifically on the port your tunnel/foreign inbound uses | Try a different port (e.g. 80, 8080, 8443) | | TLS fingerprint / DPI inspection | Connection resets during TLS handshake on some networks | Use uTLS fingerprinting on the VLESS inbound — configurable in the TLS security settings of the inbound (options: `chrome`, `firefox`, `safari`, `random`, `randomized`, etc., per `frontend/src/schemas/protocols/security/tls.ts`) | | WebSocket traffic pattern detection | Connection drops after WS upgrade on some networks | Switch transport to `xhttp` or `grpc`, which have different DPI-resistance characteristics | | TLS SNI leakage | ISP sees the SNI in the ClientHello and blocks it | Use REALITY security instead of TLS on the foreign VLESS inbound (no SNI exposure) | To give a specific recommendation, the following information is needed: 1. What error do clients see when the connection fails — connection refused, timeout, TLS handshake error, or something else? 2. Which operators or network types fail vs. succeed (e.g. mobile data vs. fixed broadband, specific carrier names)? 3. Is the foreign server's IP directly reachable from the failing operators (test with `curl -v https://<foreign-server-ip>:<port>` from a device on that operator's network)? 4. Does the failure occur at connection time or after some traffic has flowed? 5. Are sniffing and any routing/outbound rules configured on the foreign server that could affect traffic from specific source IPs? Without answers to the above, it is not possible to determine which layer is causing the operator-specific failure. *This reply was generated automatically; a maintainer may follow up.*
bsakaguchi changed title from [GH-ISSUE #5641] [Question]: configs' incompatibility to [GH-ISSUE #5641] [Question]: configs' incompatibility 2026-11-07 20:38:21 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3928
No description provided.