mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #3249] Feature request : Bring back the old ip limit logic #2202
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#2202
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 @arashammm on GitHub (Jul 18, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3249
Is your feature request related to a problem?
In the earlier versions of the 3x-ui, the ip limit feature blocked the old ip connecting to the uuid and let the new ip's connection remain connected, while keeping the ip limit rule valid. This helped the users to seamlessly change devices, or their ISPs without any problem. However, the newer versions ( i checked v2.6.2) block the new ip and let the old ip remain connected.
This is logaically problematic. For example, carrier Internet technologies like LTE use sophisticated NAT networks that tend to change the users public ips based on their location, causing the 3x-ui panel disconnecting the users' newly assigned ips. Today, I was using the iplimit for my server and got banned three times in a row while driving across the town because my ip kept changing as I moved across the city. Each time, the fail2ban recognized the new ips' connections as the violation to the iplimit rule.
Describe the solution you'd like
It's such a shame that this valuable feature has such an obvious bug and it's not clear why you changed it. At least, add a feature to let the admin decide whether they want the new or old ips get blocked by fail2ban.
Describe alternatives you've considered
No response
Checklist
@arashammm commented on GitHub (Jul 21, 2025):
Could some one at least point to where I should look for this in the code to modify the ip limit logic to the more desired one?
This has been a nightmare.
I am amazed why no one has mentioned this before...