x-ui
x-ui copied to clipboard
ip limit for inbound (vmess & vless implemented)
Vmess implemented :1st_place_medal: Vless implemented :1st_place_medal:
- to enable this feature set access log in config.json
this feature doesn’t let users connect more than the limit number in every inbound option.
the job runs every 1 min. read access.log and process log by email. (if you want to enable limit ip, should fill email field). set the limit ip to 0 to disable it. vmess protocol limit ip is implemented. in the future, I try to implement other protocols :) @vaxilu
note : It's better to set the limit IP to 3, cause maybe the user switch between wifi and cellular within 1 min, and inbound get disabled.
install :
@hossinasaadi I appreciate your great work, Thank you man. Do you think it is possible to consider an automatic process to clear the log to prevent the disk from filling up?
@hossinasaadi I appreciate your great work, Thank you man. Do you think it is possible to consider an automatic process to clear the log to prevent the disk from filling up?
Hi , the job runs every 1 min and automatically purge access log to prevent the file size problem.
I enabled the access.log in xray-panel setting > xray configuration template, and restart the panel. "log": { "access": "/usr/local/x-ui/bin/access.log", "loglevel": "info" } but email and limit ip field not showing up in inbound form, what's wrong?
I enabled the access.log in xray-panel setting > xray configuration template, and restart the panel. "log": { "access": "/usr/local/x-ui/bin/access.log", "loglevel": "info" } but email and limit ip field not showing up in inbound form, what's wrong?
yeah you should install it manually , so i create a release for it can install by bash :
sudo bash <(curl -Ls https://raw.githubusercontent.com/hossinasaadi/x-ui/dev/install.sh)
Hi , I installed it and the email box was activated for me, but I have a problem saving the email in the panel
How did you install it?
.
I enabled the access.log in xray-panel setting > xray configuration template, and restart the panel. "log": { "access": "/usr/local/x-ui/bin/access.log", "loglevel": "info" } but email and limit ip field not showing up in inbound form, what's wrong?
yeah you should install it manually , so i create a release for it can install by bash :
sudo bash <(curl -Ls https://raw.githubusercontent.com/hossinasaadi/x-ui/dev/install.sh)
Thank you for providing bash install. So i tried, and it works very well, For example i set the ip limit to 1 and when second ip tried to connect, the inbound config disabled successfully (in GUI), But it "does not prevent reconnection" to inbound and client can still be connected. I tested enabling and disabling inbound manually and it worked.
Hi , I installed it and the email box was activated for me, but I have a problem saving the email in the panel
How did you install it?
sudo bash <(curl -Ls https://raw.githubusercontent.com/hossinasaadi/x-ui/dev/install.sh)
Error: No such file or directory
Hi , I installed it and the email box was activated for me, but I have a problem saving the email in the panel
How did you install it?
sudo bash <(curl -Ls https://raw.githubusercontent.com/hossinasaadi/x-ui/dev/install.sh)
Error: No such file or directory try this bash <(curl -Ls https://raw.githubusercontent.com/hossinasaadi/x-ui/dev/install.sh)
Thank you
but I have a problem saving the email in the panel
I enabled the access.log in xray-panel setting > xray configuration template, and restart the panel. "log": { "access": "/usr/local/x-ui/bin/access.log", "loglevel": "info" } but email and limit ip field not showing up in inbound form, what's wrong?
yeah you should install it manually , so i create a release for it can install by bash :
sudo bash <(curl -Ls https://raw.githubusercontent.com/hossinasaadi/x-ui/dev/install.sh)
Thank you for providing bash install. So i tried, and it works very well, For example i set the ip limit to 1 and when second ip tried to connect, the inbound config disabled successfully (in GUI), But it "does not prevent reconnection" to inbound and client can still be connected. I tested enabling and disabling inbound manually and it worked.
I check this problem, its occurs cause need to restart after disabling inbound. I'm working on it :)
I check this problem, its occurs cause need to restart after disabling inbound. I'm working on it :)
It would be great if we can recognize the inbound that disabled because of reached ip limit. e.g append a short text to 'remark' field. Kindly Thanks to you and looking forward for updates 🥇
xray restart bug fixed , you can check and clear ip log now :)
for install :
sudo bash <(curl -Ls https://raw.githubusercontent.com/hossinasaadi/x-ui/dev/install.sh)
xray restart bug fixed , you can check and clear ip log now :)
Checked it and works like a charm :) Pashm be tanam namoond, damet garm 👍
Just for clearify; I think the rules of disabling have changed and it is done based on the new log. And not based on the synchronicity of IPs within 1 minute in 'access.log', And this causes wrong disabling. Correct me if I am wrong.
"bash: /dev/fd/63: No such file or directory"
this error shown when i wnat to install script please explain how i can enable user ip count limit on v2ray panel
how can enable access log in config.jason?
xray restart bug fixed , you can check and clear ip log now :)
Checked it and works like a charm :) Pashm be tanam namoond, damet garm +1
Just for clearify; I think the rules of disabling have changed and it is done based on the new log. And not based on the synchronicity of IPs within 1 minute in 'access.log', And this causes wrong disabling. Correct me if I am wrong.
your welcome :) you are right. it was fixed and now just keep IPs Within 1 min in logs.
سلام من نسخه شمارو نصب کردم ایمیل هم وارد میکنم اما محدودیت ایجاد نمیشه . ادیت هم ک میزنم ایمیلی ک زدم نیست تعداد یوزریم ک گذاشتم نیس
xray restart bug fixed , you can check and clear ip log now :)
for install :
sudo bash <(curl -Ls https://raw.githubusercontent.com/hossinasaadi/x-ui/dev/install.sh)
is there any extra setting we must do
because I can't see this box and there is no limitation here
I install it using
sudo bash <(curl -Ls https://raw.githubusercontent.com/hossinasaadi/x-ui/dev/install.sh)
You can make all users work with one port, for example, 443, because the more the number of active ports on the server increases, the more filtering is possible.
if use one port we can use cdn and hide ip
xray restart bug fixed , you can check and clear ip log now :)
for install :
sudo bash <(curl -Ls https://raw.githubusercontent.com/hossinasaadi/x-ui/dev/install.sh)
is there any extra setting we must do because I can't see this box and there is no limitation here I install it using
sudo bash <(curl -Ls https://raw.githubusercontent.com/hossinasaadi/x-ui/dev/install.sh)
install it again from bash, the bug is fixed
"bash: /dev/fd/63: No such file or directory"
this error shown when i wnat to install script
"bash: /dev/fd/63: No such file or directory"
this error shown when i wnat to install script
just google it bro :)
wget https://raw.githubusercontent.com/hossinasaadi/x-ui/dev/install.sh
then :
sudo bash install.sh
"bash: /dev/fd/63: No such file or directory" this error shown when i wnat to install script
just google it bro :)
wget https://raw.githubusercontent.com/hossinasaadi/x-ui/dev/install.sh
then :sudo bash install.sh
installed can you add multi-user one-port ?
@hossinasaadi what's your opinion about ip detection accuracy? For example if client switch cellular data to wifi, and the ip limit is 1, so inbound will disable. Do you think it is possible to run the cron job every second instead of 1 minute?
@hossinasaadi what's your opinion about ip detection accuracy? For example if client switch cellular data to wifi, and the ip limit is 1, so inbound will disable. Do you think it is possible to run the cron job every second instead of 1 minute?
can`t find active ip? if find active ip from user can limit user
@userisamir I think it would be more useful if IP limitation is more like current connected Device Limitation. this way if the client has the key(or server access), they could be connected form one or x number of devices. as you mentioned IPs are dynamic and could change if the user tried to switch networks or Turn off/on the network.
@AliSawari @miladrajabi2002 Due to the limitations of xray/v2ray, we don't have any client information except ip in the log.
The added features were enabled for me the email and IP restrictions were saved in the panel but when multiple devices are connected, the IP log is empty and does not disable the connection
sudo bash <(curl -Ls https://raw.githubusercontent.com/hossinasaadi/x-ui/dev/install.sh)
@hossinasaadi
i think job dosen't run correctly every 1 min
what's your opinion about ip detection accuracy?
for better detection, if inbound create for a single user you should consider 2 IPs (cellular and wifi), so if the user switches between them within 1 min nothing happens.