[GH-ISSUE #5080] [Question]:IP Limit behavior in multi-node setup #3576

Closed
opened 2026-10-31 20:33:26 +07:00 by bsakaguchi · 1 comment
Owner

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

  • I read the Wiki and searched existing issues.
  • This is a usage question, not a bug report.
  • This question is written in English.
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 - [x] I read the [Wiki](https://github.com/MHSanaei/3x-ui/wiki) and searched [existing issues](../issues?q=is%3Aissue). - [x] This is a usage question, not a bug report. - [x] This question is written in English.
bsakaguchi 2026-10-31 20:33:26 +07:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@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:

  1. Reads the local Xray access log on that host.
  2. Counts distinct IPs per client email seen in that log.
  3. If the count exceeds 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

Question Answer
Can a banned user on the main panel still connect via a different Node? Yes. A Fail2ban ban on one host's firewall has no effect on another host.
Is IP Limit enforced globally across all nodes? No. Enforcement is strictly per-node. Each node only sees the IPs that connected to it.
Correct way to enforce IP limits globally across all nodes? There is no built-in mechanism for this in the current version (v3.2.8). It is a known architectural gap.

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 = 1 can 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 as enhancement — 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.

<!-- gh-comment-id:4650746366 --> @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`](../../blob/main/web/job/check_client_ip_job.go)) runs every 10 seconds **on each panel instance independently**. It: 1. Reads the **local** Xray access log on that host. 2. Counts distinct IPs per client email seen in that log. 3. If the count exceeds `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 | Question | Answer | |---|---| | Can a banned user on the main panel still connect via a different Node? | **Yes.** A Fail2ban ban on one host's firewall has no effect on another host. | | Is IP Limit enforced globally across all nodes? | **No.** Enforcement is strictly per-node. Each node only sees the IPs that connected to it. | | Correct way to enforce IP limits globally across all nodes? | **There is no built-in mechanism for this in the current version (v3.2.8).** It is a known architectural gap. | ## 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 = 1` can 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 as `enhancement` — 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.
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#3576
No description provided.