This is the full, practical setup guide for first-time users. If you follow this page in order, you can go from zero to a working proxy.
When done correctly:
- Local HTTP proxy works at
127.0.0.1:8085 - Local SOCKS5 proxy works at
127.0.0.1:1080 - HTTPS websites open without certificate warnings
- You can run route checks with
--scanand stability-first checks with--adaptive-scan
- Python
3.10+ - A Google account (for Apps Script relay)
- Git (optional, ZIP download also works)
- A browser where you can set manual proxy
Download and extract:
Then open terminal in extracted folder.
git clone https://github.com/masterking32/MasterHttpRelayVPN.git
cd MasterHttpRelayVPN-
Open https://script.google.com/ and sign in.
-
Click New project.
-
Delete default code.
-
Open local file
apps_script/Code.gs, copy all code, paste into Apps Script. -
Change:
const AUTH_KEY = "your-secret-password-here";
to your own long random secret.
-
Click Deploy → New deployment.
-
Select Web app.
-
Set Execute as = Me.
-
Set Who has access = Anyone.
-
Deploy, authorize, copy Deployment ID.
You now need both values locally:
Deployment IDAUTH_KEY
start.batchmod +x start.sh
./start.shWhat launcher does:
- creates
.venv - installs dependencies
- runs setup wizard if
config.jsonis missing - starts proxy
When prompted:
auth_key= exactly same asAUTH_KEYin Apps Scriptscript_id= your Deployment ID- Keep HTTP port
8085unless busy - Keep LAN sharing disabled unless you need other devices
The wizard creates config.json.
| Field | Value |
|---|---|
| Proxy type | HTTP |
| Address | 127.0.0.1 |
| Port | 8085 |
For Firefox: Settings → General → Network Settings → Manual proxy. Enable proxy for HTTPS too.
The proxy generates ca/ca.crt.
If auto-install fails, install manually.
- Open
ca/ca.crt - Install Certificate
- Current User
- Place in Trusted Root Certification Authorities
- Restart browser fully
- Open
ca/ca.crtin Keychain Access - Open certificate → Trust
- Set Always Trust
- Restart browser
sudo cp ca/ca.crt /usr/local/share/ca-certificates/masterhttp-relay.crt
sudo update-ca-certificatesRestart browser.
Firefox can use a separate trust store:
- Settings → Privacy & Security → Certificates → View Certificates → Authorities → Import
ca/ca.crt - Enable trust for website identification
- Open normal websites through browser proxy.
- If
unauthorizedappears:AUTH_KEYmismatch between Apps Script andconfig.json. - If HTTPS certificate errors appear: CA not trusted correctly.
python main.py --scanUse suggested google_ip in config.json.
python main.py --adaptive-scanThis ranking is based on route stability metrics (not only minimum ping).
python -m venv .venv
.venv\Scripts\python -m pip install -r requirements.txt
.venv\Scripts\python setup.py
.venv\Scripts\python main.pypython3 -m venv .venv
.venv/bin/python -m pip install -r requirements.txt
.venv/bin/python setup.py
.venv/bin/python main.pyunauthorized: auth key mismatch- proxy connects but sites fail: wrong Deployment ID or script deployment not public
- HTTPS warnings: CA not installed/trusted
- some services block Google egress: use Exit Node guide