Convert Figma logo to code with AI

mack-a logov2ray-agent

Xray、Tuic、hysteria2、sing-box 八合一一键脚本

13,758
4,474
13,758
8

Top Related Projects

A platform for building proxies to bypass network restrictions.

66,794

A GUI client for Windows, support Xray core and v2fly core and others

🦄 🎃 👻 V2Ray 路由规则文件加强版,可代替 V2Ray 官方 geoip.dat 和 geosite.dat,适用于 V2Ray、Xray-core、mihomo(Clash-Meta)、hysteria、Trojan-Go 和 leaf。Enhanced edition of V2Ray rules dat files, applicable to V2Ray, Xray-core, mihomo(Clash-Meta), hysteria, Trojan-Go and leaf.

24,907

Xray, Penetrates Everything. Also the best v2ray-core, with XTLS support. Fully compatible configuration.

10,917

A web GUI client of Project V which supports VMess, VLESS, SS, SSR, Trojan, Tuic and Juicity protocols. 🚀

Quick Overview

v2ray-agent is a project that provides a one-click installation script for V2Ray, a platform for building proxies to bypass network restrictions. It aims to simplify the process of setting up and managing V2Ray servers, offering various customization options and supporting multiple protocols.

Pros

  • Easy installation with a single command
  • Supports multiple protocols (VLESS, VMess, Trojan)
  • Automatic SSL certificate management
  • Regular updates and active maintenance

Cons

  • Limited documentation in English
  • May require some technical knowledge to fully utilize all features
  • Potential security risks if not properly configured
  • May be affected by changes in network restrictions or detection methods

Getting Started

To install v2ray-agent, run the following command:

wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh

Follow the on-screen prompts to complete the installation and configuration process. The script will guide you through selecting protocols, ports, and other settings.

To manage your v2ray-agent installation after setup, you can run:

vasma

This command will open the management menu, allowing you to add users, modify configurations, and perform other maintenance tasks.

Competitor Comparisons

A platform for building proxies to bypass network restrictions.

Pros of v2ray-core

  • Core functionality: Provides the fundamental V2Ray protocol implementation
  • Flexibility: Can be integrated into various projects and systems
  • Active development: Regularly updated with new features and improvements

Cons of v2ray-core

  • Complexity: Requires more technical knowledge to set up and configure
  • Limited user-friendliness: Lacks built-in scripts for easy deployment

Code comparison

v2ray-core:

type Server struct {
    config *Config
    ohm    outbound.Manager
    router routing.Router
    ihm    inbound.Manager
}

v2ray-agent:

installV2Ray(){
    echoContent skyBlue "\nProgress  $1/${totalProgress} : Install V2Ray"
    # ... (installation steps)
}

v2ray-core focuses on the core implementation, while v2ray-agent provides installation scripts and management tools. The v2ray-core snippet shows the main Server struct, whereas v2ray-agent includes a Bash function for V2Ray installation.

v2ray-agent simplifies the deployment process, making it more accessible to users with less technical expertise. However, v2ray-core offers greater flexibility for developers who want to integrate V2Ray functionality into their own projects or create custom implementations.

66,794

A GUI client for Windows, support Xray core and v2fly core and others

Pros of v2rayN

  • User-friendly GUI for Windows, making it easier for non-technical users
  • Supports multiple protocols and configurations in one client
  • Regular updates and active community support

Cons of v2rayN

  • Limited to Windows platform, reducing cross-platform compatibility
  • May have a steeper learning curve for advanced configurations
  • Lacks some of the automated deployment features found in v2ray-agent

Code Comparison

