[GH-ISSUE #5197] [Feature]: ip limit #3646

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

Originally created by @Mahdips on GitHub (Jun 11, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5197

salam age mishe ye ghesmat vase har clirnt bashe ke bshe vasash ip limit gozasht va vaghean ham kar kone

Describe the solution you'd like

salam age mishe ye ghesmat vase har clirnt bashe ke bshe vasash ip limit gozasht va vaghean ham kar kone

Alternatives you've considered

No response

Concrete use case

No response

Mockups, screenshots, or examples

No response

Which parts of the panel would this affect?

No response

Are you willing to help?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
Originally created by @Mahdips on GitHub (Jun 11, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5197 ### Is your feature request related to a problem? salam age mishe ye ghesmat vase har clirnt bashe ke bshe vasash ip limit gozasht va vaghean ham kar kone ### Describe the solution you'd like salam age mishe ye ghesmat vase har clirnt bashe ke bshe vasash ip limit gozasht va vaghean ham kar kone ### Alternatives you've considered _No response_ ### Concrete use case _No response_ ### Mockups, screenshots, or examples _No response_ ### Which parts of the panel would this affect? _No response_ ### Are you willing to help? - [ ] I'd like to implement this feature myself and open a PR. - [ ] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
bsakaguchi 2026-10-31 20:33:57 +07:00
Author
Owner

@github-actions[bot] commented on GitHub (Jun 11, 2026):

سلام! این ویژگی از قبل در پنل وجود داره — نیازی به پیاده‌سازی جدید نیست.

چطور IP Limit رو برای هر کلاینت فعال کنیم:

مرحله ۱ — فعال کردن Access Log در Xray:

  1. از منوی پنل برو به Xray Settings → Basics (تنظیمات Xray → پایه)
  2. گزینه Access Log رو از none به ./access.log تغییر بده
  3. ذخیره کن و Xray رو ری‌استارت کن

بعد از این تغییر، فیلد Limit IP در فرم ایجاد/ویرایش کلاینت ظاهر میشه و می‌تونی برای هر کلاینت جداگانه یک عدد مجاز تعیین کنی.

مرحله ۲ — نصب Fail2ban برای بلاک واقعی:
فیلد Limit IP به تنهایی فقط نظارت میکنه. برای اینکه IP های اضافه واقعاً بلاک بشن، باید Fail2ban رو نصب کنی:

  1. روی سرور دستور x-ui رو بزن
  2. از منو گزینه IP Limit رو انتخاب کن
  3. گزینه Install Fail2ban and configure IP Limit رو بزن

این دو مرحله رو که انجام بدی، IP Limit کاملاً فعال و کارا میشه.


این موضوع قبلاً در #4995 و #5180 هم مطرح شده. به عنوان تکراری بستیم.

<!-- gh-comment-id:4678329561 --> @github-actions[bot] commented on GitHub (Jun 11, 2026): سلام\! این ویژگی از قبل در پنل وجود داره — نیازی به پیاده‌سازی جدید نیست. **چطور IP Limit رو برای هر کلاینت فعال کنیم:** **مرحله ۱ — فعال کردن Access Log در Xray:** 1. از منوی پنل برو به **Xray Settings → Basics** (تنظیمات Xray → پایه) 2. گزینه **Access Log** رو از `none` به `./access.log` تغییر بده 3. ذخیره کن و Xray رو ری‌استارت کن بعد از این تغییر، فیلد **Limit IP** در فرم ایجاد/ویرایش کلاینت ظاهر میشه و می‌تونی برای هر کلاینت جداگانه یک عدد مجاز تعیین کنی. **مرحله ۲ — نصب Fail2ban برای بلاک واقعی:** فیلد Limit IP به تنهایی فقط نظارت میکنه. برای اینکه IP های اضافه واقعاً بلاک بشن، باید Fail2ban رو نصب کنی: 1. روی سرور دستور `x-ui` رو بزن 2. از منو گزینه **IP Limit** رو انتخاب کن 3. گزینه **Install Fail2ban and configure IP Limit** رو بزن این دو مرحله رو که انجام بدی، IP Limit کاملاً فعال و کارا میشه. --- این موضوع قبلاً در #4995 و #5180 هم مطرح شده. به عنوان تکراری بستیم.
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#3646
No description provided.