ErcinDedeoglu/cloudflare-warp
À propos
Dockerized Cloudflare WARP client with SOCKS5 & HTTP proxy support. Features authentication, rate limiting, IP whitelisting, and dual-mode routing (WARP or direct exit). Perfect for privacy, geo-bypass, and secure browsing.
Systèmes et infrastructureProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- +2
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalCloudflare WARP
Run Cloudflare WARP in Docker. Provides SOCKS5 and HTTP proxies that route traffic through Cloudflare's network. Supports multiple WARP instances in a single container for IP rotation.
Quick Start
services:
warp:
image: dublok/cloudflare-warp:latest
container_name: warp
restart: always
ports:
- "1080:1080" # SOCKS5 proxy
# - "8080:8080" # HTTP proxy
volumes:
- warp-data:/var/lib/cloudflare-warp
volumes:
warp-data:
docker compose up -d
# Test SOCKS5 proxy
curl --socks5-hostname 127.0.0.1:1080 https://cloudflare.com/cdn-cgi/trace
# Test HTTP proxy (if port 8080 exposed)
curl -x http://127.0.0.1:8080 https://cloudflare.com/cdn-cgi/trace
If working, you'll see warp=on in the output.
Environment Variables
| Variable | Description | Default |
|---|---|---|
WARP_INSTANCES |
Number of WARP instances. Each gets a unique Cloudflare IP. Traffic is round-robined across all instances. No extra capabilities required | 1 |
WARP_LICENSE_KEY |
WARP+ license key. Comma-separated for multiple keys — tries each in order, skips any that fail | - |
WARP_ORG |
Zero Trust team name. Enables automatic enrollment via service token (see Zero Trust section). Mutually exclusive with WARP_LICENSE_KEY |
- |
WARP_AUTH_CLIENT_ID |
Service token Client ID (required when WARP_ORG is set) |
- |
WARP_AUTH_CLIENT_SECRET |
Service token Client Secret (required when WARP_ORG is set) |
- |
WARP_CONNECT_TIMEOUT |
Max seconds to wait for WARP daemon | 30 |
PROXY_USER |
Proxy authentication username | - |
PROXY_PASS |
Proxy authentication password | - |
PROXY_ALLOWED_IPS |
IP whitelist (comma-separated CIDRs) | - |
PROXY_MAX_CONN |
Max concurrent connections per IP | 10 |
PROXY_MAX_RPS |
Max requests per second per IP | 10 |
SS_METHOD |
Shadowsocks encryption method | chacha20-ietf-poly1305 |
With Authentication
services:
warp:
image: dublok/cloudflare-warp:latest
ports:
- "1080:1080" # SOCKS5 proxy
- "8080:8080" # HTTP proxy
environment:
- PROXY_USER=myuser
- PROXY_PASS=mypassword
volumes:
- warp-data:/var/lib/cloudflare-warp
volumes:
warp-data:
# SOCKS5 with auth
curl --socks5-hostname myuser:[email protected]:1080 https://cloudflare.com/cdn-cgi/trace
# HTTP with auth
curl -x http://myuser:[email protected]:8080 https://cloudflare.com/cdn-cgi/trace
Direct Proxy (Bypass WARP)
Direct proxies are always available that exit through Docker's network without routing through WARP. Useful when you need your real IP for certain services.
| Port | Protocol | Route |
|---|---|---|
| 1080 | SOCKS5 | Through WARP (Cloudflare IP) |
| 1081 | SOCKS5 | Direct (real IP) |
| 8080 | HTTP | Through WARP (Cloudflare IP) |
| 8081 | HTTP | Direct (real IP) |
services:
warp:
image: dublok/cloudflare-warp:latest
ports:
- "1080:1080" # SOCKS5 WARP proxy
- "1081:1081" # SOCKS5 Direct proxy
- "8080:8080" # HTTP WARP proxy
- "8081:8081" # HTTP Direct proxy
environment:
- PROXY_USER=myuser
- PROXY_PASS=mypassword
volumes:
- warp-data:/var/lib/cloudflare-warp
volumes:
warp-data:
# SOCKS5 through WARP (Cloudflare IP)
curl --socks5-hostname myuser:[email protected]:1080 https://ifconfig.me
# SOCKS5 direct exit (your real IP)
curl --socks5-hostname myuser:[email protected]:1081 https://ifconfig.me
# HTTP through WARP (Cloudflare IP)
curl -x http://myuser:[email protected]:8080 https://ifconfig.me
# HTTP direct exit (your real IP)
curl -x http://myuser:[email protected]:8081 https://ifconfig.me
Multi-Instance (IP Rotation)
Set WARP_INSTANCES=N to run multiple WARP daemons in a single container, each with a unique Cloudflare IP. Traffic is round-robined across all instances on the same ports — no extra capabilities required.
environment:
- WARP_INSTANCES=10 # each request exits through a different IP
Each instance uses ~50-100 MB RAM and starts 2 seconds apart. If an instance fails, GOST skips it after 3 failures and retries after 30s.
Zero Trust (Free WARP+ Routing)
Enroll devices into Cloudflare Zero Trust using service tokens for free WARP+ equivalent routing — no browser needed. See the Zero Trust setup guide for configuration and usage.
Mobile VPN (Shadowsocks)
Connect your mobile devices using Shadowsocks apps - works as a system-wide VPN without requiring special Docker privileges. Shadowsocks is always enabled on ports 8388/8389.
Supported Apps
| Platform | App | Price |
|---|---|---|
| Android | Shadowsocks | Free |
| Android | v2rayNG | Free |
| iOS | Shadowrocket | ~$3 |
| iOS | Potatso Lite | Free |
Setup
services:
warp:
image: dublok/cloudflare-warp:latest
ports:
- "8388:8388" # Shadowsocks WARP (Cloudflare IP)
- "8389:8389" # Shadowsocks Direct (real IP)
environment:
- PROXY_PASS=your-secure-password # Optional: sets password for all protocols
volumes:
- warp-data:/var/lib/cloudflare-warp
volumes:
warp-data:
Mobile App Configuration
| Setting | Value |
|---|---|
| Server | Your server IP or domain |
| Port | 8388 (WARP) or 8389 (Direct) |
| Password | Your PROXY_PASS or cloudflare-warp (default) |
| Method | chacha20-ietf-poly1305 (default) |
Available Encryption Methods
Recommended (AEAD):
chacha20-ietf-poly1305(default, recommended for mobile)aes-256-gcmaes-128-gcm
Shadowsocks 2022 (newest, requires base64 key as password):
2022-blake3-aes-128-gcm2022-blake3-aes-256-gcm2022-blake3-chacha20-poly1305
Other:
xchacha20-ietf-poly1305chacha20-poly1305
Port Reference
| Port | Protocol | Route |
|---|---|---|
| 8388 | Shadowsocks | Through WARP (Cloudflare IP) |
| 8389 | Shadowsocks | Direct (real IP) |
License
CC-BY-NC-4.0 - Non-commercial use only with attribution.
Explorer des projets similaires
Chargement…