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伪装;
     安装完成显示配置信息;
  • 查看配置信息显示vmess字符串(v2rayN的分享链接格式)
  • 生成Telegram的socks5/MTProto分享链接, 支持socks5 + tls组合
  • 支持http/2, 随机生成伪装h2 path
  • 开启关闭tcpFastOpen
  • 直接开启CDN
  • 开启关闭动态端口
  • 定时更新v2ray(需手动开启)
  • 支持新版v2ray配置文件格式(v4.1+)
  • 支持范围端口修改
  • 支持程序和命令行参数管理控制
  • 支持docker部署
  • 支持VLESS和Trojan以及XTLS(v4.31.0+)
  • 支持纯ipv6 vps
  • 禁止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
    • VLESS
    • VLESS_WS
    • VLESS_XTLS
    • Trojan

安装命令

source <(curl -sL https://multi.netlify.app/v2ray.sh) --zh

升级命令(保留配置文件更新)

source <(curl -sL https://multi.netlify.app/v2ray.sh) -k

卸载命令

source <(curl -sL https://multi.netlify.app/v2ray.sh) --remove

命令行参数

v2ray [-h|--help] [options]
    -h, --help           查看帮助
    -v, --version        查看版本号
    start                启动 V2Ray
    stop                 停止 V2Ray
    restart              重启 V2Ray
    status               查看 V2Ray 运行状态
    new                  重建新的v2ray json配置文件
    update               更新 V2Ray 到最新Release版本
    update [version]     更新 V2Ray 到指定版本
    update.sh            更新 multi-v2ray 到最新版本
    add                  新增端口组
    add [protocol]       新增一种协议的组, 端口随机,  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 --privileged --restart always --network host jrohy/v2ray

自定义v2ray配置文件:

docker run -d --name v2ray --privileged -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

建议

安装完v2ray后强烈建议开启BBR等加速: Linux-NetSpeed
使用Trojan和VLESS协议建议自行安装个nginx, 能让v2ray顺利Fallback到默认的80端口

依赖

docker: https://hub.docker.com/r/jrohy/v2ray
pip: https://pypi.org/project/v2ray-util/
python3: https://github.com/Jrohy/python3-install
acme: https://github.com/Neilpang/acme.sh

Project details


Release history Release notifications | RSS feed

This version

3.9.0

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.9.0.tar.gz (44.5 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.9.0-py3-none-any.whl (69.2 kB view details)

Uploaded Python 3

File details

Details for the file v2ray-util-3.9.0.tar.gz.

File metadata

  • Download URL: v2ray-util-3.9.0.tar.gz
  • Upload date:
  • Size: 44.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.6

File hashes

Hashes for v2ray-util-3.9.0.tar.gz
Algorithm Hash digest
SHA256 9b8b7f784dff870a27779e2d75fe38dbe3ed868ea63008b4a521ce15616b544e
MD5 7e5a1ca23d8a579561d7a8d6c2b37587
BLAKE2b-256 e27acf531ba442e19f939cbd5c3e0af1b410fc02978de85ade9613c8b6226cee

See more details on using hashes here.

File details

Details for the file v2ray_util-3.9.0-py3-none-any.whl.

File metadata

  • Download URL: v2ray_util-3.9.0-py3-none-any.whl
  • Upload date:
  • Size: 69.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.6

File hashes

Hashes for v2ray_util-3.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74384a6dccf7297c0c910d8dab73c582865ab5aef8a01e48c28cd415a0425a10
MD5 444a50cad0610e98ded198f7158d0fe1
BLAKE2b-256 6ce79fb645dd5ed2b4e7668bd62b7c627d4d0e078f8cc7e1536e4ad64abe1e78

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