a tool to manage v2ray config json
Project description
multi-v2ray
V2ray多用户管理脚本,向导式管理[新增|删除|修改]传输协议,享受V2ray的乐趣~
中文 English
特色
- 调用v2ray官方api进行流量统计
- 多用户, 多端口管理, 混合传输协议管理不再是梦
- 首次安装时产生随机端口,默认配置mkcp + 随机一种 (srtp | wechat-video | utp | dtls | wireguard) header伪装;
安装完成显示配置信息; - 每天北京时间早上3点自动升级重启v2ray核心,降低v2ray因内存小被kill几率。可关闭开启此功能。
- 查看配置信息显示vmess字符串(v2rayN的分享链接格式)
- 生成Telegram的socks5/MTProto分享链接, 支持socks5 + tls组合
- 支持http/2, 随机生成伪装h2 path
- 开启关闭tcpFastOpen
- 直接开启CDN
- 开启关闭动态端口
- 支持新版v2ray配置文件格式(v4.1+)
- 支持范围端口修改
- 支持程序和命令行参数管理控制
- 支持docker部署
- 禁止BT
功能
- 一键 启动 / 停止 / 重启 V2ray 服务端
- 流量统计(v2ray && iptables)
- 命令行模式管理v2ray
- 支持多用户, 多端口管理
- 开启关闭动态端口
- bittorrent的禁止与放行
- 单端口, 范围端口的修改
- 直接走Cloudcflare cdn
- 开启关闭tcpFastOpen
- 快速查看服务器连接信息, 常规配置修改
- 自由更改传输配置:
- 常规TCP
- HTTP头部伪装
- WebSocket流量
- 常规mKCP流量
- mKCP 伪装 FaceTime通话流量(srtp)
- mKCP 伪装 BT下载流量(utp)
- mKCP 伪装 微信视频通话流量(wechat-video)
- mKCP 伪装 DTLS 1.2流量(dtls)
- mKCP 伪装 WireGuard流量(wireguard)
- HTTP/2的tls流量(h2)(需备域名)
- Socks5
- MTProto
- Shadowsocks
- Quic
安装命令
source <(curl -sL https://git.io/fNgqx) --zh
升级命令(保留配置文件更新)
source <(curl -sL https://git.io/fNgqx) -k
卸载命令
source <(curl -sL https://git.io/fNgqx) --remove
命令行参数
v2ray [-h|--help] [options]
-h, --help 查看帮助
-v, --version 查看版本号
start 启动 V2Ray
stop 停止 V2Ray
restart 重启 V2Ray
status 查看 V2Ray 运行状态
new 重建新的v2ray json配置文件
update 更新 V2Ray 到最新Release版本
update.sh 更新 multi-v2ray 到最新版本
add 新增mkcp + 随机一种 (srtp|wechat-video|utp|dtls|wireguard) header伪装的端口(Group)
add [wechat|utp|srtp|dtls|wireguard|socks|mtproto|ss] 新增一种协议的组,端口随机,如 v2ray add utp 为新增utp协议
del 删除端口组
info 查看配置
port 修改端口
tls 修改tls
tfo 修改tcpFastOpen
stream 修改传输协议
cdn 走cdn
stats v2ray流量统计
iptables iptables流量统计
clean 清理日志
log 查看日志
Docker运行
默认创建mkcp + 随机一种伪装头配置文件:
docker run -d --name v2ray --restart always --network host jrohy/v2ray
自定义v2ray配置文件:
docker run -d --name v2ray -v /path/config.json:/etc/v2ray/config.json --restart always --network host jrohy/v2ray
查看v2ray配置:
docker exec v2ray bash -c "v2ray info"
warning: 如果用centos,需要先关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service
变更记录
查看 Changelog
依赖
docker: https://hub.docker.com/r/jrohy/v2ray
pip: https://pypi.org/project/v2ray-util/
python3: https://github.com/Jrohy/python3-install
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file v2ray-util-3.7.1.tar.gz.
File metadata
- Download URL: v2ray-util-3.7.1.tar.gz
- Upload date:
- Size: 40.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b1061b720c4857cef5db44ef4df10e7eb959bdb12ee9020290854fd7bf1efea
|
|
| MD5 |
6587998fa9d31999416e0d3e1c4121e1
|
|
| BLAKE2b-256 |
578ee2db6e7129ebf2951c063c79f1ee113ed8e1e5cb4615b492c731de1c7843
|
File details
Details for the file v2ray_util-3.7.1-py3-none-any.whl.
File metadata
- Download URL: v2ray_util-3.7.1-py3-none-any.whl
- Upload date:
- Size: 64.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9d3b79e94984e14f83f0b42fd83dc365d10bd05bf8dc0288a49b209a7d80206
|
|
| MD5 |
52861433a19400ab80b6937e45a3ebb9
|
|
| BLAKE2b-256 |
2660718cf6c97cb168cd0f7bb55326d814b0dd6973f40ec45f45eab35dbfdc51
|