[GH-ISSUE #4955] [Feature]: Feature Requests and Suggestions for the Sanaei Panel #3477

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

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

Hello, this panel is extremely good. Thank you for all your hard work.

I have worked with many different panels, and each of them has its own shortcomings. If the following items are addressed, the Sanayi panel will be truly complete.

There are just a few missing features:

  1. Multiple inbound support

    If possible, please add support for multiple inbounds so that both Reality and WebSocket configurations can be provided under a single subscription link while sharing the same traffic quota. Due to the filtering situation in Iran, you may find that Reality works in the northern regions while CDN/WebSocket works better in the southern regions.

  2. Port sharing

    Currently, it is not possible to have two different configurations on the same port, such as port 80. For example, in the Hiddify panel, you can create multiple types of configurations on port 80.

  3. Adding time to all users

    It would be very useful to have an option to extend all users' expiration dates at once. For example, if there is a 20-day outage, administrators should be able to add 20 days to all users in a single action.

  4. Traffic multiplier

    This feature is really needed. Sometimes we sell configurations at a low price, but the filtering conditions suddenly become much more difficult, forcing us to purchase expensive outbound resources. With a traffic multiplier, we could at least keep customers connected instead of cutting them off.

    Conversely, if users purchased configurations during difficult conditions when prices were high, and later the situation improves, we could set a multiplier such as 0.2 so that their traffic usage is calculated at one-fifth the normal rate, effectively giving them five times more usable traffic.

If these shortcomings are resolved, the panel will become unmatched.

Describe the solution you'd like

....

Alternatives you've considered

.

Concrete use case

.

Mockups, screenshots, or examples

.

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 @alisadeghi1997 on GitHub (Jun 5, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4955 ### Is your feature request related to a problem? Hello, this panel is extremely good. Thank you for all your hard work. I have worked with many different panels, and each of them has its own shortcomings. If the following items are addressed, the Sanayi panel will be truly complete. There are just a few missing features: 1. Multiple inbound support If possible, please add support for multiple inbounds so that both Reality and WebSocket configurations can be provided under a single subscription link while sharing the same traffic quota. Due to the filtering situation in Iran, you may find that Reality works in the northern regions while CDN/WebSocket works better in the southern regions. 2. Port sharing Currently, it is not possible to have two different configurations on the same port, such as port 80. For example, in the Hiddify panel, you can create multiple types of configurations on port 80. 3. Adding time to all users It would be very useful to have an option to extend all users' expiration dates at once. For example, if there is a 20-day outage, administrators should be able to add 20 days to all users in a single action. 4. Traffic multiplier This feature is really needed. Sometimes we sell configurations at a low price, but the filtering conditions suddenly become much more difficult, forcing us to purchase expensive outbound resources. With a traffic multiplier, we could at least keep customers connected instead of cutting them off. Conversely, if users purchased configurations during difficult conditions when prices were high, and later the situation improves, we could set a multiplier such as 0.2 so that their traffic usage is calculated at one-fifth the normal rate, effectively giving them five times more usable traffic. If these shortcomings are resolved, the panel will become unmatched. ### Describe the solution you'd like .... ### Alternatives you've considered . ### Concrete use case . ### Mockups, screenshots, or examples . ### 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:32:42 +07:00
Author
Owner

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

Thank you for the detailed write-up! Here is the current status of each request against the v3.2.7 source code.


1. Multiple inbounds under one subscription link — Already implemented

This works today. A client can be attached to multiple inbounds from the Clients page: select one or more clients and use the Attach button (or the Bulk Attach toolbar button for many clients at once). As long as all attached inbounds share the same subId, the subscription URL aggregates configs from every attached inbound. So a single subscription link can simultaneously deliver a Reality config and a WebSocket/CDN config while sharing one traffic quota.


2. Port sharing — Partially supported via Fallbacks

True OS-level port sharing (two independent listeners on the same port) is not possible, but Xray's Fallback mechanism achieves the same result and is already integrated in 3x-ui:

  • A VLESS or Trojan inbound on TCP+TLS or TCP+Reality can act as a "master" listener on port 443/80.
  • In the inbound settings, add Fallback rules that route traffic to child inbounds (WebSocket, gRPC, etc.) based on ALPN or path.
  • Child inbounds listen on loopback ports; the master inbound handles the single public-facing port.

This feature is limited to VLESS/Trojan on TCP+TLS or TCP+Reality — that is an Xray-core constraint, not a panel limitation.


3. Add time to all users — Already implemented

This exists as Bulk Adjust:

  • Clients page → select the target clients (or all via the header checkbox) → Bulk Actions → Adjust expiry / traffic.
  • Enter +20 days; the panel shifts the expiry of every selected client forward.
  • Also available in the Groups page for group-scoped operations.
  • API endpoint: POST /panel/api/clients/bulkAdjust with {"emails":[...],"addDays":20}.

Clients with unlimited expiry (expiryTime = 0) are intentionally skipped so bulk-extend never accidentally caps an unlimited account.


4. Traffic multiplier — Not yet implemented

There is no traffic-multiplier/coefficient feature in the current codebase. Similar requests were filed in #3313 and #4631; neither was implemented. This remains a genuinely missing feature and would require new model fields, updated traffic accounting logic, and UI changes.

If you or anyone else would like to implement it, a PR is welcome — the relevant places to start would be database/model/model.go (Client/ClientRecord), web/service/client.go (traffic accounting), and xray/traffic.go.

<!-- gh-comment-id:4629702129 --> @github-actions[bot] commented on GitHub (Jun 5, 2026): Thank you for the detailed write-up\! Here is the current status of each request against the v3.2.7 source code. --- **1. Multiple inbounds under one subscription link — Already implemented** This works today. A client can be attached to multiple inbounds from the Clients page: select one or more clients and use the **Attach** button (or the **Bulk Attach** toolbar button for many clients at once). As long as all attached inbounds share the same `subId`, the subscription URL aggregates configs from every attached inbound. So a single subscription link can simultaneously deliver a Reality config and a WebSocket/CDN config while sharing one traffic quota. --- **2. Port sharing — Partially supported via Fallbacks** True OS-level port sharing (two independent listeners on the same port) is not possible, but Xray's **Fallback** mechanism achieves the same result and is already integrated in 3x-ui: - A VLESS or Trojan inbound on TCP+TLS or TCP+Reality can act as a "master" listener on port 443/80. - In the inbound settings, add Fallback rules that route traffic to child inbounds (WebSocket, gRPC, etc.) based on ALPN or path. - Child inbounds listen on loopback ports; the master inbound handles the single public-facing port. This feature is limited to VLESS/Trojan on TCP+TLS or TCP+Reality — that is an Xray-core constraint, not a panel limitation. --- **3. Add time to all users — Already implemented** This exists as **Bulk Adjust**: - Clients page → select the target clients (or all via the header checkbox) → Bulk Actions → Adjust expiry / traffic. - Enter +20 days; the panel shifts the expiry of every selected client forward. - Also available in the Groups page for group-scoped operations. - API endpoint: `POST /panel/api/clients/bulkAdjust` with `{"emails":[...],"addDays":20}`. Clients with unlimited expiry (expiryTime = 0) are intentionally skipped so bulk-extend never accidentally caps an unlimited account. --- **4. Traffic multiplier — Not yet implemented** There is no traffic-multiplier/coefficient feature in the current codebase. Similar requests were filed in #3313 and #4631; neither was implemented. This remains a genuinely missing feature and would require new model fields, updated traffic accounting logic, and UI changes. If you or anyone else would like to implement it, a PR is welcome — the relevant places to start would be `database/model/model.go` (Client/ClientRecord), `web/service/client.go` (traffic accounting), and `xray/traffic.go`.
Author
Owner

@MHSanaei commented on GitHub (Jun 5, 2026):

we already have 1-2-3
4 not planned

<!-- gh-comment-id:4629720395 --> @MHSanaei commented on GitHub (Jun 5, 2026): we already have 1-2-3 4 not planned
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#3477
No description provided.