mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6622] [Feature]: Opt-in post-expiry throttling, window-based traffic quotas, and per-client speed limits #4428
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#4428
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 @mioolio on GitHub (Sep 22, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6622
Is your feature request related to a problem?
Yes. Currently, when a client reaches its traffic limit or expiry date, 3X-UI disables the client completely. There is no soft-throttle option. This gives users no grace period and can be disruptive for shared, family, or commercial nodes.
The existing traffic reset is inbound-level (
trafficReset= hourly / daily / weekly / monthly). It cannot prevent a single client from consuming the whole inbound quota in a short period. For example, on a shared node with a 100GB daily quota, one user can download a large amount in a few minutes and exhaust the node before other users can use it.There is also no per-client speed limit exposed in the panel. All clients on the same inbound share bandwidth, so a single client can saturate the node. Administrators currently have to edit Xray config manually or use external scripts, which may be overwritten by the panel.
Describe the solution you'd like
I would like to propose an opt-in, disabled-by-default set of client-level traffic controls:
Post-expiry / post-quota throttling instead of hard cut-off
Disable— current behavior, default.Throttle— apply a configurable speed limit.Disableto preserve current behavior.Window-based quota
10GB per 2 hours.Throttleto a configured speed until the window resets, orDisableuntil the window resets.Per-client speed limit
0or empty meaning unlimited.All features opt-in
Alternatives you've considered
No response
Concrete use case
trafficResetresets all clients in an inbound. It does not prevent one client from bursting through the quota in a short window.Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
Frontend (UI / panel pages), Other
Are you willing to help?
Before submitting