Skip to main content

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+)
  • 支持范围端口修改
  • 支持程序和命令行参数管理控制
  • 禁止BT

功能

  • 一键 启动 / 停止 / 重启 V2ray 服务端
  • 流量统计(v2ray && iptables)
  • 命令行模式管理v2ray
  • 支持多用户, 多端口管理
  • 开启关闭动态端口
  • bittorrent的禁止与放行
  • 单端口, 范围端口的修改
  • 直接走cdn(80和443端口)
  • 开启关闭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                iptables流量统计
    clean                清理日志
    log                  查看日志

Docker运行

默认创建mkcp + 随机一种伪装头配置文件:

docker run -d --name v2ray --restart always --network host jrohy/v2ray

查看v2ray配置:

docker exec v2ray bash -c "v2ray info"

如果修改了v2ray配置文件直接重启v2ray容器来生效:

docker restart v2ray

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

v2ray-util-3.6.5a1.tar.gz (38.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

v2ray_util-3.6.5a1-py3-none-any.whl (64.1 kB view details)

Uploaded Python 3

File details

Details for the file v2ray-util-3.6.5a1.tar.gz.

File metadata

  • Download URL: v2ray-util-3.6.5a1.tar.gz
  • Upload date:
  • Size: 38.0 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.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.4

File hashes

Hashes for v2ray-util-3.6.5a1.tar.gz
Algorithm Hash digest
SHA256 3b7d0bfe2ffefaf07b8bca045589cc673782842d44375a7fa798e523beac7aad
MD5 0b4e6761522588e2a1beb3a76524536f
BLAKE2b-256 d702bb04516f882112f0944eb6a7d609cbde29b3bbf36a7d339888fc9fd04395

See more details on using hashes here.

File details

Details for the file v2ray_util-3.6.5a1-py3-none-any.whl.

File metadata

  • Download URL: v2ray_util-3.6.5a1-py3-none-any.whl
  • Upload date:
  • Size: 64.1 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.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.4

File hashes

Hashes for v2ray_util-3.6.5a1-py3-none-any.whl
Algorithm Hash digest
SHA256 e5f7dae9055e3bfadbc1dffdd0a30e50b23c3327b97c8faf88b84661d4a99af7
MD5 35c8d3a8e12203fe75df466441782567
BLAKE2b-256 b73176fefc24daf189f83bb38cdbfc21384f3b5ede223a6e113f530e9f2739c7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page