Loading...
Loading...
Rust CLI + desktop UI for DPI bypass via Google Apps Script relay with TLS SNI concealment, supporting HTTP and SOCKS5 proxies
npx skill4agent add aradotso/trending-skills masterhttprelayvpn-rustSkill by ara.so — Daily 2026 Skills collection.
www.google.comBrowser → HTTP(8085)/SOCKS5(8086) → mhrv-rs → TLS to Google IP (SNI: www.google.com)
→ Google edge → Apps Script relay → real destinationmhrv-rs-linux-x86_64.tar.gzmhrv-rs-macos-aarch64.tar.gzmhrv-rs-macos-x86_64.tar.gzmhrv-rs-windows-x86_64.zipmhrv-rs-android-universal-v*.apk# CLI only
cargo build --release
# CLI + desktop UI (egui)
cargo build --release --features ui
# Binaries output to:
# target/release/mhrv-rs (CLI)
# target/release/mhrv-rs-ui (Desktop UI)# macOS / Linux
sudo ./mhrv-rs --install-cert
# Windows (run as Administrator)
mhrv-rs.exe --install-cert
# Or use platform launchers (also starts the UI):
./run.command # macOS
./run.sh # Linux
run.bat # Windowsca/ca.crtca/ca.key~/Library/Application Support/mhrv-rs/config.json~/.config/mhrv-rs/config.json%APPDATA%\mhrv-rs\config.json./config.jsonconfig.json{
"mode": "apps_script",
"script_id": "AKfycby...",
"auth_key": "$AUTH_KEY_FROM_CODE_GS",
"google_ip": "216.239.38.120",
"front_domain": "www.google.com",
"http_port": 8085,
"socks5_port": 8086
}config.json{
"mode": "apps_script",
"script_id": "AKfycby...,AKfycbz...",
"auth_key": "$YOUR_AUTH_KEY",
"google_ip": "216.239.38.120",
"front_domain": "www.google.com",
"http_port": 8085,
"socks5_port": 8086,
"hosts": {
"example.com": "direct"
},
"upstream_socks5": null
}mode"apps_script""google_only"script_idauth_keyAUTH_KEYCode.gsgoogle_ip216.239.38.120front_domainwww.google.comhosts"direct"upstream_socks5"127.0.0.1:1080"{
"mode": "google_only",
"google_ip": "216.239.38.120",
"front_domain": "www.google.com",
"http_port": 8085,
"socks5_port": 8086
}script.google.comCode.gs# Start proxy server (reads config.json)
mhrv-rs serve
# Start with explicit config file
mhrv-rs serve --config /path/to/config.json
# Test end-to-end relay connectivity
mhrv-rs test
# Test SNI fronting only (no config required beyond google_ip + front_domain)
mhrv-rs test-sni
# Scan for fastest Google IP from your network
mhrv-rs scan-ips
# Install MITM CA to system trust store
mhrv-rs --install-cert
# Show version
mhrv-rs --version
# Show help
mhrv-rs --helpCode.gsconst AUTH_KEY = "your-strong-secret-here";AKfycby...config.jsonscript_id127.0.0.1:8085# Test with curl through the HTTP proxy
curl -x http://127.0.0.1:8085 https://example.com# curl via SOCKS5
curl --socks5 127.0.0.1:8086 https://example.com
# Use with any SOCKS5-aware application
export ALL_PROXY=socks5://127.0.0.1:8086{
"script_id": "AKfycby_first...,AKfycby_second...,AKfycby_third..."
}{
"hosts": {
"internal.company.com": "direct",
"192.168.1.0/24": "direct"
}
}{
"upstream_socks5": "127.0.0.1:10808"
}# Run CLI in background
nohup mhrv-rs serve > mhrv-rs.log 2>&1 &
# Or with systemd
cat > /etc/systemd/system/mhrv-rs.service << 'EOF'
[Unit]
Description=MasterHttpRelayVPN-RUST
After=network.target
[Service]
ExecStart=/usr/local/bin/mhrv-rs serve
Restart=on-failure
User=nobody
WorkingDirectory=/etc/mhrv-rs
[Install]
WantedBy=multi-user.target
EOF
systemctl enable --now mhrv-rs# Launch UI directly
./mhrv-rs-ui # Linux/macOS
mhrv-rs-ui.exe # Windowsmhrv-rs-android-universal-v*.apktun2proxy127.0.0.1:1081google_onlyupstream_socks5# Check if mhrv-rs is running
ps aux | grep mhrv-rs
# Check ports are listening
ss -tlnp | grep -E '8085|8086' # Linux
netstat -an | grep -E '8085|8086' # macOS/Windows
# Try a different port if 8085 is taken
# Set http_port: 8181 in config.json# CA not installed — run:
sudo mhrv-rs --install-cert
# Firefox: manually import ca/ca.crt
# Settings → Privacy & Security → Certificates → View Certificates → Authorities → Importscript_idAUTH_KEYCode.gsauth_keyconfig.jsonmhrv-rs scan-ipsgoogle_ipgoogle_onlycp config.google-only.example.json config.json
mhrv-rs serve
# Set browser proxy to 127.0.0.1:8085
# Now open script.google.com in browser and deploy Code.gsmhrv-rs test-snimhrv-rs test
# Or via curl:
curl -v -x http://127.0.0.1:8085 https://httpbin.org/ipmhrv-rs/ # binary
mhrv-rs-ui/ # desktop UI binary
config.json # your config
ca/
ca.crt # MITM root cert (public, installed to system)
ca.key # MITM root key (private, stays local)
assets/
apps_script/
Code.gs # Apps Script relay source to deploy to Google