Git Product home page Git Product logo

v2ray-installer's Introduction

V2Ray Installer

A simple script to install v2fly or xray on Ubuntu or Debian servers.

Features

  • Automatically install service for v2fly or xray
  • Support for VMess, VLess, Shadowsocks, Socks5 as protocols
  • Support for TCP, TLS, websocket, gRPC as transports
  • User management for VMess and VLess
  • Generate config files for VMess and VLess
  • Generate self signed certificates or use existing certificates
  • Ability to manually add rules to config file

Drawbacks

  • This script cannot configure reverse proxies like Nginx or Caddy to work with v2ray. You need to configure them yourself.
  • This script will not install firewall; But it will use it if it's installed. For Debian it uses iptables and for Ubuntu it uses ufw.

Install

On your server run the following command:

curl -o v2ray.sh https://raw.githubusercontent.com/HirbodBehnam/V2Ray-Installer/master/v2ray.sh && bash v2ray.sh

At first, it installs v2fly/xray as service and then it shows you options to manage it.

Installed Service and Files

The service is installed as v2ray.service. The executable itself is installed in /usr/local/bin/. The config file is also available in /usr/local/etc/v2ray/config.json.

The config file can be freely edited. You can add protocol/transports which are not supported by script to it. Script will not delete them however it's unable to create client configs for them.

Installed v2ray Version

Script always installs the latest v2fly release or Xray release from GitHub.

Guides

There are some guides to do some stuff which script is not capable of (for example using a CDN). You can read them from guides folder.

v2ray-installer's People

Contributors

hirbodbehnam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

v2ray-installer's Issues

Error Adding rule

jq: error (at /usr/local/etc/v2ray/config.json:1): Cannot iterate over null (null)

سوال

سلام.
آیا راهی وجود داره که روی لینوکس روی یه پورت مشخص تعداد کانکشن های متصل رو روی یه عدد خاص لیمیت کنیم؟ یا حتی روی ویندوز سرور اگر همچنین راهی وجود داشته باشه ممنون میشم راهنمایی کنید؟

محدودیت

سلام بهنام جان

من trojan -xtls ران کردم ولی بازم اذیت میکنه، websocket هم که بدتر
آیا تنظیمات خاصی هست بهتر جواب بده ؟

ممنونم

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.