Single-container WebSocket proxy bridge using Gost over Railway.
curl -sS https://raw.githubusercontent.com/oxo-xux/dxytuni/main/setup.sh | sudo bashYou'll be prompted to enter your Gost WebSocket URL.
Format: wss://username:password@hostname:port
GOST_URL="wss://user:pass@your-server.com:443" curl -sS https://raw.githubusercontent.com/oxo-xux/dxytuni/main/setup.sh | sudo bashRuns cloudflared in a Docker container on the host, with tcp-proxy.py + iptables
REDIRECT to force its traffic through the Gost proxy (cloudflared ignores HTTP_PROXY).
curl -sS https://raw.githubusercontent.com/oxo-xux/dxytuni/main/cloudflare-container.sh | sudo bashcurl -sS https://raw.githubusercontent.com/oxo-xux/dxytuni/main/inner-vm-proxy.sh | sudo bashSets http://10.0.2.2:8796 as system proxy.
curl -sS https://raw.githubusercontent.com/oxo-xux/dxytuni/main/inner-vm-setup.sh | sudo bashPrompts for Cloudflare tunnel token, then installs the port-7844 forwarder,
adds Cloudflare edge hostnames to /etc/hosts (→ 127.0.0.1), and configures
cloudflared with HTTP/2 through the Gost proxy. Runs on boot.
- Runs a Gost Docker container with
--net=hostlistening on port8796. - Traffic is forwarded over WebSocket Secure (
wss://) through a Railway gateway, bypassing Cloudflare CONNECT blocks. - System proxy is configured via
/etc/profile.d/net-way.sh,/etc/environment, and/etc/apt/apt.conf.d. - Auto-start via
/etc/rc.local. - Installs
qemu-system,cloud-image-utils,wget,lsof. - Patches QEMU
-no-hpetflag for compatibility with QEMU 9.0+.
| Script | Where | Purpose |
|---|---|---|
setup.sh |
Host | Gost bridge + system proxy + QEMU |
cloudflare-container.sh |
Host | Cloudflare Tunnel via Docker + tcp-proxy.py |
inner-vm-proxy.sh |
QEMU VM | System proxy only |
inner-vm-setup.sh |
QEMU VM | port7844 forwarder + cloudflared + proxy |
Environment variables only apply to new shells. To use the proxy in the current session:
source /etc/profile.d/net-way.sh # on host
# or
source /etc/profile.d/proxy.sh # inside VMNew logins will have the proxy automatically.
curl -x http://127.0.0.1:8796 https://ifconfig.me