All Projects → Ehco1996 → v2scar

Ehco1996 / v2scar

Licence: GPL-3.0 License
sidecar for V2ray

Programming Languages

go
31211 projects - #10 most used programming language
Dockerfile
14818 projects
Makefile
30231 projects

Projects that are alternatives of or similar to v2scar

Django Sspanel
用diango开发的shadowsocks/V2ray面板
Stars: ✭ 2,538 (+2340.38%)
Mutual labels:  v2ray, sspanel
xray-node
Python 开发的基于 xray-core 的多用户代理后端,支持用户动态管理和流量统计。
Stars: ✭ 20 (-80.77%)
Mutual labels:  v2ray, sspanel
tailscale-sidecar
A TCP proxy used to expose services onto a tailscale network without root. Ideal for container environments.
Stars: ✭ 87 (-16.35%)
Mutual labels:  sidecar
get subscribe
✈️ 免费机场 / 免费VPN -> 自动获取免 clash/v2ray/trojan/sr/ssr 订阅链接,间隔12小时持续更新 | 科学上网 | 翻墙
Stars: ✭ 1,512 (+1353.85%)
Mutual labels:  v2ray
free
freefq账号已恢复,此号暂停使用!--翻墙、免费翻墙、免费科学上网、免费节点、免费梯子、免费ss/v2ray/trojan节点、蓝灯、谷歌商店、翻墙梯子
Stars: ✭ 280 (+169.23%)
Mutual labels:  v2ray
ss-v2ray-docker
Deprecated: please use https://hub.docker.com/r/mazy/ss-xray
Stars: ✭ 28 (-73.08%)
Mutual labels:  v2ray
V2RayGeoKit
No description or website provided.
Stars: ✭ 26 (-75%)
Mutual labels:  v2ray
sidecar
Deploy and execute AWS Lambda functions from your Laravel application.
Stars: ✭ 543 (+422.12%)
Mutual labels:  sidecar
spring-cloud-sidecar-polygot
This project contains samples demonstrating the usage of side car polygot
Stars: ✭ 30 (-71.15%)
Mutual labels:  sidecar
c2ray step by step
一步一步教你安装 c2ray 服务端(caddy+v2ray)
Stars: ✭ 13 (-87.5%)
Mutual labels:  v2ray
mieru
見える是一款 socks5 网络代理(科学上网)工具。Mieru is a socks5 proxy to bypass censorship.
Stars: ✭ 63 (-39.42%)
Mutual labels:  v2ray
v2rayfree
免费公益v2ray节点订阅、最新免费v2ray节点订阅地址、免费v2ray节点每日更新、免费ss/v2ray/trojan节点、freefq
Stars: ✭ 352 (+238.46%)
Mutual labels:  v2ray
dockerfile
A collection of dockerfile I use
Stars: ✭ 90 (-13.46%)
Mutual labels:  v2ray
authorization-proxy
No description or website provided.
Stars: ✭ 31 (-70.19%)
Mutual labels:  sidecar
docker-v2ray
A docker-compose deployment for v2ray + WebSocket + TLS setup.
Stars: ✭ 30 (-71.15%)
Mutual labels:  v2ray
v2ray-nodes
v2ray,shadowrocket节点
Stars: ✭ 691 (+564.42%)
Mutual labels:  v2ray
kubernetes-sidecar-injector
Easy Service Mesh with Kong and Kubernetes
Stars: ✭ 20 (-80.77%)
Mutual labels:  sidecar
v2ray
每日分享免费节点、免费机场、ssr节点、v2ray节点、v2ray订阅、clash节点、clash订阅、shadowrocket订阅、Quantumult X订阅、Clash .NET订阅、小火箭节点、小猫咪节点、免费翻墙、免费科学上网、免费梯子、免费trojan节点、蓝灯、谷歌商店、翻墙梯子、安卓VPN、iphone翻墙节点、iphone vpn、一键翻墙浏览器、节点分享、免费SSR、蓝灯、谷歌商店、V2ary免费节点、代理、proxy代理科学上网、TG代理、电报代理、Telegram代理、ip加速、翻墙软件、socks5、破解VPN、机场推荐、节点订阅、破解VPN
Stars: ✭ 525 (+404.81%)
Mutual labels:  v2ray
geoip
🌚 🌍 🌝 GeoIP 规则文件加强版,同时支持定制 V2Ray dat 格式路由规则文件 geoip.dat 和 MaxMind mmdb 格式文件 Country.mmdb。Enhanced edition of GeoIP files for V2Ray, Xray-core, Trojan-Go, Clash and Leaf, with replaced CN IPv4 CIDR available from ipip.net, appended CIDR lists and more.
Stars: ✭ 524 (+403.85%)
Mutual labels:  v2ray
management-api-for-apache-cassandra
RESTful / Secure Management Sidecar for Apache Cassandra
Stars: ✭ 50 (-51.92%)
Mutual labels:  sidecar

v2scar

Sidecar For V2ray

go-releaser

视频安装教程

  • 面板视频安装教程: 地址

  • 后端对接视频教程: 地址

  • 隧道对接视频教程: 地址

原理介绍

该项目需要以 sidecar 的形式和 v2ray 部署在一台机器上

他通过grpc接口动态添加/删除V2ray的 Vmess/Trojan 用户, 并统计流量

通过接入 django-sspanel 的api,可以动态调节v2ray的Vmess/Trojan用户

目前实现了以下几个接口:

  • AddInboundUser
  • RemoveInboundUser
  • GetAndResetUserTraffic

使用说明

  • 可以直接以cli的形式运行:

./v2scar --api-endpoint="xxx" --grpc-endpoint="127.0.0.1:8080" --sync-time=60

  • 或者通过配置环境变量来运行:
export V2SCAR_SYNC_TIME=60 # 和django-sspanel同步的时间间隔
export V2SCAR_API_ENDPOINT="xxxx" # 这个是django-sspanel的sync api 地址
export V2SCAR_GRPC_ENDPOINT="127.0.0.1:8080" # 这个是机器上v2ray开放的grpc地址

配置V2ray:

这只是一份参考的配置, 关键的部分在于 stats/api/policy/routing

另外如果需要对接 django-sspanel的话,配置里的inbound的 port/tag/level 必须和面板后台里的配置相同

{
    "stats": {},
    "api": {
        "tag": "api",
        "services": [
            "HandlerService",
            "StatsService"
        ]
    },
    "log": {
        "loglevel": "warning"
    },
    "policy": {
        "levels": {
            "0": {
                "statsUserUplink": true,
                "statsUserDownlink": true
            }
        },
        "system": {
            "statsInboundUplink": true,
            "statsInboundDownlink": true
        }
    },
    "inbounds": [
        {
            "tag": "proxy",
            "port": 10086,
            "protocol": "vmess",
            "settings": {
                "clients": []
            }
        },
        {
            "listen": "127.0.0.1",
            "port": 8080,
            "protocol": "dokodemo-door",
            "settings": {
                "address": "127.0.0.1"
            },
            "tag": "api"
        }
    ],
    "outbounds": [
        {
            "protocol": "freedom",
            "settings": {}
        }
    ],
    "routing": {
        "settings": {
            "rules": [
                {
                    "inboundTag": [
                        "api"
                    ],
                    "outboundTag": "api",
                    "type": "field"
                }
            ]
        },
        "strategy": "rules"
    }
}

dev

go get v2ray的时候需要 export GONOSUMDB=v2ray.com/core,github.com/v2fly/v2ray-core

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].