{"id":13776008,"url":"https://github.com/npist/v2rayms","last_synced_at":"2025-05-11T08:34:37.552Z","repository":{"id":216003333,"uuid":"143434417","full_name":"Npist/v2rayMS","owner":"Npist","description":"v2ray whmcs 多用户后端","archived":false,"fork":false,"pushed_at":"2019-03-28T00:58:47.000Z","size":117,"stargazers_count":106,"open_issues_count":0,"forks_count":85,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-17T11:47:35.938Z","etag":null,"topics":["multi-user","multi-user-platform","v2ray"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Npist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-08-03T14:01:13.000Z","updated_at":"2024-10-31T12:59:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"8d18e914-3913-4acf-87ac-b1551a8bfc6d","html_url":"https://github.com/Npist/v2rayMS","commit_stats":null,"previous_names":["npist/v2rayms"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Npist%2Fv2rayMS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Npist%2Fv2rayMS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Npist%2Fv2rayMS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Npist%2Fv2rayMS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Npist","download_url":"https://codeload.github.com/Npist/v2rayMS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253540587,"owners_count":21924522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["multi-user","multi-user-platform","v2ray"],"created_at":"2024-08-03T17:01:57.320Z","updated_at":"2025-05-11T08:34:37.269Z","avatar_url":"https://github.com/Npist.png","language":"Python","funding_links":[],"categories":["\u003ca id=\"d03d494700077f6a65092985c06bf8e8\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"dbc310300d300ae45b04779281fe6ec8\"\u003e\u003c/a\u003eV2Ray"],"readme":"# 仅供测试使用\u003cbr /\u003e\n效果可查看https://proxy.npist.com\u003cbr /\u003e\n有问题请联系npist35@gmail.com\u003cbr /\u003e\ntelegram：https://t.me/Npist\u003cbr /\u003e\n# 客户端项目\nhttps://github.com/Npist/v2rayMSC\u003cbr /\u003e\n请根据该项目说明配置./whmcs/clientapi.php中的RSA密钥字符串\u003cbr /\u003e\n# 更新日志\u003cbr /\u003e\n## 2019.1.19\u003cbr /\u003e\n1.数据加密，保证账户下发到节点过程中的数据安全（需配置RSA公私钥，详见使用说明）\u003cbr /\u003e\n2.启动参数，无需修改程序本身（详细参数见帮助 -h ）\u003cbr /\u003e\n## 2018.10.3\u003cbr /\u003e\n修复服务端若干BUG\u003cbr /\u003e\n## 2018.9.22\u003cbr /\u003e\n添加ClientApi模块，为计划中的客户端提供接口\u003cbr /\u003e\n添加/更新开源协议(MIT)\u003cbr /\u003e\nwhmcs modules自GPLv3开源项目修改而来并以WHMCS插件形式存在，故继续遵守GPLv3协议\u003cbr /\u003e\n## 2018.9.3\u003cbr /\u003e\n添加流量统计、最后在线时间\u003cbr /\u003e\n更新数据库结构\u003cbr /\u003e\n添加示例v2ray配置文件（配合流量统计用）\u003cbr /\u003e\n## 2018.8.21\u003cbr /\u003e\n优化socket传输中的数据量\u003cbr /\u003e\n## 2018.8.13\u003cbr /\u003e\n添加whmcs模块\u003cbr /\u003e\n修改自https://github.com/kesuki/whmcs-shadowsocks-plugin\u003cbr /\u003e\n安装请参考http://www.mak-blog.com/whmcs-shadowsocks-plugin.html\u003cbr /\u003e\n## 2018.8.1\u003cbr /\u003e\n初始版本\u003cbr /\u003e\n\u003cbr /\u003e\n# 程序结构\u003cbr /\u003e\n最初构想是直接有客户端访问数据库，但是需要开放数据库的3306端口到公网\u003cbr /\u003e\n安全起见，写了两个程序，通过数据库服务器上的程序分析用户账户数据，再下发到节点服务器\u003cbr /\u003e\n全程使用rsa加密对于机器性能也有影响，所以使用rsa对随机生成的高强度AES密码进行加密，下发到节点服务器以后使用aes进行数据加密\u003cbr /\u003e\n# 兼容性说明\u003cbr /\u003e\n项目中提供的前端仅为简单演示，但也具备了大部分基础功能。\u003cbr /\u003e\n如果需要更完整的功能，请使用其他更加完善的前端。\u003cbr /\u003e\n需要自行修改服务端v2server.py中对应的数据库字段。\u003cbr /\u003e\n# v2ray多用户后端安装说明\u003cbr /\u003e\n建议使用Python3.6运行\u003cbr /\u003e\n使用前请自行安装python的以下模块\u003cbr /\u003e\u003cbr /\u003e\nPyMySQL (0.9.2)\u003cbr /\u003e\nrsa (3.4.2)\u003cbr /\u003e\ncryptography (2.3.1)\u003cbr /\u003e\n节点服务器运行前请参考官方文档安装v2ray\u003cbr /\u003e \n安装命令行如下\u003cbr /\u003e\nbash \u003c(curl -L -s https://install.direct/go.sh)\u003cbr /\u003e\n### RSA密钥对生成\u003cbr /\u003e\n项目根目录下运行python3 rsa.py\n将会在同位置生成public.pem和private.pem\n放入对应位置即可\n### Server目录里的内容及public.pem存放进数据库服务器\u003cbr /\u003e\nuser.sql恢复进mysql或者mariadb\u003cbr /\u003e\nsqlconn.json为数据库连接文件  根据自己的mysql数据库配置\u003cbr /\u003e\n执行以下命令启动\u003cbr /\u003e\npython3 v2rayMS_Server.py\u003cbr /\u003e\n后台运行建议使用screen新建session\u003cbr /\u003e\n不带启动参数将以默认参数启动，即只监听本地IP\u003cbr /\u003e\n#### 启动参数说明\n    -s --serverip       服务器监听地址范围 默认为本地127.0.0.1 不限制设置为0.0.0.0\n    -p --port           服务器监听端口 默认为8854 请打开防火墙对应端口\n\n    -a --aeslength      AES加密长度 默认为128 可设置为128/256/512\n                        客户端需一致\n### Client目录里的内容及private.pem存放进节点服务器\u003cbr /\u003e\n执行以下命令启动\u003cbr /\u003e\npython3 v2rayMS_Client.py\u003cbr /\u003e\n后台运行建议使用screen新建session\u003cbr /\u003e\n不带启动参数将以默认参数启动，即server端运行在同一服务器上\u003cbr /\u003e\n#### 启动参数说明\nv2rayMS相关\u003cbr /\u003e\n\n    -u --updatetime    数据刷新时间 默认为50秒\n    -s --serverip      服务器IP\n    -p --port          服务器端口\n\n    -a --aeslength     AES加密长度 默认为128 可设置为128/256/512\n                       客户端需一致\nv2ray-core相关\u003cbr /\u003e\n\n    -o --v2ray         V2ray-core程序位置\n    -c --config        V2ray配置文件位置\nv2ray用户相关\u003cbr /\u003e\n\n    -l --level         v2ray默认用户level\n    -i --alterid       v2ray默认用户alterid\nv2ray流量统计相关\u003cbr /\u003e\n\n    -l --v2ctl         V2ctl程序位置\n    -t --v2cltport     V2ctl端口\n    -m --traffic       流量统计开关 默认为关\n\n使用流量统计请根据官方文档配置config.json，用户level v2ctl v2ctl端口均有关系\u003cbr /\u003e\nclient目录中提供的config.json为演示配置，可参考\u003cbr /\u003e\n\n# 示例启动\n服务器192.168.0.1（数据库，whmcs等）：\u003cbr /\u003e\npython3 v2ray_Server.py -s 0.0.0.0 -p 9000\u003cbr /\u003e\n即在9000端口上监听所有来源\u003cbr /\u003e\n\n节点服务器192.168.2.1：\u003cbr /\u003e\npython3 v2ray_client.py -u 100 -s 192.168.0.1 -p 9000 -m 1\u003cbr /\u003e\n即连接到192.168.0.1的服务器上通过9000端口获取数据，刷新时间为100秒\u003cbr /\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpist%2Fv2rayms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnpist%2Fv2rayms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpist%2Fv2rayms/lists"}