Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Net Way — Gost Docker Proxy

Single-container WebSocket proxy bridge using Gost over Railway.

Usage (host)

curl -sS https://raw.githubusercontent.com/oxo-xux/dxytuni/main/setup.sh | sudo bash

You'll be prompted to enter your Gost WebSocket URL.

Format: wss://username:password@hostname:port

Pass URL directly (no prompt)

GOST_URL="wss://user:pass@your-server.com:443" curl -sS https://raw.githubusercontent.com/oxo-xux/dxytuni/main/setup.sh | sudo bash

Cloudflare Tunnel on Host (Docker)

Runs 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 bash

Usage (inside QEMU VM)

Web proxy only

curl -sS https://raw.githubusercontent.com/oxo-xux/dxytuni/main/inner-vm-proxy.sh | sudo bash

Sets http://10.0.2.2:8796 as system proxy.

Full setup with Cloudflare Tunnel (port7844 forwarder + cloudflared)

curl -sS https://raw.githubusercontent.com/oxo-xux/dxytuni/main/inner-vm-setup.sh | sudo bash

Prompts 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.

How it works

  • Runs a Gost Docker container with --net=host listening on port 8796.
  • 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-hpet flag for compatibility with QEMU 9.0+.

Scripts

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

After setup

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 VM

New logins will have the proxy automatically.

Check if it's working

curl -x http://127.0.0.1:8796 https://ifconfig.me

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages