نصب V2Ray با اسکریپت رسمی:
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)ایجاد UUID برای احراز هویت:
cat /proc/sys/kernel/random/uuidپیکربندی VMess با WebSocket:
nano /usr/local/etc/v2ray/config.json{
"inbounds": [{
"port": 10000,
"listen": "127.0.0.1",
"protocol": "vmess",
"settings": {
"clients": [{"id": "YOUR_UUID_HERE", "alterId": 0}]
},
"streamSettings": {
"network": "ws",
"wsSettings": {"path": "/v2ray"}
}
}],
"outbounds": [{"protocol": "freedom"}]
}systemctl enable v2ray
systemctl start v2ray