[GH-ISSUE #5813] [Feature]: For freedom creation #4039

Open
opened 2026-10-31 20:36:43 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @adisubagja on GitHub (Jul 5, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5813

Fallbacks become available once Security is set to TLS or Reality on the Security tab (VLESS/Trojan over RAW only).

This makes it difficult for me to be creative freely, because of my country's regulations regarding freedom on port 80.

Describe the solution you'd like

I need fallback for non tls / security None

Alternatives you've considered

No response

Concrete use case

No response

Mockups, screenshots, or examples

Image

Which parts of the panel would this affect?

Xray config generation

Are you willing to help?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
Originally created by @adisubagja on GitHub (Jul 5, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5813 ### Is your feature request related to a problem? **Fallbacks become available once Security is set to TLS or Reality on the Security tab (VLESS/Trojan over RAW only).** This makes it difficult for me to be creative freely, because of my country's regulations regarding freedom on port 80. ### Describe the solution you'd like I need fallback for non tls / security None ### Alternatives you've considered _No response_ ### Concrete use case _No response_ ### Mockups, screenshots, or examples <img width="1592" height="502" alt="Image" src="https://github.com/user-attachments/assets/22baa801-cd9a-4333-be3b-9c6306e9715a" /> ### Which parts of the panel would this affect? Xray config generation ### Are you willing to help? - [ ] I'd like to implement this feature myself and open a PR. - [ ] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
Author
Owner

@github-actions[bot] commented on GitHub (Jul 5, 2026):

This is a real, current limitation in 3x-ui, not a bug — fallbacks are only wired up for VLESS/Trojan inbounds on raw TCP with security: tls or security: reality. It's enforced in two places, both client- and server-side:

  • Frontend — frontend/src/pages/inbounds/form/InboundFormModal.tsx:238-241. The Fallbacks card is only rendered when isFallbackHost is true (protocol is VLESS/Trojan, network === 'tcp', and security is tls or reality). With security: none you get the informational alert you screenshotted instead (pages.inbounds.fallbacks.needsTls, internal/web/translation/en-US.json:307).
  • Backend — internal/web/service/inbound_protocol.go:86-119 (inboundCanHostFallbacks / streamSupportsFallbacks), called from internal/web/service/xray.go:244 at the point the panel assembles the actual Xray config. This is a hard server-side gate: even if you add a fallbacks array by hand to a security: none inbound via the API, it is stripped out before it reaches Xray.

The code comment on inboundCanHostFallbacks states this is intentional — fallbacks are treated as a raw-TCP + TLS/Reality-only feature in 3x-ui's config generation, stricter than what's required to enable the VLESS XTLS flow. It is not a config toggle; relaxing it for security: none would require a code change.

This has been requested before: #129 ("Add fallbacks without TLS/xTLS enabled", 2023) and more recently #5439, which has a fuller technical writeup of why 3x-ui ties fallbacks to TLS/Reality on raw TCP. Both remain closed, and per the current source cited above, the restriction is still in place.

Workaround for a port-80 / no-TLS setup: put a reverse proxy (nginx, Caddy, HAProxy) in front of the port instead of relying on the panel's fallbacks field. Terminate the connection there and forward only the recognizable proxy traffic to your Xray inbound (still security: none) on a local port, letting the reverse proxy serve a normal-looking site or handle everything else. That isn't overwritten by panel saves and gives fallback-like camouflage on plain TCP without depending on Xray's native fallbacks array.

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

<!-- gh-comment-id:4885806062 --> @github-actions[bot] commented on GitHub (Jul 5, 2026): This is a real, current limitation in 3x-ui, not a bug — fallbacks are only wired up for VLESS/Trojan inbounds on raw TCP with `security: tls` or `security: reality`. It's enforced in two places, both client- and server-side: - **Frontend** — `frontend/src/pages/inbounds/form/InboundFormModal.tsx:238-241`. The Fallbacks card is only rendered when `isFallbackHost` is true (`protocol` is VLESS/Trojan, `network === 'tcp'`, and `security` is `tls` or `reality`). With `security: none` you get the informational alert you screenshotted instead (`pages.inbounds.fallbacks.needsTls`, `internal/web/translation/en-US.json:307`). - **Backend** — `internal/web/service/inbound_protocol.go:86-119` (`inboundCanHostFallbacks` / `streamSupportsFallbacks`), called from `internal/web/service/xray.go:244` at the point the panel assembles the actual Xray config. This is a hard server-side gate: even if you add a `fallbacks` array by hand to a `security: none` inbound via the API, it is stripped out before it reaches Xray. The code comment on `inboundCanHostFallbacks` states this is intentional — fallbacks are treated as a raw-TCP + TLS/Reality-only feature in 3x-ui's config generation, stricter than what's required to enable the VLESS XTLS flow. It is not a config toggle; relaxing it for `security: none` would require a code change. This has been requested before: #129 ("Add fallbacks without TLS/xTLS enabled", 2023) and more recently #5439, which has a fuller technical writeup of why 3x-ui ties `fallbacks` to TLS/Reality on raw TCP. Both remain closed, and per the current source cited above, the restriction is still in place. Workaround for a port-80 / no-TLS setup: put a reverse proxy (nginx, Caddy, HAProxy) in front of the port instead of relying on the panel's `fallbacks` field. Terminate the connection there and forward only the recognizable proxy traffic to your Xray inbound (still `security: none`) on a local port, letting the reverse proxy serve a normal-looking site or handle everything else. That isn't overwritten by panel saves and gives fallback-like camouflage on plain TCP without depending on Xray's native `fallbacks` array. *This reply was generated automatically; a maintainer may follow up.*
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#4039
No description provided.