wyx2685 / v2board

🚀A multiple proxy protocol manage panel application interface
MIT License
569 stars 169 forks source link

[Feature request] The most powerful v2board panel ❤️ #24

Closed MrVb0 closed 7 months ago

MrVb0 commented 8 months ago

Hello, I just got acquainted with your script and I am very satisfied with it and I hope you are always improving. Thank you . I have some questions and suggestions regarding your V2Board and XrayR script.

We are very grateful for your time and effort in developing this script.

wyx2685 commented 8 months ago

1.coming soon 2.tuic v5 in considering, no plan for ssh 3.https://github.com/cedar2025/hysteria can use this backend for hysteria2 now 4.It is global. 1 IP on N nodes will count as N device. Only connection has >100kb traffic consume in 60s will count as 1 device.Unactive device disappear for 120s. 5.fp, spiderX,http header in todo list.

MrVb0 commented 8 months ago

In order for the "speed limit" and "device limit" features of the v2board panel to work properly, should the options "speed limit", "device limit" and "global device limit (redis)" be disabled in XrayR config?

Before this, I used XrayR global device limit based on redis and it worked correctly, but unfortunately, this feature was only on the backend side and it was not possible to apply different limits on different plans. In your v2board panel, this work has become much more beautiful, simpler and more organized.

wyx2685 commented 8 months ago

@MrVb0 yes XrayR local setting will override v2board function

MrVb0 commented 8 months ago

I applied device limit and speed limit options to my plans and created two new accounts for testing I created an account with the my Telegram bot that my friends wrote for me (case 1) I also created an account through the v2board user management section (case 2). In case 1, none of the device limit and speed limit factors have been applied to the desired account database. In case 2, device limit is applied but speed limit is not applied. Where do you think the problem comes from? Screenshot 2023-11-02 04551622

wyx2685 commented 8 months ago

@MrVb0 1.device_limit added when user buy a plan 2.Im not sure how speed_limit work, I didnt change code about it

MrVb0 commented 8 months ago

@MrVb0 2.Im not sure how speed_limit work, I didnt change code about it

I would be grateful if you could check the codes related to speed_limit and solve the bug of not applying speedlimit in v2board. Is it possible for this speed limit to be global in all nodes?

wyx2685 commented 8 months ago

I've check the code found not bug this time User should buy a plan then device_limt/speed_limt will be applied

MrVb0 commented 8 months ago

I've check the code found not bug this time User should buy a plan then device_limt/speed_limt will be applied

But unfortunately, as you can see in the picture, even after buying a plan from the site, speed_limit is not applied in the database.

wyx2685 commented 8 months ago

@MrVb0 please retry step by step and check v2_log database didn't find any code problem now

MrVb0 commented 8 months ago

To use the global device limit function of your v2board, it is not necessary that the global device limit xrayr is active?

       GlobalDeviceLimitConfig:
         Enable: false # Enable the global device limit of a user

Please explain more about DeviceOnlineMinTraffic option. For example, in a program like Singbox that receives pings from all servers every minute, what value should we set this option to in order not to cause problems?

wyx2685 commented 8 months ago

@MrVb0 yes

wyx2685 commented 8 months ago

Please explain more about DeviceOnlineMinTraffic option. For example, in a program like Singbox that receives pings from all servers every minute, what value should we set this option to in order not to cause problems?

every 60s xrayr node will send traffic and online_device to panel. If 1 user_ip use more traffic than this value in 60s,it will count as 1 device. personally i think 100-1000kb is recommended

MrVb0 commented 8 months ago

every 60s xrayr node will send traffic and online_device to panel. If 1 user_ip use more traffic than this value in 60s,it will count as 1 device. personally i think 100-1000kb is recommended

That is, when a user is downloading a file or watching a video with a download speed of 1 MB/s, the system is supposed to detect it on more than 1 device?! How can I disable this feature for testing? If I disable this feature, will the number of IPs in all nodes be checked and controlled globally?

wyx2685 commented 8 months ago

@MrVb0 no matter speed. it will only count as 1 device when traffic reach the value. device numbers base on ip_nodeid, same ip on multi node will count as more than one device

ZHQSM commented 8 months ago

大佬,上报的阈值在哪里改 测试如果个人切换节点太快 很容易超过设备数 目前好像是100kb吧

lanziii commented 8 months ago

@ZHQSM 配置文件里。默认安装不覆盖。你先卸载再安装就会出现第32行

wyx2685 commented 8 months ago

@ZHQSM 在配置模板里