mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5196] [Feature]: Enhance "External Proxy" features in Stream tab (Allow Insecure, Flow selection, and Protocol-specific settings) #3645
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#3645
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 @solidwar on GitHub (Jun 11, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5196
Is your feature request related to a problem?
Yes. Currently, when using the External Proxy feature under the Stream tab, it lacks crucial protocol-specific options. For instance:
When creating a config with TLS/Reality via an external proxy (e.g., configuring clean IPs on different ports like 443), the final generated subscription/config sets allowInsecure to false by default. Users have to manually change it to true on their clients to get it working, which defeats the purpose of an automated panel.
There is no option to set the flow (like xtls-rprx-vision) per proxy entry for Reality.
Advanced parameters like Padding Bytes for xhttp or custom settings for specific transports cannot be overridden per external proxy.
This heavily limits flexibility when managing multiple clean IPs or destination ports that require distinct structural configurations.
Describe the solution you'd like
I would like the External Proxy section to act as a fully customizable wrapper that gives us full control over the final generated outbound/config parameters. Specifically, please add:
An "Allow Insecure" (True/False) toggle switch for each proxy entry (especially when Force TLS is enabled) so the exported config comes pre-configured with allowInsecure: true.
A Flow dropdown/input selector inside each external proxy block for Reality configurations.
Support for transport-specific arguments (like Padding Bytes for xhttp, header modifications, etc.) directly inside each proxy item.
Full independent port and security mapping so that External Proxy takes higher priority and fully overwrites the main inbound settings upon config generation.
Alternatives you've considered
The only current workaround is creating multiple completely separate Inbounds for each clean IP/Port combination, or forcing end-users to manually edit their configuration string inside their clients (e.g., v2rayN, shadowrocket, Streisand) to toggle "Allow Insecure" or change flow settings, which is highly inefficient for large user bases.
Concrete use case
A admin wants to distribute a single inbound config but route it through multiple "Clean IPs".
Proxy # 1 goes through port 80 (No TLS).
Proxy # 2 goes through port 443 (Requires TLS and allowInsecure: true due to specific routing/CDN setups).
With this feature, the admin can add both under one Inbound, and the panel will correctly generate functional links for both scenarios without requiring manual client-side edits.
Mockups, screenshots, or examples
I have attached screenshots of the current UI. In the second image (External Proxy settings), you can see that we can set Address and Port, but we desperately need toggles for Allow Insecure, Flow, and advanced transport parameters inside each block
Which parts of the panel would this affect?
No response
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jun 11, 2026):
Thanks for the detailed write-up and mockups, @solidwar. I've traced the request through the current source to confirm what exists and what doesn't.
What the code confirms
External proxy schema (
frontend/src/schemas/protocols/stream/external-proxy.ts):Each
ExternalProxyEntrycurrently holds:forceTls(same / tls / none)dest,port,remarksni,fingerprint,alpn,pinnedPeerCertSha256,echConfigListThere is no
allowInsecure,flow, or transport-specific field at the per-entry level.UI (
frontend/src/pages/inbounds/form/transport/external-proxy.tsx): renders exactly those fields — the conditional TLS block (SNI, fingerprint, ALPN, ECH, pinned certs) appears only whenforceTls == 'tls', but there is noallowInsecuretoggle and noflowinput anywhere in the form.Subscription generators:
internal/sub/service.go—applyExternalProxyTLSParams/applyExternalProxyTLSObjcopy SNI, fingerprint, ALPN, pinned certs and ECH to the output link, but do not handle a per-entryallowInsecureorflow.internal/sub/json_service.go— loops over proxy entries and clones the stream for each, butflowis applied at the client level only (line ~344), never per proxy entry.internal/sub/clash_service.go— readsallowInsecure/skip-cert-verifyfrom the inbound's top-leveltlsSettings, not from the individual proxy entry.So all three of your requested additions are genuinely missing today.
Files a PR would need to touch
frontend/src/schemas/protocols/stream/external-proxy.ts— addallowInsecure?,flow?, and any transport-specific fieldsfrontend/src/pages/inbounds/form/transport/external-proxy.tsx— add a toggle + flow input (conditionally onforceTls == 'tls'/'reality')internal/sub/service.go—applyExternalProxyTLSParams/applyExternalProxyTLSObjand the per-protocol builders (buildExternalProxyURLLinks,buildVmessExternalProxyLinks)internal/sub/json_service.go— apply per-entryflowandallowInsecureinside the proxy-entry loopinternal/sub/clash_service.go— check per-entryallowInsecurewhen building proxy security configRelated open issue
#5143 reports a closely related Reality link-generation bug (the
forceTlssetting corrupts security type for Reality inbounds) that overlaps with point 2 of your request — worth coordinating if either of you plans a PR.Next steps
If you or anyone else wants to open a PR, the schema and UI changes are straightforward; the subscription-generator side will need care to make sure per-entry overrides win over inbound-level defaults without breaking existing behaviour. Happy to help review.
@solidwar commented on GitHub (Jun 11, 2026):
As confirmed by the analysis, these missing options (allowInsecure, flow, and transport overrides per entry) are highly needed for advanced external proxy setups.
I hope the core maintainers can look into this roadmap and consider implementing these changes in the upcoming updates. 🙏