MasterHttpRelayVPN: a domain-fronted proxy that tunnels your browser through Google Apps Script
Domain-fronted HTTP/SOCKS5 proxy tunneling traffic through Google Apps Script with MITM TLS interception, HTTP/1-2 multiplexing, and DPI evasion.
At a glance
- What is it?
- MasterHttpRelayVPN is a Python local proxy that relays HTTP and SOCKS5 traffic through a Google Apps Script web app using domain fronting, with optional MITM TLS interception. It suits users who need a free relay path and can tolerate a Google-account deployment step and certificate installation.
- Who is it for?
- Adopt MasterHttpRelayVPN if you want a free, Google-account-based relay path and accept that the local proxy installs a CA certificate and inspects TLS. Do not adopt it if you need a zero-configuration tunnel, cannot install a root certificate on the client device, or require the project to be actively developed: the last push was on 2026-06-09.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 169 days ago.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.
Star history
- masterking32/MasterHttpRelayVPN3,983 ★ · +51
| Repository | 2026-09-24 | 2026-11-24 |
|---|---|---|
| masterking32/MasterHttpRelayVPN | 3.9k | 4k |
51 Stars in the last 61 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
What MasterHttpRelayVPN solves, and for whom
The project targets a narrow problem: reaching sites when the path to them is filtered, and doing it without paying for a VPS or hosting a relay yourself. The README describes it as a local proxy that routes browser traffic through a Google Apps Script relay using domain fronting. The simple path needs only this project and a free Google account. That framing matters. Most circumvention tools ask you to rent a server and keep it running. MasterHttpRelayVPN asks you to deploy a script into your own Google account and point a local proxy at it.
The intended user is someone who can run a Python program on their machine, open script.google.com, and paste code into the Apps Script editor. The README's fast start claims the relay deployment takes about two minutes with a Google account. It is not a consumer app: there is no installer, no account system, and no hosted service. Configuration is a JSON file plus a setup wizard, and the README points to a Telegram channel and group for support rather than a documentation site. If you are comfortable with that shape of project, the trade is reasonable. If you expect a client you can hand to a non-technical person, this is the wrong starting point.
The relay path: browser to local proxy to Google front to Apps Script
The README gives the data flow directly: Browser -> Local proxy -> Google front -> Your Apps Script relay -> Target site, with the note that the network filter sees a Google-facing connection. Two mechanisms produce that. Domain fronting makes the connection look like it terminates at a Google front, while the actual request is carried by the Apps Script web app you deployed. MITM interception, which the README says is one of the two main techniques, lets the local proxy terminate TLS from the browser so it can inspect and re-originate the request through the relay.
On the local side, the proxy exposes two listeners: an HTTP proxy on 127.0.0.1:8085 and a SOCKS5 proxy on 1080. The relay side is apps_script/Code.gs, deployed as a web app with Execute as set to Me and Who has access set to Anyone. A shared secret ties the two halves: the AUTH_KEY constant in Code.gs must match auth_key in the local config.json, and a mismatch produces an unauthorized error. Because TLS is intercepted, the launcher installs a CA automatically after starting, and the README notes that the CA can be persisted across container restarts when running under Docker.
The dependency list shows what the interception and relay paths actually need. cryptography is marked optional and tied to MITM interception in apps_script mode, h2 is optional and tied to HTTP/2 multiplexing for a faster Apps Script relay, and brotli and zstandard handle compressed responses from modern sites. The comment at the top of requirements.txt states that the core has no external dependencies for basic modes and that Python 3.10+ is required, which is a useful signal about where the complexity sits.
Installing MasterHttpRelayVPN and making a first request
The README offers two ways to get the code. With Git, you clone and enter the directory:
git clone https://github.com/masterking32/MasterHttpRelayVPN.git
cd MasterHttpRelayVPNThere is also a ZIP download link in the README for the python_testing branch if you would rather not use Git. Either way, the next step is the one-click launcher, which the README says creates a virtual environment, installs dependencies, opens the setup wizard if config.json is missing, and starts the proxy. On Windows that is start.bat; on Linux and macOS it is start.sh:
chmod +x start.sh
./start.shBefore the proxy is useful, the Google relay has to exist. The README walks through it: open script.google.com, create a new project, delete the default editor content, copy everything from apps_script/Code.gs into the editor, and replace the placeholder secret:
const AUTH_KEY = "your-secret-password-here";Then deploy as a web app with Execute as set to Me and Who has access set to Anyone, approve the permission screen, and copy the Deployment ID. Keep the Deployment ID and the AUTH_KEY value for the setup wizard. The wizard is setup.py, which the file docstring describes as writing a ready-to-use config.json by prompting only for the values the user really has to choose, with sane defaults for everything else. After the proxy starts, point the browser at HTTP proxy 127.0.0.1 port 8085, or use the SOCKS5 listener on 1080. The README also gives a Telegram deep link of the form https://t.me/socks?server=127.0.0.1&port=1080 for clients that accept that URL scheme. Expect a certificate warning on first use if the CA is not trusted yet; the README routes that to the troubleshooting document. If the browser or the proxy reports unauthorized, the first thing to check is that AUTH_KEY and auth_key are identical strings.
Docker deployment and where the secrets live
The repository ships a Dockerfile and a docker-compose.yml, and the compose file is explicit about why. It maps 8085 and 1080, mounts ./config.json read-only at /app/config.json, and mounts ./ca at /app/ca so the MITM CA certificate survives container restarts. On first run the container generates ca/ca.crt and ca/ca.key in that mounted directory. The Dockerfile builds from python:3.13-slim, installs requirements.txt first for layer caching, and copies the source with config.json and ca/ excluded via .dockerignore so secrets are never baked into the image.
One detail is easy to miss. The Dockerfile's CMD is python main.py --host 0.0.0.0, and the comment above it states that the value in config.json is ignored for the host binding. That is deliberate: inside a container the proxy must bind to all interfaces to be reachable from outside, but it also means a container deployment exposes the proxy on the host's network unless you constrain the port mapping. The compose file maps both ports to the host by default. If you only need the proxy on the same machine, narrow those mappings rather than relying on config.json, because config.json does not control the bind address in this image.
The Google egress problem: when you need an exit node
The most concrete limitation in the README is not about the code, it is about the exit IP. Requests that leave through the Apps Script relay appear to originate from Google infrastructure, and some destinations reject that. The README names ChatGPT and Turnstile specifically, and says that if they block the Google exit IP you should use the exit node guide. That guide covers Cloudflare Workers or a VPS as a second hop. This is a real architectural constraint, not a configuration oversight: domain fronting buys you a path, but it also fixes the reputation of the address your traffic arrives from.
The README also notes that YouTube safe search and live streaming are now bypassed and working by default, so youtube_via_relay and a Cloudflare or VPS exit_node are not needed for those cases. Read that as scoped to YouTube. It does not mean the exit node is optional in general, and the same paragraph that announces the YouTube fix also points to the exit node guide for sites that block Google IPs. If your target set includes services with aggressive anti-automation checks, plan for the second hop before you start, because adding it later means another deployment.
There is a second failure mode that follows from the design rather than from any site's policy. Because the proxy performs MITM interception, clients must trust the generated CA. That is a deliberate weakening of the trust chain on your own machine, and the README's security section warns against sharing config.json, auth_key, ca/, or an exit-node URL together with a valid PSK. Sharing the proxy with other devices on your LAN is documented, but it means those devices also route through your CA and your Google account's relay.
How it differs from a plain SSH tunnel or a self-hosted proxy
The obvious alternative is an SSH dynamic forward, or a self-hosted HTTP proxy such as a small Squid or 3proxy instance on a VPS. The difference is where the relay lives and what the traffic looks like. With an SSH tunnel you own the endpoint and control its IP reputation, but you also pay for the host, keep it patched, and accept that the connection to it is a direct one that a network filter can classify. MasterHttpRelayVPN inverts that: the endpoint is a Google Apps Script deployment inside your own Google account, the connection is dressed as Google-facing traffic, and there is no server to administer. The cost is the Google egress IP and the account dependency. If Google suspends the deployment or the account, the relay is gone, and the README's legal disclaimer explicitly puts responsibility for complying with Google's terms, quotas, and platform policies on you.
A second comparison is with hosted commercial VPNs. Those give you a managed client, no certificate installation, and a support contract. They also give you a fixed set of exit IPs that are widely known and often blocked, and they do not let you inspect or modify the relay. MasterHttpRelayVPN is the opposite trade: more moving parts, more control, no recurring cost, and a much smaller support surface, which in practice means the Telegram group rather than a ticket queue. Neither is strictly better; they fail in different ways.
Maintenance, licence, and what the repository does not say
The licence is MIT, which permits commercial and private use, modification, and redistribution provided the copyright notice and permission notice are retained. That is a permissive licence with no copyleft obligation. It does not, however, grant anything with respect to Google's terms of service, and the README's disclaimer separates the two: the code is MIT, the use of Apps Script is governed by Google's rules. Nothing here is legal advice, but the practical reading is that the licence is the easy part and the platform terms are the part that can end your relay.
On maintenance, the last push to the repository was on 2026-06-09. The repository is not archived, but it has no published releases, and the default branch is python_testing, which is worth noting if you are pinning a branch for reproducible deployments. There is no changelog in the repository and no documented upgrade path. The README does not document rollback, and it does not describe what happens to an existing config.json when the code changes. The launcher's behaviour of opening the setup wizard only when config.json is missing means an existing configuration is not regenerated, so a new required key would have to be added by hand. That is worth checking against config.example.json after any update, since that file is the only schema reference the repository provides.
Editorial conclusion
Adopt MasterHttpRelayVPN if you want a free, Google-account-based relay path and accept that the local proxy installs a CA certificate and inspects TLS. Do not adopt it if you need a zero-configuration tunnel, cannot install a root certificate on the client device, or require the project to be actively developed: the last push was on 2026-06-09. Before relying on it, verify that AUTH_KEY in apps_script/Code.gs matches auth_key in config.json, and check whether your target sites accept Google egress IPs or need the exit-node path.
Frequently asked questions
Does MasterHttpRelayVPN work on Android?
The README documents a SOCKS5 listener on 127.0.0.1:1080 and gives a Telegram deep link of the form https://t.me/socks?server=127.0.0.1&port=1080, which is the kind of URL a mobile client can consume. The LAN sharing document covers sharing the proxy with Android, iOS, and other computers on the local network. The repository does not describe a native Android build of the proxy itself.
Why does MasterHttpRelayVPN show unauthorized errors?
The README ties this to the shared secret: AUTH_KEY in apps_script/Code.gs must exactly match auth_key in config.json. If the two strings differ, the relay rejects the request. Check both values before looking anywhere else.
Why do some sites fail through MasterHttpRelayVPN even though the proxy works?
Traffic leaves through the Apps Script relay and therefore arrives from a Google IP, and the README states that ChatGPT, Turnstile, and similar sites block the Google exit IP. The documented fix is an exit node on Cloudflare Workers or a VPS, covered in the exit node guide. The README also notes that YouTube safe search and live streaming are bypassed by default and no longer need youtube_via_relay or a Cloudflare or VPS exit_node.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/masterking32-masterhttprelayvpn)Star history chart for your README
[](https://hysenlabs.com/projects/masterking32-masterhttprelayvpn)Was this useful?