Loading...
Loading...
Domain-fronted HTTP/SOCKS5 proxy tunneling traffic through Google Apps Script with MITM TLS interception and DPI evasion
npx skill4agent add aradotso/trending-skills masterhttprelayvpn-proxySkill by ara.so — Daily 2026 Skills collection.
Browser → Local Proxy (127.0.0.1:8085) → Google IP (front_domain) → Apps Script Relay → Target Websitegit clone https://github.com/masterking32/MasterHttpRelayVPN.git
cd MasterHttpRelayVPN
pip install -r requirements.txtpip install -r requirements.txt -i https://mirror-pypi.runflare.com/simple/ --trusted-host mirror-pypi.runflare.com# Linux/macOS
chmod +x start.sh && ./start.sh
# Windows
start.batapps_script/Code.gsconst AUTH_KEY = "your-secret-password-here";python setup.pyauth_keyconfig.jsoncp config.example.json config.jsonconfig.json{
"mode": "apps_script",
"google_ip": "216.239.38.120",
"front_domain": "www.google.com",
"script_id": "AKfycb...",
"auth_key": "your-secret-password-here",
"listen_host": "127.0.0.1",
"listen_port": 8085,
"socks5_enabled": true,
"socks5_port": 1080,
"log_level": "INFO",
"verify_ssl": true
}inauth_keymust matchconfig.jsoninAUTH_KEY.Code.gs
python3 main.pypython main.py --install-cert| Key | Description |
|---|---|
| Always |
| Google Apps Script Deployment ID |
| Shared secret between proxy and relay |
| |
| HTTP proxy port (default: |
| Enable SOCKS5 listener |
| SOCKS5 port (default: |
| |
| Key | Default | Description |
|---|---|---|
| | Google IP to connect through |
| | Domain shown to firewall |
| | Verify upstream TLS certs |
| | Multiple deployment IDs for load balancing |
| | Allow LAN devices to use proxy |
| | Hosts that return HTTP 403 (e.g. |
| | Hosts that go direct (no MITM/relay) |
{
"mode": "apps_script",
"google_ip": "216.239.38.120",
"front_domain": "www.google.com",
"script_ids": [
"AKfycbDEPLOYMENT_ID_1",
"AKfycbDEPLOYMENT_ID_2"
],
"auth_key": "super-strong-random-password",
"listen_host": "0.0.0.0",
"listen_port": 8085,
"socks5_enabled": true,
"socks5_port": 1080,
"lan_sharing": true,
"log_level": "INFO",
"verify_ssl": true,
"block_hosts": [
".doubleclick.net",
"ads.example.com"
],
"bypass_hosts": [
"localhost",
".local",
".lan",
"192.168.1.1"
]
}ca/ca.crtsudo cp ca/ca.crt /usr/local/share/ca-certificates/masterhttp-relay.crt
sudo update-ca-certificatessudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ca/ca.crtcertutil -addstore -f "ROOT" ca\ca.crtca/ca.crt⚠️ Never share thefolder. Delete it to regenerate a fresh CA.ca/
127.0.0.1:8085127.0.0.1:1080127.0.0.18085127.0.0.1:8085curl -x http://127.0.0.1:8085 https://example.com
# or SOCKS5
curl --socks5 127.0.0.1:1080 https://example.comimport requests
proxies = {
"http": "http://127.0.0.1:8085",
"https": "http://127.0.0.1:8085",
}
response = requests.get("https://example.com", proxies=proxies)
print(response.status_code){
"lan_sharing": true,
"listen_host": "0.0.0.0",
"listen_port": 8085
}<YOUR_LAN_IP>:8085{
"script_ids": [
"AKfycbFIRST_DEPLOYMENT_ID",
"AKfycbSECOND_DEPLOYMENT_ID",
"AKfycbTHIRD_DEPLOYMENT_ID"
],
"auth_key": "same-password-in-all-scripts"
}All Apps Script deployments must have the samevalue.AUTH_KEY
{
"block_hosts": [
".doubleclick.net",
".googlesyndication.com",
".googleadservices.com",
"ads.example.com"
]
}{
"bypass_hosts": [
"localhost",
"127.0.0.1",
".local",
".lan",
".home.arpa",
"192.168.1.0/24"
]
}# In config.json
{ "log_level": "DEBUG" }
# Or temporarily
python3 main.pyimport json
import secrets
config = {
"mode": "apps_script",
"google_ip": "216.239.38.120",
"front_domain": "www.google.com",
"script_id": "PASTE_DEPLOYMENT_ID_HERE",
"auth_key": secrets.token_urlsafe(32),
"listen_host": "127.0.0.1",
"listen_port": 8085,
"socks5_enabled": True,
"socks5_port": 1080,
"log_level": "INFO",
"verify_ssl": True
}
with open("config.json", "w") as f:
json.dump(config, f, indent=2)
print(f"Generated auth_key: {config['auth_key']}")
print("Remember to set this same value as AUTH_KEY in Code.gs")python main.py --install-certlisten_hostlisten_portconfig.jsonpython3 main.pyauth_keyconfig.jsonAUTH_KEYCode.gsscript_idsconfig.jsonverify_ssl{ "verify_ssl": false }rm -rf ca/
python3 main.py # generates new ca/ca.crt on startup
# Then reinstall the certificate in OS/browserpip install -r requirements.txt \
-i https://mirror-pypi.runflare.com/simple/ \
--trusted-host mirror-pypi.runflare.com# Should return your external IP routed through Google
curl -x http://127.0.0.1:8085 https://api.ipify.orgMasterHttpRelayVPN/
├── main.py # Entry point, starts HTTP + SOCKS5 listeners
├── setup.py # Interactive config wizard
├── config.json # Your configuration (gitignored)
├── config.example.json # Template
├── requirements.txt # Python dependencies
├── apps_script/
│ └── Code.gs # Google Apps Script relay code
├── ca/
│ ├── ca.crt # Generated CA certificate (install this)
│ └── ca.key # CA private key (keep secret)
├── start.sh # Linux/macOS quick start
└── start.bat # Windows quick start