alireza0 / x-ui

xray panel supporting multi-protocol multi-user expire day & traffic (Vmess & Vless & Trojan & Shadowsocks)
https://t.me/XrayUI
GNU General Public License v3.0
3.15k stars 490 forks source link

How to limit the number of simultaneous connections for one client? #1432

Closed skl256 closed 1 month ago

skl256 commented 2 months ago

How to limit the number of simultaneous connections for one client? For example, by IP address. I have encountered such functionality in other panel implementations, but I did not find it in x-ui:1.8.6.

pulsarice commented 2 months ago

It's not implemented in this panel. You might want to try 3x-ui

abdollahim commented 2 months ago

It's not implemented in this panel. You might want to try 3x-ui

I didn't see that feature in 3x-ui Are you sure about it?

skl256 commented 2 months ago

You might want to try 3x-ui

@pulsarice Yes, I saw this functionality in the 3x-ui panel, but this panel has one bug (not related to the functionality described above), which does not allow me to use it for my purposes

skl256 commented 2 months ago

I didn't see that feature in 3x-ui

@abdollahim in ghcr.io/mhsanaei/3x-ui image

5k1t2 commented 2 months ago

Will this be implemented in this panel? Very useful feature

web-elite commented 1 month ago

Will this be implemented in this panel? Very useful feature

Since IP addresses are not static in Iran, this is not practical and causes interruptions for the user.

abdollahim commented 1 month ago

Will this be implemented in this panel? Very useful feature

Since IP addresses are not static in Iran, this is not practical and causes interruptions for the user.

We mean limit "simultaneous connections for one client at a time" not one static ip address to limit the user to connect only from that ip address! For example set it to 1,2, or 3 to limit user connections at a same time.

5k1t2 commented 1 month ago

Будет ли это реализовано в этой панели? Очень полезная функция

Поскольку в Иране IP-адреса не являются статическими, это непрактично и вызывает перебои в работе пользователя.

Мы имеем в виду ограничение "одновременных подключений для одного клиента за раз", а не один статический IP-адрес, чтобы ограничить пользователя, чтобы он подключался только с этого IP-адреса! Например, установите его на 1,2 или 3, чтобы ограничить количество подключений пользователей одновременно.

Yes, thanks for the clarification.

abdollahim commented 1 month ago

I didn't see that feature in 3x-ui

@abdollahim in ghcr.io/mhsanaei/3x-ui image

Hello again, This is what I see in the latest 3x-ui i just installed (version 2.4.2) There isn't anything about IP limit. Screenshot 2024-09-29 090810

It might has been removed from 3x-ui !

5k1t2 commented 1 month ago

In any case, such a feature would be very useful to many users. It would be great if it were implemented in the X-UI panel

alireza0 commented 1 month ago

This panel removed the feature from the begining of forking repository. There is no plan to implement this feature. P.S. There is no complete solution for proxies like v2ray/xray models. Don't waste your time!

@abdollahim This feature could be applied when you enable access logs in 3x-ui panel setting.