Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

9 Commits

Repository files navigation

S-UIWARP

Buy me a coffee

S-UI + Cloudflare WARP in one command. Deploy a multi-protocol proxy server with clean Cloudflare IP exit in under 2 minutes.

bash <(curl -sL https://raw.githubusercontent.com/iPythoning/SUIWARP/main/setup.sh)

What It Does

SUIWARP automates the entire setup of a production-ready proxy server:

  1. Installs S-UI — sing-box management panel with 6 proxy protocols
  2. Registers free Cloudflare WARP — via wgcf
  3. Routes traffic through WARP — via wireproxy (userspace WireGuard, ~4MB RAM)
  4. Configures firewall, swap, DNS — hardened and OOM-proof

Architecture

Standard mode (WARP exit):

Client ──→ Your Server (S-UI / sing-box)
│
├─ VLESS Reality Vision :443/tcp
├─ TUIC v5 :443/udp
├─ Hysteria2 :8443/udp
├─ VLESS Reality gRPC :2053/tcp
├─ Trojan Reality :8880/tcp
├─ VLESS Reality WS :2083/tcp
├─ VLESS CDN WS :2052/tcp ← CF CDN relay
├─ ShadowTLS v3+SS2022 :9443/tcp ← anti-DPI
├─ VLESS HTTPUpgrade :10443/tcp ← stealth HTTP
└─ Hysteria2 PortHop :20000-40000/udp
│
▼
wireproxy (SOCKS5, ~4MB)
│
▼
Cloudflare WARP → Exit IP: Cloudflare (AS13335)

--no-warp mode (direct exit — for residential IPs):

Client ──→ Your Server (S-UI / sing-box)
│
└─ [all protocols]
│
▼
Exit IP: Your server's residential IP (direct)

Why WARP?

VPS/DatacenterResidential IP (--no-warp)
Datacenter IP easily flaggedResidential IP already clean
Use WARP for Cloudflare exitSkip WARP — exit directly
+4MB RAM (wireproxy)No wireproxy needed

Requirements

  • OS: Ubuntu 20.04+ / Debian 11+ (x86_64 or ARM64)
  • RAM: 1GB minimum (512MB usable after OS)
  • Access: Root SSH

Quick Start

1. Deploy

Standard (WARP exit — for datacenter/VPS IPs):

bash <(curl -sL https://raw.githubusercontent.com/iPythoning/SUIWARP/main/setup.sh)

Direct exit — for static residential IPs (no WARP needed):

bash <(curl -sL https://raw.githubusercontent.com/iPythoning/SUIWARP/main/setup.sh) --no-warp

Use --no-warp when your server already has a clean residential IP. WARP is skipped entirely — traffic exits directly via your server IP, saving ~4MB RAM and a registration step.

2. Get Client Links

After installation, find your client links at:

cat /root/suiwarp-client-links.txt

Or visit the S-UI panel:

http://YOUR_IP:2095/app/
Default: admin / admin ← change immediately!

3. Connect

Import the links into your preferred client:

PlatformRecommended Client
Windowsv2rayN
macOSV2Box
iOSShadowrocket, Stash
Androidv2rayNG, NekoBox
Linuxnekoray

Buy me a coffee

Protocols

#ProtocolPortTransportBest For
1VLESS Reality Vision443/tcpTCPDaily use (most covert)
2TUIC v5443/udpQUICGaming (low latency)
3Hysteria28443/udpQUICStreaming (max speed)
4VLESS Reality gRPC2053/tcpgRPCMultiplexing (stable)
5Trojan Reality8880/tcpTCPClassic fallback
6VLESS Reality WS2083/tcpWebSocketCDN/firewall bypass
7VLESS CDN WS2052/tcpWS + CF CDNIP hidden behind Cloudflare
8ShadowTLS v3 + SS20229443/tcpShadowTLSAnti-DPI, looks like normal TLS
9VLESS HTTPUpgrade10443/tcpHTTPUpgrade + RealityStealth HTTP, lighter than WS
10Hysteria2 Port Hopping20000-40000/udpQUICAnti-QoS, port randomization

CDN Relay (Protocol 7)

Hides your server IP behind Cloudflare CDN. Even if the VPS IP is blocked, the CDN relay still works.

Setup: Add a Cloudflare DNS A record pointing to your server (Proxied/orange cloud), then use the generated link with your CF domain.

ShadowTLS v3 (Protocol 8)

Performs a real TLS handshake with a legitimate site (e.g., www.microsoft.com), making traffic indistinguishable from normal HTTPS. The most DPI-resistant protocol available.

Client: Requires sing-box based clients (NekoBox, sing-box CLI). Config saved to /root/suiwarp-extra-links.txt.

VLESS HTTPUpgrade (Protocol 9)

Lighter than WebSocket — uses HTTP Upgrade mechanism with Reality TLS. Lower overhead, harder to fingerprint than standard WS.

Hysteria2 Port Hopping (Protocol 10)

Server uses iptables DNAT to redirect UDP ports 20000-40000 to the Hysteria2 listener. Client randomly hops between ports, defeating QoS throttling and port-based blocking.

ECH (Encrypted Client Hello)

Cloudflare automatically enables ECH for proxied domains. When using CDN relay (Protocol 7) with sw.your-domain.com, SNI is encrypted end-to-end on supported clients (Chrome 130+, Firefox 128+). No server config needed.

Resource Usage

ComponentRAMDescription
S-UI (sing-box)~50MBPanel + 8 protocol inbounds
sing-box (extra)~6MBShadowTLS v3 + HTTPUpgrade
wireproxy~4MBWARP tunnel
Total~60MBFits on 512MB VPS

Management

# Service status
systemctl status s-ui
systemctl status wireproxy-warp
# View logs
journalctl -u s-ui -f
journalctl -u wireproxy-warp -f
# Restart services
systemctl restart s-ui
systemctl restart wireproxy-warp
# Check WARP exit IP
curl -x socks5h://127.0.0.1:40000 ifconfig.me
# Check direct IP
curl ifconfig.me

Uninstall

bash <(curl -sL https://raw.githubusercontent.com/iPythoning/SUIWARP/main/uninstall.sh)

Or if you have the repo cloned:

bash uninstall.sh

How It Works

The key insight is using wireproxy — a userspace WireGuard implementation that exposes a local SOCKS5 proxy. This avoids:

  • Kernel WireGuard module dependency
  • TUN device permissions
  • sing-box WireGuard compilation flags
  • Heavy warp-cli daemon (~100MB RAM)

Instead, wireproxy runs a ~4MB process that tunnels traffic through Cloudflare WARP and exposes 127.0.0.1:40000 as a SOCKS5 proxy. S-UI's sing-box is configured to route all outbound traffic through this SOCKS5 proxy, making all client traffic exit through Cloudflare's network.

Firewall Ports

PortProtocolService
443/tcpTCPVLESS Reality Vision
443/udpUDPTUIC v5
8443/udpUDPHysteria2
2053/tcpTCPVLESS Reality gRPC
8880/tcpTCPTrojan Reality
2083/tcpTCPVLESS Reality WS
2052/tcpTCPVLESS CDN WS (CF relay)
9443/tcpTCPShadowTLS v3 + SS2022
10443/tcpTCPVLESS HTTPUpgrade
20000-40000/udpUDPHysteria2 Port Hopping
2095/tcpTCPS-UI Panel
2096/tcpTCPSubscription Server

Credits

  • S-UI — sing-box web panel
  • sing-box — universal proxy platform
  • wireproxy — userspace WireGuard proxy
  • wgcf — Cloudflare WARP config generator

License

MIT

Buy me a coffee

About

S-UI + Cloudflare WARP one-liner. 6 protocols, clean IP exit, ~54MB RAM. Deploy in 2 minutes.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages