mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5080] [Question]:IP Limit behavior in multi-node setup #3576
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#3576
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 @proxyman70 on GitHub (Jun 8, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5080
What are you trying to do?
Hi,
3x-ui v3.2.8 multi-node setup question:
If I enable IP Limit on the main panel and an IP gets banned there, can the same user still connect via a Node with the same credentials/IP?
Is IP Limit enforced globally across nodes or only per node instance?
In multi-node setup, what is the correct way to ensure IP banning works across all nodes?
Thanks.
What have you already tried?
No response
3x-ui version
3.2.8
How did you install 3x-ui?
Other
Operating system
ubuntu 24
Screenshots or config snippets
No response
Before submitting
@github-actions[bot] commented on GitHub (Jun 8, 2026):
Hi @proxyman70, great questions. Here is what the source code actually does.
How IP Limit works (per-node, not global)
CheckClientIpJob(web/job/check_client_ip_job.go) runs every 10 seconds on each panel instance independently. It:limitIp, writes to the local Fail2ban log (/var/log/x-ui/3xipl.log) and temporarily disconnects the offending connection via the local Xray API.There is no cross-node IP aggregation — the job has zero communication with other nodes. The database row it updates (
inbound_client_ips) is local to each instance.Answers to your questions
Known limitation / tracking issue
This gap is already reported and tracked in #4943 ("IP Limit can be bypassed in multi-node mode"). The issue describes the exact scenario you're asking about: a client with
limitIp = 1can connect to Node 1 from IP A and Node 2 from IP B simultaneously, because each node independently sees only one IP and never trips its own limit. It is tagged asenhancement— a global IP aggregation mechanism does not yet exist.If a global IP limit across nodes is important for your use case, you can +1 or subscribe to #4943 to follow progress.