[GH-ISSUE #5850] [Feature]: fullback #4065

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

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

Hi, to use fullback, there must be a tls or reality configuration, but I want to use port 80 without tls and reality as fullback for several inbounds. If it is not possible to set up fullback without tls, it is practically impossible to use cloud containers that only have access to port 80, or you have to get a dedicated IP and pay more, which is not cost-effective. Please restore the ability to set up fullback for inbounds without tls.

Describe the solution you'd like

Just put it back the way it was before.

Alternatives you've considered

No response

Concrete use case

No response

Mockups, screenshots, or examples

No response

Which parts of the panel would this affect?

No response

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 @m0rteza1 on GitHub (Jul 7, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5850 ### Is your feature request related to a problem? Hi, to use fullback, there must be a tls or reality configuration, but I want to use port 80 without tls and reality as fullback for several inbounds. If it is not possible to set up fullback without tls, it is practically impossible to use cloud containers that only have access to port 80, or you have to get a dedicated IP and pay more, which is not cost-effective. Please restore the ability to set up fullback for inbounds without tls. ### Describe the solution you'd like Just put it back the way it was before. ### Alternatives you've considered _No response_ ### Concrete use case _No response_ ### Mockups, screenshots, or examples _No response_ ### Which parts of the panel would this affect? _No response_ ### 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 7, 2026):

Confirmed: this is a deliberate restriction in the current codebase, not a bug, and there is prior history to it.

Where it's enforced

  • Frontend: frontend/src/pages/inbounds/form/InboundFormModal.tsx:238-241 only renders the Fallbacks card when isFallbackHost is true, defined as (protocol === VLESS || TROJAN) && network === 'tcp' && (security === 'tls' || security === 'reality'). Otherwise it shows an inline alert (pages.inbounds.fallbacks.needsTls): "Fallbacks become available once Security is set to TLS or Reality on the Security tab (VLESS/Trojan over RAW only)."
  • Backend: internal/web/service/inbound_protocol.go, inboundCanHostFallbacks / streamSupportsFallbacks (same three conditions) gate whether settings.fallbacks is even written into the Xray config at generation time (internal/web/service/xray.go:244). So even bypassing the UI would not get a plain-TCP, no-security inbound a working fallback in the current version — the panel omits the key when building the config it hands to Xray-core.
  • The maintainer confirmed this is intentional in #5014: "Fallbacks are only valid for VLESS/Trojan over RAW with TLS or Reality security... The form now shows an inline hint explaining that the Fallbacks section unlocks once TLS or Reality is selected."

On "put it back the way it was"
There is precedent for this request: issue #129 ("Add fallbacks without TLS/xTLS enabled") was closed as completed back in 2023, so earlier versions of 3x-ui did allow configuring fallbacks on a plain, non-TLS inbound. The current TLS/Reality-only gate was added later as part of the dedicated Fallbacks UI/DB feature.

Worth noting on the Xray-core side
This restriction is a 3x-ui product decision, not something Xray-core itself requires. In the vendored github.com/xtls/xray-core source for the VLESS and Trojan inbound handlers (proxy/vless/inbound/inbound.go, proxy/trojan/server.go), the fallback trigger works directly off the raw connection: it only pulls SNI/ALPN when the connection happens to be a *tls.Conn or *reality.Conn; otherwise name/alpn stay empty and it falls through to the default (unnamed) fallback entry. In other words, Xray-core's fallbacks array does function on a plain TCP inbound with security: none — the requirement here is enforced by 3x-ui, not by upstream.

This reads as a legitimate feature request to loosen inboundCanHostFallbacks / isFallbackHost to also allow security === 'none' on raw TCP for VLESS/Trojan, rather than a defect. Whether and when to make that change is the maintainer's call, not something that can be promised here, but the technical basis for the request holds up.

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

<!-- gh-comment-id:4904061872 --> @github-actions[bot] commented on GitHub (Jul 7, 2026): Confirmed: this is a deliberate restriction in the current codebase, not a bug, and there is prior history to it. **Where it's enforced** - Frontend: `frontend/src/pages/inbounds/form/InboundFormModal.tsx:238-241` only renders the Fallbacks card when `isFallbackHost` is true, defined as `(protocol === VLESS || TROJAN) && network === 'tcp' && (security === 'tls' || security === 'reality')`. Otherwise it shows an inline alert (`pages.inbounds.fallbacks.needsTls`): "Fallbacks become available once Security is set to TLS or Reality on the Security tab (VLESS/Trojan over RAW only)." - Backend: `internal/web/service/inbound_protocol.go`, `inboundCanHostFallbacks` / `streamSupportsFallbacks` (same three conditions) gate whether `settings.fallbacks` is even written into the Xray config at generation time (`internal/web/service/xray.go:244`). So even bypassing the UI would not get a plain-TCP, no-security inbound a working fallback in the current version — the panel omits the key when building the config it hands to Xray-core. - The maintainer confirmed this is intentional in #5014: "Fallbacks are only valid for VLESS/Trojan over RAW with TLS or Reality security... The form now shows an inline hint explaining that the Fallbacks section unlocks once TLS or Reality is selected." **On "put it back the way it was"** There is precedent for this request: issue #129 ("Add fallbacks without TLS/xTLS enabled") was closed as completed back in 2023, so earlier versions of 3x-ui did allow configuring fallbacks on a plain, non-TLS inbound. The current TLS/Reality-only gate was added later as part of the dedicated Fallbacks UI/DB feature. **Worth noting on the Xray-core side** This restriction is a 3x-ui product decision, not something Xray-core itself requires. In the vendored `github.com/xtls/xray-core` source for the VLESS and Trojan inbound handlers (`proxy/vless/inbound/inbound.go`, `proxy/trojan/server.go`), the fallback trigger works directly off the raw connection: it only pulls SNI/ALPN when the connection happens to be a `*tls.Conn` or `*reality.Conn`; otherwise `name`/`alpn` stay empty and it falls through to the default (unnamed) fallback entry. In other words, Xray-core's `fallbacks` array does function on a plain TCP inbound with `security: none` — the requirement here is enforced by 3x-ui, not by upstream. This reads as a legitimate feature request to loosen `inboundCanHostFallbacks` / `isFallbackHost` to also allow `security === 'none'` on raw TCP for VLESS/Trojan, rather than a defect. Whether and when to make that change is the maintainer's call, not something that can be promised here, but the technical basis for the request holds up. *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#4065
No description provided.