mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5207] [Feature]: #3651
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#3651
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 @masir-sefid on GitHub (Jun 11, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5207
Is your feature request related to a problem?
Hello, thanks for your great work!
I would like to suggest adding an IP limit per client (restricting the number of concurrent connections for each client).
Additionally, it would be great to add real-time statistics to the panel, accessible via a command.
Describe the solution you'd like
ss -ntu state established | awk '{print $5}' | sed -E 's/:[0-9]+$//' | sort | uniq | wc -l
Alternatives you've considered
No response
Concrete use case
No response
Mockups, screenshots, or examples
No response
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):
Both features described here already exist in the panel.
IP limit per client (concurrent connections)
The
LimitIPfield is already implemented — seeinternal/database/model/model.go(line 564) and enforced byinternal/web/job/check_client_ip_job.go. It requires two setup steps:Enable the Xray access log:
noneto./access.log, save, and restart Xray.Install Fail2ban to actually block addresses that exceed the limit (without it, violations are only logged):
Select IP Limit → Install Fail2ban and configure IP Limit.
The enforcement loop parses the access log, merges per-client IP history, and calls
fail2ban-clientto ban older IPs when a client's live connection count exceeds its configured limit. In multi-node setups the IP state is shared across nodes automatically.Real-time connection statistics
The second request appears to be cut off mid-sentence ("accessible via" with no further text after the shell command). If the intent is to view which clients are currently connected: the panel already shows online clients using the Xray gRPC stats API — see
internal/xray/process.go(GetOnlineClients). This is updated on each stats polling cycle and displayed in the Inbounds view.If there is a distinct feature you would like that is not covered by either of the above, please open a new issue with a complete description.
This is a duplicate of #5180 (which includes the same explanation and setup steps).
This reply was generated automatically; a maintainer may follow up.