VPN

nginx wss:// -> ws:// 31337 -> wireguard

wstunnel -v --udp --udpTimeoutSec -1 -L 0.0.0.0:51820:127.0.0.1:51820 --upgradePathPrefix iHzoHGjXQOzl3hLl [wss://gotem.arinc9.com](wss://gotem.arinc9.com/)

Result: ~50mbps inconsistent

nginx ws:// -> ws:// 31337 -> wireguard

wstunnel -v --udp --udpTimeoutSec -1 -L 0.0.0.0:51820:127.0.0.1:51820 --upgradePathPrefix iHzoHGjXQOzl3hLl [ws://gotem.arinc9.com](wss://gotem.arinc9.com/)

Result: ~50mbps inconsistent

Proxy

nginx wss:// -> ws:// 31337

wstunnel -v -D 0.0.0.0:8888 --upgradePathPrefix iHzoHGjXQOzl3hLl [wss://gotem.arinc9.com](wss://gotem.arinc9.com/)

Result: 50 - 50

nginx ws:// -> ws:// 31337

wstunnel -v -D 0.0.0.0:8888 --upgradePathPrefix iHzoHGjXQOzl3hLl [ws://gotem.arinc9.com](wss://gotem.arinc9.com/)

Result: 50 - 50

Change configuration