gdirect: Direct Google Drive CLI with IP Sweeping and SNI Spoofing

Repositorymizorewww/gdirectTool

gdirect is a Rust-based Google Drive terminal client designed to bypass network censorship via Google IP sweeps and SNI spoofing. It leverages libaria2 for accelerated, multi-connection downloads without requiring continuous proxy routing.

Key points

  1. Sweeps official Google IP ranges to discover reachable front ends that bypass regional internet censorship.
  2. Employs SNI spoofing (using 'g.cn' as TLS name and the real host in headers) if standard SNI connections are reset.
  3. Pins Google GTS root certificates directly in the binary, ignoring system trust stores for enhanced TLS verification.
  4. Integrates libaria2 to provide fast, multi-connection, and resumable downloads and uploads.
  5. Restricts proxy dependency solely to the initial OAuth sign-in flow, handling file transfers directly.

Why it matters

Engineers and users operating in heavily filtered network environments can achieve high-speed Google Drive transfers without relying on bandwidth-constrained proxy servers.

Analysis

How It Works

gdirect solves the challenge of accessing Google Drive in regions where Google domains are blocked, such as mainland China. Instead of routing full transfer bandwidth through VPNs or proxy tunnels, it probes Google's published IP ranges (goog.json minus cloud.json) for accessible front-end servers. When direct TLS handshakes fail due to SNI filtering, gdirect falls back to forged TLS identities (presenting g.cn during TLS negotiation while preserving the true destination in the HTTP Host header).

Security and Performance Features

By bundling libaria2, the client handles multi-stream, resumable downloads and uploads from the terminal. For security, gdirect ignores the operating system's CA bundle and strictly verifies TLS connections against embedded Google Trust Services (GTS) roots, mitigating risk even when traversing third-party relays. Users can disable the default relay server entirely using --google-only.

Target Audience and Maturity

Licensed under GPL-2.0 with over 750 GitHub stars, gdirect is tailored for technical users operating under strict network filtering. The project demonstrates a well-architected approach to censorship circumvention, though the longevity of its bypass mechanisms depends on ongoing firewall heuristics.

Found in

Summary generated by AI (Gemini 3.8 Flash, 28 October 2026). It may contain errors – the original source is authoritative.

Similar in content, found by the AI search.

  • Repository:cloudflare/pingora

    Cloudflare Pingora: Async Rust Framework for Network Services and Proxies

    Pingora is an open-source Rust framework developed by Cloudflare to build programmable, reliable, and high-performance networked systems and HTTP proxies. Serving as a memory-safe alternative to traditional C/C++ solutions, it has handled over 40 million requests per second in Cloudflare's production environment for years.

    27.3kstarsRust

    Security· Tool

  • Repository:jchultarsky/mirador

    Mirador: An Opinionated Personal Terminal Dashboard in Rust

    Mirador is a personal terminal dashboard built in Rust using Ratatui. It consolidates system metrics, tasks, calendars, notes, and weather into a distraction-free TUI designed to stay open in a terminal tab throughout the workday.

    298starsRust

    DevOps· Tool

  • Repository:openai/codex

    OpenAI Codex CLI: Local Terminal Coding Agent Built in Rust

    Codex CLI is an open-source, lightweight coding agent developed by OpenAI that runs locally in your terminal. Written in Rust, it connects directly to ChatGPT plans or standard API keys.

    121.7kstarsRust

    AI & LLMs· Tool

  • Repository:woelper/offgrid

    offgrid: Self-Contained All-in-One Local LLM Runtime in Rust

    offgrid is a portable single-binary Rust tool for downloading, running, and serving large language models completely offline. By compiling llama.cpp straight into the executable, it eliminates Python dependencies and external model servers. It provides developers with a telemetry-free, offline-ready AI environment for chat, coding agents, and API usage.

    4starsRust

    AI & LLMs· Tool

Let's talk about your project

Locations

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Vienna
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Parts of this content were created with the assistance of AI.