mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4290] Feature request: Add "Accept Proxy Protocol" toggle for XHTTP transport in UI #2929
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#2929
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @w3struk on GitHub (May 12, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4290
Is your feature request related to a problem?
Yes. When building advanced architectures, a common setup is having a "Frontend" Xray inbound (e.g., VLESS + TCP + XTLS-Vision on port 443) that terminates TLS and uses the
fallbacksrouting mechanism to send specific HTTP paths to a local "Backend" XHTTP inbound.To preserve the real client IPs, the Frontend fallback is configured with
xver: 1orxver: 2(PROXY protocol). However, the 3x-ui panel does not have an "Accept Proxy Protocol" toggle for the XHTTP transport. Because of this, the XHTTP backend cannot accept the connection, or ifxveris omitted, all clients appear to connect from127.0.0.1. This breaks IP tracking, connection limits, and makes the built-in Fail2Ban feature completely ineffective for XHTTP inbounds behind a fallback.Describe the solution you'd like
I would like an "Accept Proxy Protocol" toggle switch added to the UI in the Inbound settings when the XHTTP network is selected (similar to how it currently exists for TCP, WS, and HTTPUpgrade transports).
When this toggle is enabled in the UI, it should add
"acceptProxyProtocol": trueto thesockoptobject inside thestreamSettingsfor that inbound in the generated Xray JSON config. Xray-core already fully supports this.Example of the expected Xray config generation:
Describe alternatives you've considered
No response
Checklist