mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #3255] limitIp setting is ignored for VLESS inbounds using xtls-rprx-vision flow #2204
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#2204
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 @mysubcult on GitHub (Jul 19, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3255
Describe the bug
Hello,
I've discovered a bug where the IP limit functionality (
limitIp) is not being enforced under a specific and repeatable condition. The setting is correctly saved to the database but seems to be ignored when the panel generates the final Xray config.Bug Description:
For a VLESS inbound, if a client's
flowis set toxtls-rprx-vision, thelimitIpsetting (e.g., set to 1) does not work. Multiple users can connect simultaneously from different IPs using the same client config. However, if theflowis changed to anything else (likextls-rprx-direct), thelimitIpfunction works perfectly as expected.Additional Context & Analysis:
/etc/x-ui/x-ui.dbfile and can confirm that the client's configuration is correctly saved with"limitIp": 1. This strongly suggests the issue is not in saving the settings, but in the logic that generates the final running config for Xray.flowtoxtls-rprx-directimmediately fixes the issue and the IP limit is enforced. However, for users in countries with active VPN blocking,xtls-rprx-visionis a critical feature for stealth, making this workaround unsuitable for many.Thank you for your hard work on this project. I hope this report helps in resolving the issue.
How to repeat the problem?
VLESSxtls-rprx-vision1Expected action
Expected Behavior:
The connection from Device B should be rejected, as the IP limit is set to 1 and is already occupied by Device A.
Received action
Actual Behavior:
Both Device A and Device B connect successfully and simultaneously. The panel's UI correctly displays two active IP addresses for the single client, confirming that the
limitIp: 1rule was ignored by the Xray core.3x-ui Version
2.6.2
Xray-core Version
25.6.8
Checklist
@datout commented on GitHub (Jul 29, 2025):
I have also noticed this problem
@sedyh commented on GitHub (Aug 15, 2025):
+1 for this, it doesn't seem to work
@mysubcult commented on GitHub (Aug 16, 2025):
@MHSanaei, could you look into this issue?
@jifeon commented on GitHub (Sep 16, 2025):
Hi @mysubcult
Have you found any workarounds?
@mysubcult commented on GitHub (Sep 17, 2025):
No, I'm still waiting and I hope that this error will be fixed.
@jifeon commented on GitHub (Sep 17, 2025):
Managed to solve it. Not ideal but working. Here’s what turned out to be the cause + my working fix. Maybe this helps
🔍 What was wrong in my case
iptables-nft) by default.3x-iplaction shipped with 3x-ui is an iptables-only action. It doesn’t operate in the nftables backend.✅ How I fixed it
Here’s what I changed / added to make the ban actually stop both new and live connections:
Created a new Fail2ban “nft” action for nftables, which drops packets.
Modify /etc/fail2ban/jail.d/3x-ipl.local to use 3x-ipl-nft action
Restart fail2ban
systemctl restart fail2ban@vipka1n commented on GitHub (Feb 26, 2026):
The bug is still relevant as of 26.02.2026. Please raise the priority.