Coder Social home page Coder Social logo

v2sub's Introduction

v2sub

Go 编写的用于 linux 下订阅并简单配置 v2ray 的命令行工具。

程序会创建 /etc/v2sub.json 文件用于存储订阅信息。

使用前需确保 v2ray.service 服务已注册且默认 v2ray 配置文件路径为 /etc/v2ray.json

Features

  • 内置配置文件和代理规则,默认监听 socks [1081] 和 http [1082]
  • icmp ping 测试节点延迟
  • 可更新代理规则 内置代理规则使用DNS分流+白名单
  • 支持 VMess / SS / Trojan 订阅与配置

v2sub

Usage

因 ping 与 服务重启 权限需要,以 root 权限运行:

sudo v2sub

快速切换节点:

sudo v2sub -q

允许监听外部连接:

sudo v2sub -wan

修改监听端口:

sudo v2sub -http 7890 -socks 7891

更多帮助:

v2sub -help

Note

trojan 功能通过 v2ray 转发实现,因此可以使用规则代理。使用前需确保 trojan.service 服务已注册且默认配置文件路径为 /etc/trojan.json

Warning

程序会覆盖 v2ray 配置文件。

This tool will truncate your v2ray config.

v2sub's People

Contributors

arkrz avatar kang8 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.