🚀⚡ LEVEL UP YOUR NETWORK, BUILD YOUR OWN FREE PRIVATE VPN 🧠🌐
Creating a free V2Ray configuration without a server using Cloudflare 💡
🚀 Step 0: Prerequisites
✔ Create a Cloudflare account
👉
dash.cloudflare.com
✔ Have a domain (even a free or test one works)
---
🧱 Step 1: Enable Zero Trust
Log in to Cloudflare
From the menu, go to:
Zero Trust
If it’s your first time:
Create a Team Name
---
🌉 Step 2: Create a Tunnel
Go to:
Access → Tunnels
Click:
Create Tunnel
Select:
Cloudflared
Give it a name (for example):
Kavian-tunnel
---
💻 Step 3: Install cloudflared
Download from:
developers.cloudflare.com/cl…
Then run:
🪟 Windows
cloudflared.exe login
🐧 Linux
sudo apt install cloudflared
🍎 macOS
brew install cloudflared
---
🔐 Step 4: Log in to Cloudflare
cloudflared tunnel login
🔹 A browser window will open → select your domain
---
🧪 Step 5: Create Tunnel via CLI
cloudflared tunnel create my-tunnel
📌 Output includes:
. Tunnel ID
. A JSON credentials file saved locally
---
🌍 Step 6: Connect Domain to Tunnel
cloudflared tunnel route dns my-tunnel
vpn.yourdomain.com
📌 Example:
vpn.kavian.xyz
---
⚙️ Step 7: Create Config File
Create a file:
nano config.yml
Paste:
tunnel: YOUR_TUNNEL_ID
credentials-file: /root/.cloudflared/YOUR_JSON_FILE.json
ingress:
- hostname:
vpn.yourdomain.com
service: http://localhost:8080
- service: http_status:404
---
🔌 Step 8: Run the Tunnel
cloudflared tunnel run my-tunnel
Your tunnel is now active ✅
---
⚡ Step 9: Run V2Ray (Local Server)
Now you need to run a local server (e.g., Xray)
Install Xray:
bash <(curl -Ls
github.com/XTLS/Xray-install…)
Create Xray Config:
nano /usr/local/etc/xray/config.json
Example config:
{
"inbounds": [
{
"port": 8080,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "UUID-GENERATE-HERE"
}
],
"decryption": "none"
},
"streamSettings": {
"network": "ws"
}
}
],
"outbounds": [
{
"protocol": "freedom"
}
]
}
---
🆔 Step 10: Generate UUID
cat /proc/sys/kernel/random/uuid
Replace it inside your config
▶️ Run Xray
systemctl start xray
systemctl enable xray
---
🔗 Step 11: Create VLESS Link
Format:
vless://UUID@vpn.yourdomain.com:443?type=ws&security=tls&host=vpn.yourdomain.com&path=/
#CF
📌 Example:
vless://123e4567-e89b-12d3-a456-426614174000@vpn.kavian.xyz:443?type=ws&security=tls&host=vpn.kavian.xyz&path=/
#CF
---
📱 Step 12: Use in Apps
Android:
V2RayNG
iOS:
Shadowrocket
Windows:
V2RayN
👉 Import the link → connect
---
🧠 Important Notes (Very Important!)
✔ The port in Xray (8080) must match the Tunnel config
✔ Your domain must be proxied by Cloudflare (orange cloud ☁️)
✔ TLS is automatically handled by Cloudflare
⚠️ Common Issues:
❌ Not connecting:
* Wrong DNS
*Tunnel not running
❌ Slow speed:
*Cloudflare region
*Your internet connection
🔥 FINAL REALIZATION:
You didn’t just “set up a VPN”…
You learned:
🧠 Infrastructure
🔐 Privacy control
⚡ Self-reliance
💭 KAV MESSAGE
Most people use tools…
Few understand them.
Awareness = Power ⚡
And now… you’re not just a user anymore.
#CyberSecurity #PrivacyMatters #Cloudflare #VPNSetup #Web3Security #TechAwareness #DigitalFreedom