[GH-ISSUE #3249] Feature request : Bring back the old ip limit logic #2202

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

Originally created by @arashammm on GitHub (Jul 18, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3249

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

  • This feature report is written entirely in English.
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 - [x] This feature report is written entirely in English.
bsakaguchi 2026-10-31 20:23:54 +07:00
Author
Owner

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

<!-- gh-comment-id:3097487455 --> @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...
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#2202
No description provided.