🟢 Linux:
apt update
apt ugprade -y
apt install git -y
apt install python3-pip -y
apt install python3-venv -y
python3 -m pip install --upgrade pip -y
git clone https://github.com/Surfboardv2ray/Xray-Load-Balancer.git
cd Xray-Load-Balancer
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
python3 server.py
🟢 Android Termux:
apt update
apt ugprade
apt install git -y
apt install python -y
git clone https://github.com/Surfboardv2ray/Xray-Load-Balancer.git
cd Xray-Load-Balancer
pip install -r requirements.txt
python server.py
Caution
Installation includes git, python, package updates and python requirements. Please note that, specially for running Android Termux locally, it will bypass y/n prompt and default to install without confirmation, resulting in charging you extra for downloaded packages; if not priorly installed.
🟡 Python Anywhere
Deploying on pythonanywhere, run the Linux command on a bash console. Edit your webapp wsgi.py
file as following (replace your_username
with your own):
import sys
import os
project_home = '/home/your_username/Xray-Load-Balancer'
if project_home not in sys.path:
sys.path.insert(0, project_home)
os.chdir(project_home)
from server import app as application
🟡 Below is the list of currently supported protocols for creating a Load Balancer Xray config:
- VLESS+GRPC
- VLESS+GRPC+TLS
- VLESS+TCP
- VLESS+TCP+HTTP
- VLESS+TCP+TLS
- VLESS+TCP+TLS+HTTP
- VLESS+TCP+REALITY
- VLESS+GRPC+REALITY
- VLESS+WS
- VLESS+WS+TLS
- VLESS+WS+HTTP
- VLESS+WS+HTTP+TLS
- VMESS+GRPC
- VMESS+GRPC+TLS
- VMESS+TCP
- VMESS+TCP+HTTP
- VMESS+TCP+TLS
- VMESS+TCP+TLS+HTTP
- VMESS+WS
- VMESS+WS+TLS
- VMESS+WS+HTTP
- VMESS+WS+HTTP+TLS
- TROJAN+TCP
- TROJAN+TCP+HTTP
- TROJAN+TCP+TLS
- TROJAN+TCP+TLS+HTTP
- TROJAN+TCP+REALITY
- TROJAN+GRPC+REALITY
- TROJAN+GRPC+TLS
- TROJAN+WS
- TROJAN+WS+TLS
- TROJAN+WS+HTTP
- TROJAN+WS+HTTP+TLS
🟡 v2ray to JSON converter copyrights to Am-Delta. They're using Unlicense license for their script.
🟡 Base JSON derived from Xray Proxy Grabber. They're using MIT License.