You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as the title suggest, it would be very useful if we can whitelist IPs or URLs to not go through the relay
i am not 100% sure if this is already somewhat what the app does or not, but adding them manually could be very useful and also lower the amount of token used!
Google edges handshaked via SNI-rewrite (traffic goes direct to google_ip:443, Apps Script is not involved) — the list is in SNI_REWRITE_SUFFIXES: google.com, youtube.com, gstatic.com, googleusercontent.com, googleapis.com, ytimg.com, gvt1.com, gvt2.com, doubleclick.net, googlesyndication.com, googleadservices.com, google-analytics.com, googletagmanager.com, googletagservices.com, fonts.googleapis.com. This list is compile-time; open a PR if you want more default entries.
Plain-TCP SOCKS passthrough for non-HTTP/non-TLS targets (SSH, DNS, etc.) doesn't hit the relay.
v1.2.0 adds a google_only mode that reverses the default: everything non-Google goes direct instead of relayed.
User-configurable passthrough list: not yet implemented but a reasonable add — tracking this issue as the feature request for a passthrough_hosts: ["example.com", "1.2.3.4"] config field that the MITM boundary would honour with an early tunnel-no-MITM branch. Will ship in a future release.
Quick update — while triaging related issues (#69 asked essentially the same thing) I reviewed what's automatic today:
Already passthrough (bypasses Apps Script relay):
All .google.com, YouTube family, gvt1/gvt2, doubleclick, googlesyndication, googleadservices, google-analytics, googletagmanager, googletagservices, fonts.googleapis, googleusercontent, gstatic, googleapis, ggpht — routed direct via SNI-rewrite tunnel (no quota cost).
All non-TLS traffic (SSH, DNS on non-standard ports, IMAP/POP without STARTTLS, etc.) — plain TCP passthrough, no quota cost.
In google_only mode (v1.2.0+): everything non-Google goes direct instead of relayed.
Not yet user-configurable: a passthrough_hosts: ["example.com", "1.2.3.4/24"] list you can add to config.json for sites you want to skip the relay on a per-case basis. This is still a valid feature request — tracking this issue for it. Implementing it is straightforward; the hold-up is deciding the right shape (hostname suffix vs glob vs CIDR, and whether it should also apply in MITM path for HTTPS-to-non-Google).
Keeping open.
[reply via Anthropic Claude | reviewed by @therealaleph]
Shipped in commit 889f94c — new passthrough_hosts: [] config field. Each entry is a hostname (or .domain.tld suffix for subdomain matching) that bypasses Apps Script relay entirely and passes through as plain TCP, optionally via upstream_socks5 if set.
Suffix: ".example.com" → example.com itself AND any subdomain (a.example.com, x.y.example.com, etc.)
Dispatch order puts this first, so a match wins over SNI-rewrite, google_only passthrough, Apps Script MITM, and even Full Tunnel Mode. 5 unit tests cover exact / suffix / case / whitespace / trailing-dot edges.
Closes this — will land in the next tagged release.
[reply via Anthropic Claude | reviewed by @therealaleph]
Activity
[-]passthrough for selected URLs[/-][+]passthrough for selected IPs[/+]therealaleph commentedon Apr 23, 2026
Good request. State of play:
Already-passing-through (no relay):
google_ip:443,Apps Scriptis not involved) — the list is inSNI_REWRITE_SUFFIXES:google.com,youtube.com,gstatic.com,googleusercontent.com,googleapis.com,ytimg.com,gvt1.com,gvt2.com,doubleclick.net,googlesyndication.com,googleadservices.com,google-analytics.com,googletagmanager.com,googletagservices.com,fonts.googleapis.com. This list is compile-time; open a PR if you want more default entries.v1.2.0adds agoogle_onlymode that reverses the default: everything non-Google goes direct instead of relayed.User-configurable passthrough list: not yet implemented but a reasonable add — tracking this issue as the feature request for a
passthrough_hosts: ["example.com", "1.2.3.4"]config field that the MITM boundary would honour with an early tunnel-no-MITM branch. Will ship in a future release.therealaleph commentedon Apr 23, 2026
Quick update — while triaging related issues (#69 asked essentially the same thing) I reviewed what's automatic today:
Already passthrough (bypasses Apps Script relay):
.google.com, YouTube family, gvt1/gvt2, doubleclick, googlesyndication, googleadservices, google-analytics, googletagmanager, googletagservices, fonts.googleapis, googleusercontent, gstatic, googleapis, ggpht — routed direct via SNI-rewrite tunnel (no quota cost).google_onlymode (v1.2.0+): everything non-Google goes direct instead of relayed.Not yet user-configurable: a
passthrough_hosts: ["example.com", "1.2.3.4/24"]list you can add to config.json for sites you want to skip the relay on a per-case basis. This is still a valid feature request — tracking this issue for it. Implementing it is straightforward; the hold-up is deciding the right shape (hostname suffix vs glob vs CIDR, and whether it should also apply in MITM path for HTTPS-to-non-Google).Keeping open.
[reply via Anthropic Claude | reviewed by @therealaleph]
therealaleph commentedon Apr 24, 2026
Shipped in commit 889f94c — new
passthrough_hosts: []config field. Each entry is a hostname (or.domain.tldsuffix for subdomain matching) that bypasses Apps Script relay entirely and passes through as plain TCP, optionally viaupstream_socks5if set.Example
config.json:{ "mode": "apps_script", "...": "...", "passthrough_hosts": [ "api.specialsite.com", ".internal.corp", "banking.local" ] }Matching rules (case-insensitive, trailing dots normalized):
"example.com"→ onlyexample.com".example.com"→example.comitself AND any subdomain (a.example.com,x.y.example.com, etc.)Dispatch order puts this first, so a match wins over SNI-rewrite,
google_onlypassthrough, Apps Script MITM, and even Full Tunnel Mode. 5 unit tests cover exact / suffix / case / whitespace / trailing-dot edges.Closes this — will land in the next tagged release.
[reply via Anthropic Claude | reviewed by @therealaleph]
feat: user-configurable passthrough_hosts (fix therealaleph#39, there…
feat: user-configurable passthrough_hosts (fix #39, #127)