🧭 1. Problem Background (Real-World Use Case)
On my Android phone, I simultaneously use two VPN network architectures:
🟢 Option A: Vultr + WireGuard (Singapore)
- Server: Vultr (Singapore node)
- Protocol: WireGuard (pure)
- Android performance:
- ✔ Play Store opens normally
- ✔ App updates show a download progress bar
- ✔ Updates complete stably
📷 (Figure 2: Vultr WireGuard updating normally)

🔴 Option B: ZgoCloud + Wstunnel + WireGuard + Clash Verge Rev (Los Angeles)
- Server: ZgoCloud (Los Angeles node)
- Architecture:
- Wstunnel → WireGuard → Clash Verge Rev
- Android performance:
- ✔ Play Store page can open
- ❌ App updates:
- Stuck on “Waiting for download”
- No download progress
- Ultimately fails
📷 (Figure 1: Play Store unable to update)

👉 Initial assessment:
- Is it related to **server location (Singapore vs. Los Angeles)**?
🌐 2. Traffic Verification (Does Play Store traffic go through the proxy?)
On Android, I used FlClash to inspect the requests:
Key Evidence
play.googleapis.com → Proxy
play-fe.googleapis.com → Proxy
📷 (Figure 3: FlClash Google requests)

Conclusion
- ✔ All Play Store traffic goes through the proxy chain
- ❌ No direct connection exists
- ❌ Ruled out DNS / Clash GEOIP rule issues
📊 3. Preliminary Analysis (Interim Assessment)
| Factor | Proportion |
|---|---|
| Wstunnel encapsulation + high latency | 60% |
| Google Play long connection sensitivity | 25% |
| ZgoCloud Los Angeles node quality | 10% |
| Clash traffic splitting | 5% |
👉 Preliminary conclusion:
The download failure is more likely caused by Wstunnel + long-link quality degradation
🔬 4. Standalone WireGuard Verification (wg1 Setup)
⚠️ 4.1 Reason for Triggering wg1
In the wg0 (51820) environment:
📷 (Figure 4) No “Latest handshake”

- Android WireGuard:
- ❌ No handshake (no “Latest handshake”)
- Conclusion:
- Port 51820 UDP appears to be blocked or interfered with
🧱 4.2 Original Intent of the wg1 Architecture Design
Goal:
Verify WireGuard availability independently without affecting Wstunnel
⚙️ 4.3 Complete wg1 Build Process (Key Details Supplemented)
Step 1: Copy the configuration file
cp /etc/wireguard/wg0.conf /etc/wireguard/wg1.conf
Modifications:
- ListenPort →
35698 - Subnet →
10.8.0.0/24
Step 2: Attempt to modify wireguard.sh (Failed)
Original idea:
WG_CONF=/etc/wireguard/wg1.conf
However:
- ❌ The script does not support dynamic configuration file parameters
Step 3: Copy the management script
cp wireguard.sh wireguardwg1.sh
chmod +x wireguardwg1.sh
Modifications made:
- WG_CONF → wg1.conf
- client storage → wg1
Step 4: Generate the key system
wg genkey | tee privatekey_client_wg1 | wg pubkey > publickey_client_wg1
wg genpsk > psk_client_wg1
Generated:
- client private key
- client public key
- preshared key
Step 5: Android configuration
[Interface]
PrivateKey = xxx
Address = 10.8.0.3/32
DNS = 8.8.8.8, 8.8.4.4
[Peer]
PublicKey = wg1_server_pub
PresharedKey = xxx
Endpoint = 154.21.196.249:35698
AllowedIPs = 0.0.0.0/0
MTU = 1240
📷 (Figure 5: wg1 handshake successful)

❌ 4.4 wg1 Test Results
- ✔ WireGuard handshake normal
- ❌ Play Store cannot open
- ❌ MTU adjustment ineffective
📷 (Figure 6: Play Store inaccessible)

Conclusion:
WG connects, but the application layer fails (Google Play unavailable)
🧨 5. Summary of wg1 Setup Failure
- No issue with WireGuard itself
- The problem stems from:
- Complex Wstunnel routing path
- Los Angeles node quality
- Degraded long connection quality
🔁 6. Final Verification (Abandoning Wstunnel)
Step 1: Modify the wg0 port
51820 → 36425
📷 (Figure 7: Port modification)

Step 2: Results
📷 (Figure 8)

- ✔ Play Store restored
- ✔ Download progress bar appears
📷 (Figure 9) Update completed

- ✔ Update completed
📌 7. Final Conclusion
Root Cause Confirmation
| Issue | Conclusion |
|---|---|
| DNS | ❌ Unrelated |
| Clash | ❌ Unrelated |
| Location | ⚠ Secondary factor |
| Wstunnel | ✔ Primary cause (60%+) |
| Long connection quality | ✔ Secondary cause |
📊 8. Revised Impact Model
| Factor | Proportion |
|---|---|
| Wstunnel encapsulation + high latency | 60% |
| Google Play long connection sensitivity | 25% |
| Los Angeles node quality | 10% |
| Clash traffic splitting | 5% |
🧭 9. Final Architecture Solution (Recommended)
🟢 Option 1: Traffic Splitting Architecture (Recommended)
Play Store → WireGuard (Direct connection)
Other traffic → Wstunnel
✔ Stable
✔ Simple
✔ Minimal changes
🟡 Option 2: iptables Multi-Port WireGuard
Client port: 20000–60000
↓
iptables NAT
↓
Server 51820
📌 Dynamic Port Mechanism
- Android WireGuard:
- Automatic/manual port selection (20000–60000)
- Wstunnel:
- Fixed 51820
- The two do not conflict with each other
🧪 Option 3: Wstunnel Optimization Directions (Future)
- Reduce TLS buffer latency
- Adjust websocket frame size
- Optimize keepalive
- Reduce tunneling layer overhead
- Try HTTP/2 / QUIC tunnel (if supported)
🧩 10. Complete Traffic Architecture Diagram
Android
|
-------------------------
| |
WireGuard (Play) Wstunnel + Clash
| |
ZgoCloud ZgoCloud
| |
--------- Internet ------
|
Google Play
🧠 11. Key Takeaways
- WG connectivity ≠ application availability
- Wstunnel amplifies long connection issues
- The Los Angeles node is more sensitive to Google Play
- Play Store is highly sensitive to “download link quality”
- Multi-layer proxies (WG + Wstunnel + Clash) easily introduce hidden failures

