WhatUsername961
Hey,
I reached out to you before regarding bypassing ISP throttling in Lebanon using Cloudflare, and I’ve implemented everything as you suggested. However, I’m still not getting full speeds.
Since our last discussion, here’s exactly what I’ve done:
1️⃣ VPS & Domain Setup
VPS located outside Lebanon.
Domain proxied through Cloudflare (A record with the orange cloud enabled).
2️⃣ NGINX Reverse Proxy & V2Ray Setup
Installed NGINX and set it up as a reverse proxy.
Installed V2Ray with WebSocket (WS) + TLS, routing traffic through Cloudflare.
Used Certbot to obtain Let’s Encrypt SSL certificates.
3️⃣ Configuration Details
NGINX (/etc/nginx/sites-enabled/default)
server {
listen 80;
server_name (domain is private));
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name (domain is private));;
ssl_certificate /etc/letsencrypt/live/(domain is private)/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/(domain is private)/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location /v2ray {
proxy_redirect off;
proxy_pass http://127.0.0.1:10000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
}
}
V2Ray (/usr/local/etc/v2ray/config.json)
{
"inbounds": [{
"port": 10000,
"protocol": "vmess",
"settings": {
"clients": [{
"id": "32d5ce33-646e-40b6-8e60-afdd728ca4a9",
"alterId": 64
}]
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "/v2ray"
}
}
}],
"outbounds": [{
"protocol": "freedom",
"settings": {}
}]
}
4️⃣ Cloudflare Settings
A record for (domain is private) set to my VPS IP and proxied (orange cloud enabled).
TLS mode: Full (strict).
Using Cloudflare’s CDN to proxy traffic.
5️⃣ Client Configuration (v2rayN on Windows)
Transport: WebSocket (ws)
TLS: Enabled (tls)
Host: (domain is private)
Path: /v2ray
Port: 443
ALPN: http/1.1
Fingerprint: chrome
6️⃣ Testing & Issues
✅ Connection works
❌ Speeds are still throttled
✅ WebSockets work (wscat test successful)
✅ TCP congestion control set to BBR (sysctl net.ipv4.tcp_congestion_control)
✅ Cloudflare traffic is encrypted and proxied correctly
❌ Still not reaching full ISP speeds
The ISP in Lebanon uses a lot of caching, but even with Cloudflare, I can’t reach the speeds I should be getting. Since you managed to get full speeds, do you have any additional tweaks that could help? Maybe specific Cloudflare rules, NGINX optimizations, or a different V2Ray config?
Would really appreciate your insights again.
Thanks,