Coder Social home page Coder Social logo

peyman1992 / v2ray-rust Goto Github PK

View Code? Open in Web Editor NEW

This project forked from qv2ray/v2ray-rust

0.0 0.0 0.0 842 KB

An Opinionated Lightweight Implementation of V2Ray, in Rust Programming Language

License: GNU Affero General Public License v3.0

Rust 100.00%

v2ray-rust's Introduction

v2ray-rust

Rust dependency status License: AGPL v3

An Opinionated Lightweight Implementation of V2Ray, in Rust Programming Language

GUI Support

qv2ray

qv2ray

Features

  • Proxy chains
  • Full Cone UDP for Shadowsocks/Trojan/Direct
  • Fast route algorithm
    • Hybrid/Mph Domain matcher
    • Longest prefix match for CIDR route
  • ClientHello fingerprinting resistance
  • Easy configuration

Config example

# default_outbound = "cn"
enable_api_server = true
api_server_addr = "127.0.0.1:1999"

[[ss]]
addr = "127.0.0.1:9000"
password = "123456"
method = "chacha20-poly1305"
tag = "ss0"
[[ss]]
addr = "127.0.0.1:9001"
password = "123456"
method = "chacha20-poly1305"
tag = "ss1"
[[ss]]
addr = "127.0.0.1:9002"
password = "123456"
method = "chacha20-poly1305"
tag = "ss2"
[[ss]]
addr = "127.0.0.1:9004"
password = "123456"
method = "chacha20-poly1305"
tag = "ss3"

[[vmess]]
addr = "127.0.0.1:10002"
uuid = "b831381d-6324-4d53-ad4f-8cda48b30811"
method = "aes-128-gcm"
tag = "v"

[[trojan]]
addr = "127.0.0.1:10003"
password = "password"
tag = "t"

[[ws]]
uri = "ws://127.0.0.1:10002/?ed=2048"
tag = "w"

[[direct]]
tag = "d"

[[h2]]
tag = "h2"
hosts = ["example.org"]
path = "/test"

[[grpc]]
tag = "grpc"
host = "127.0.0.1:10002"
service_name = "gungungun"

[[outbounds]]
chain = ["grpc","v"]
#chain = ["h2","v"]
# chain = ["w","v","ss2"]
# chain = ["t","w","v"]
# chain = ["ss0","ss1","ss2","ss3"]
# chain = ["ss0","ss1","ss2","ss3","w","v"]
# chain = ["ss0"]
# debug
tag = "cn"

[[blackhole]]
tag = "b"


[[outbounds]]
chain = ["d"]
tag = "private"

[[inbounds]]
addr = "127.0.0.1:1087"
enable_udp = true
tag = "mixed"

# [[dokodemo]]
# addr = "127.0.0.1:12345"
# tproxy = true
[[ip_routing_rules]]
tag = "block"
# only block 192.168.0.1 and route 192.168.0.2-192.168.0.254 to other outbounds
cidr_rules = ["192.168.0.1/32"]

[[domain_routing_rules]]
tag = "block"
domain_rules = ["baidu.com"]


# If file path is not provided,
# v2ray-rs will read env varaiable `v2ray.location.asset` or `V2RAY_LOCATION_ASSET` or current exe dir
[[geosite_rules]]
tag = "cn"
# file_path = "your_custom_geosite_file_path"
rules = ["cn"]

# If file path is not provided,
# v2ray-rs will read env varaiable `v2ray.location.asset` or `V2RAY_LOCATION_ASSET` or current exe dir
[[geoip_rules]]
tag = "cn"
# file_path = "your_custom_geoip_file_path"
rules = ["cn"]

# If file path is not provided,
# v2ray-rs will read env varaiable `v2ray.location.asset` or `V2RAY_LOCATION_ASSET` or current exe dir
[[geoip_rules]]
tag="private"
# file_path = "your_custom_geoip_file_path"
rules = ["private"]


[[outbounds]]
chain = ["b"]
tag = "block"

# [[dokodemo]]
# addr = "127.0.0.1:12345"
# tproxy = true

Roadmap

๐Ÿšง Interested but not implemented yet โœ… Implemented โŒ Not Interested ๐Ÿค”

geosite fast matcher

geoip fast matcher

Rust generator

socks5

  • โœ… socks5 Inbound
  • โœ… UDP support

http

  • โœ… http Inbound
  • โœ… mixed Inbound

Vmess

  • โœ… Vmess Aead Outbound
  • โœ… UDP support

Shadowsocks

  • โœ… Shadowsocks Outbound
  • โœ… UDP support

Trojan

  • โœ… Trojan
  • โœ… UDP support

VLESS

  • โŒ

Chainable Steam

  • โœ…

Chainable UDP

  • โœ…

Stream settings

  • โœ… TLS
  • โœ… HTTP/2
  • โœ… WebSocket
  • โœ… WebSocket-0-rtt
  • โœ… gRPC
  • โŒ QUIC
  • โŒ DomainSocket
  • โŒ mKCP

Router

  • โœ… geosite
  • โœ… geoip

v2ray-rust's People

Contributors

dependabot[bot] avatar darsvador avatar zedifen avatar ducksoft avatar johnshall avatar moodyhunter 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.