v2rayN (C#):

public static int RunAsAdmin(string arguments)
{
    Process process = new Process();
    process.StartInfo.FileName = Utils.GetExePath();
    process.StartInfo.Arguments = arguments;
    process.StartInfo.UseShellExecute = true;
    process.StartInfo.Verb = "runas";
    process.Start();
    return process.Id;
}

v2ray-agent (Shell Script):

installV2Ray(){
    echoContent skyBlue "\nProgress  $1/${totalProgress} : Install V2Ray"
    # Version
    if [[ "${selectCoreType}" == "2" ]]; then
        version=$(curl -s https://api.github.com/repos/v2fly/v2ray-core/releases | jq -r '[.[] | select(.prerelease == false)][0] | .tag_name')
    else
        version=${v2rayCoreVersion}
    fi

🦄 🎃 👻 V2Ray 路由规则文件加强版,可代替 V2Ray 官方 geoip.dat 和 geosite.dat,适用于 V2Ray、Xray-core、mihomo(Clash-Meta)、hysteria、Trojan-Go 和 leaf。Enhanced edition of V2Ray rules dat files, applicable to V2Ray, Xray-core, mihomo(Clash-Meta), hysteria, Trojan-Go and leaf.

Pros of v2ray-rules-dat

  • Focuses on providing comprehensive rule sets for V2Ray, including domain lists and IP lists
  • Regularly updated with the latest domain and IP information
  • Offers flexibility in choosing different rule sets based on specific needs

Cons of v2ray-rules-dat

  • Requires manual integration with V2Ray configuration
  • May need additional setup and maintenance compared to all-in-one solutions

Code Comparison

v2ray-rules-dat:

{
  "routing": {
    "rules": [
      {
        "type": "field",
        "outboundTag": "proxy",
        "domain": ["geosite:category-ads-all"]
      }
    ]
  }
}

v2ray-agent:

#!/bin/bash
# This script installs and configures v2ray-agent
curl -fsSL https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh -o install.sh && bash install.sh

v2ray-rules-dat provides rule sets that can be directly integrated into V2Ray configurations, offering granular control over routing. v2ray-agent, on the other hand, offers a more comprehensive installation and management script for V2Ray setups, simplifying the deployment process but potentially with less customization in routing rules.

24,907

Xray, Penetrates Everything. Also the best v2ray-core, with XTLS support. Fully compatible configuration.

Pros of Xray-core

  • More lightweight and efficient core implementation
  • Supports XTLS protocol for improved performance
  • Active development with frequent updates

Cons of Xray-core

  • Less user-friendly for beginners
  • Requires more manual configuration
  • Fewer built-in tools for server management

Code Comparison

v2ray-agent (install.sh):

echoContent skyBlue "\nProgress  $1/${totalProgress} : $2"

Xray-core (main.go):

common.Must(defaultJson.UnmarshalJSON([]byte(jsonConfig)))

v2ray-agent focuses on providing a user-friendly installation script, while Xray-core emphasizes core functionality and performance. The v2ray-agent code snippet shows a progress indicator for the installation process, whereas the Xray-core snippet demonstrates JSON configuration parsing.

Xray-core is a more specialized tool for advanced users seeking optimal performance, while v2ray-agent offers a more accessible solution for quick deployment and management of V2Ray servers. The choice between them depends on the user's technical expertise and specific requirements.

10,917

A web GUI client of Project V which supports VMess, VLESS, SS, SSR, Trojan, Tuic and Juicity protocols. 🚀

Pros of v2rayA

  • User-friendly web GUI for easier management and configuration
  • Multi-platform support (Windows, macOS, Linux)
  • Built-in subscription management and automatic updates

Cons of v2rayA

  • Larger codebase and potentially higher resource usage
  • May have a steeper learning curve for users new to v2ray

Code Comparison

v2rayA:

func (s *VmessOutboundJson) BuildV2rayConfig() (*conf.Config, error) {
    outbound := &conf.OutboundConfig{
        Protocol: "vmess",
        Settings: &conf.OutboundConfigSettings{},
    }
    // ... (additional configuration)
}

v2ray-agent:

installV2Ray(){
    echoContent skyBlue "\nProgress  $1/${totalProgress} : Install V2Ray"
    # ... (installation steps)
}

The v2rayA project uses Go for its core functionality, providing a more structured approach to building v2ray configurations. In contrast, v2ray-agent primarily uses shell scripts for installation and management, which may be simpler but less flexible for complex configurations.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

Xray-core/sing-box 一键脚本快速安装

一、项目介绍

核心

  • Xray-core
  • sing-box

协议

以下均使用TLS,支持多种协议组合

  • VLESS(Reality、Vision(TCP)、WS、gRPC、SplitHTTP)
  • VMess(TCP、WS、HTTPUpgrade)
  • Trojan(TCP、gRPC)
  • Hysteria2(sing-box)
  • Tuic(sing-box)
  • NaiveProxy(sing-box)

功能

二、使用指南

三、线路推荐

1.高端

2.性价比

四、安装使用

1.下载脚本

  • 支持快捷方式启动,安装完毕后,shell输入【vasma】即可打开脚本,脚本执行路径[/etc/v2ray-agent/install.sh]

  • Github

wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh
  • 官方网站【备用】
wget -P /root -N --no-check-certificate "https://www.592083.xyz/v2ray-agent/install.sh" && chmod 700 /root/install.sh && /root/install.sh

2.使用

四、反馈和建议

五、捐赠

六、许可证

AGPL-3.0