[GH-ISSUE #5196] [Feature]: Enhance "External Proxy" features in Stream tab (Allow Insecure, Flow selection, and Protocol-specific settings) #3645

Closed
opened 2026-10-31 20:33:56 +07:00 by bsakaguchi · 2 comments
Owner

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

Yes. Currently, when using the External Proxy feature under the Stream tab, it lacks crucial protocol-specific options. For instance:

  1. 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.

  2. There is no option to set the flow (like xtls-rprx-vision) per proxy entry for Reality.

  3. 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:

  1. 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.

  2. A Flow dropdown/input selector inside each external proxy block for Reality configurations.

  3. Support for transport-specific arguments (like Padding Bytes for xhttp, header modifications, etc.) directly inside each proxy item.

  4. 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

Image Image Image

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 @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: 1. 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. 2. There is no option to set the flow (like xtls-rprx-vision) per proxy entry for Reality. 3. 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: 1. 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. 2. A Flow dropdown/input selector inside each external proxy block for Reality configurations. 3. Support for transport-specific arguments (like Padding Bytes for xhttp, header modifications, etc.) directly inside each proxy item. 4. 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 <img width="588" height="501" alt="Image" src="https://github.com/user-attachments/assets/35bf30f2-66e8-46d3-9c54-9757c1dc4d0c" /> <img width="513" height="535" alt="Image" src="https://github.com/user-attachments/assets/1eb8f836-6bb4-40d8-93ca-9f0b85de8a21" /> <img width="513" height="153" alt="Image" src="https://github.com/user-attachments/assets/d57e88ef-433f-4911-853a-3fadc860b8fa" /> ### 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.
bsakaguchi 2026-10-31 20:33:56 +07:00
Author
Owner

@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 ExternalProxyEntry currently holds:

  • forceTls (same / tls / none)
  • dest, port, remark
  • sni, fingerprint, alpn, pinnedPeerCertSha256, echConfigList

There 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 when forceTls == 'tls', but there is no allowInsecure toggle and no flow input anywhere in the form.

Subscription generators:

  • internal/sub/service.go — applyExternalProxyTLSParams / applyExternalProxyTLSObj copy SNI, fingerprint, ALPN, pinned certs and ECH to the output link, but do not handle a per-entry allowInsecure or flow.
  • internal/sub/json_service.go — loops over proxy entries and clones the stream for each, but flow is applied at the client level only (line ~344), never per proxy entry.
  • internal/sub/clash_service.go — reads allowInsecure / skip-cert-verify from the inbound's top-level tlsSettings, not from the individual proxy entry.

So all three of your requested additions are genuinely missing today.

Files a PR would need to touch

Layer File
Schema frontend/src/schemas/protocols/stream/external-proxy.ts — add allowInsecure?, flow?, and any transport-specific fields
UI frontend/src/pages/inbounds/form/transport/external-proxy.tsx — add a toggle + flow input (conditionally on forceTls == 'tls'/'reality')
URL links internal/sub/service.go — applyExternalProxyTLSParams / applyExternalProxyTLSObj and the per-protocol builders (buildExternalProxyURLLinks, buildVmessExternalProxyLinks)
JSON sub internal/sub/json_service.go — apply per-entry flow and allowInsecure inside the proxy-entry loop
Clash sub internal/sub/clash_service.go — check per-entry allowInsecure when building proxy security config

#5143 reports a closely related Reality link-generation bug (the forceTls setting 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.

<!-- gh-comment-id:4677598928 --> @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 `ExternalProxyEntry` currently holds: - `forceTls` (same / tls / none) - `dest`, `port`, `remark` - `sni`, `fingerprint`, `alpn`, `pinnedPeerCertSha256`, `echConfigList` There 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 when `forceTls == 'tls'`, but there is no `allowInsecure` toggle and no `flow` input anywhere in the form. **Subscription generators**: - `internal/sub/service.go` — `applyExternalProxyTLSParams` / `applyExternalProxyTLSObj` copy SNI, fingerprint, ALPN, pinned certs and ECH to the output link, but do **not** handle a per-entry `allowInsecure` or `flow`. - `internal/sub/json_service.go` — loops over proxy entries and clones the stream for each, but `flow` is applied at the **client** level only (line ~344), never per proxy entry. - `internal/sub/clash_service.go` — reads `allowInsecure` / `skip-cert-verify` from the inbound's top-level `tlsSettings`, not from the individual proxy entry. So all three of your requested additions are genuinely missing today. ## Files a PR would need to touch | Layer | File | |---|---| | Schema | `frontend/src/schemas/protocols/stream/external-proxy.ts` — add `allowInsecure?`, `flow?`, and any transport-specific fields | | UI | `frontend/src/pages/inbounds/form/transport/external-proxy.tsx` — add a toggle + flow input (conditionally on `forceTls == 'tls'`/`'reality'`) | | URL links | `internal/sub/service.go` — `applyExternalProxyTLSParams` / `applyExternalProxyTLSObj` and the per-protocol builders (`buildExternalProxyURLLinks`, `buildVmessExternalProxyLinks`) | | JSON sub | `internal/sub/json_service.go` — apply per-entry `flow` and `allowInsecure` inside the proxy-entry loop | | Clash sub | `internal/sub/clash_service.go` — check per-entry `allowInsecure` when building proxy security config | ## Related open issue #5143 reports a closely related Reality link-generation bug (the `forceTls` setting 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.
Author
Owner

@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. 🙏

<!-- gh-comment-id:4678252513 --> @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. 🙏
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#3645
No description provided.