School WiFi Tunnel · teardown shipped & verified 30 Nov – 1 Dec 2026

A school laptop with no internet, fixed and then packed into a .pkg

The school network blocks VPNs on purpose and breaks the encrypted connections it dislikes. Proton WireGuard and Cloudflare WARP both died on it. This is the tunnel that survived: VLESS over WebSocket and TLS on port 443, dressed as ordinary HTTPS traffic to a Cloudflare-hosted domain, plus a one-double-click installer that sets it up on someone else's Mac.

Nodes offered
16in the subscription
YouTube load
0.43 sthrough the tunnel
Installer
25.8 MBuniversal, both Mac chips
Glue code
419 linesbash — no Python needed
Port used
443looks like normal HTTPS
Direct vs tunnel
2 IPsproof traffic really moved
The constraint, in his words

“okay continue but dont make my internet not work”

no internet acces after u done that i had to do warp-cli disconnect and search for code myself earlier attempt, same week

01 · Why the obvious tools failed

Every network keeps a list of what a connection looks like, separate from what it contains. A VPN that announces itself at the first packet never gets to encrypt anything. The school's filter (FortiGate) reads the handshake, matches it against known VPN signatures, and drops the flow. Each tool failed at a different layer:

ToolWhat gave it awayResult
Proton VPN, WireGuardUDP port 51820 with a fixed packet shapeblocked outright
Cloudflare WARPWireGuard again, just on 2408 — same fingerprintblocked; then it left DNS pointing at 1.1.1.1 inside a dead tunnel, which is what killed the connection afterwards
OpenVPN / IKEv2Handshake is a public templateretired by Proton, and would be blocked anyway
App-store “VPN” appsSame protocols, same signaturesno reason to expect better
VLESS + WS + TLSNothing. It is HTTPS to a CDN addressworked, and still works

02 · What actually leaves the laptop

Safari / Chrome │ uses the system SOCKS proxy: 127.0.0.1:1080 ▼ xray (local, this Mac) — builds the VLESS request │ TLS 1.3 to isaac.ccwu.cc, which resolves to Cloudflare edge IPs │ inside TLS: WebSocket upgrade on a long random path │ inside that: “fetch this URL for me” ▼ Cloudflare edge — certificate issued by Google Trust Services ▼ exit node egress 107.148.118.151 (direct was 118.143.86.157)

The school sees one thing: a TLS session to a Cloudflare IP, on port 443, with a path that looks like any other web app. No VPN header, no unusual port, no protocol fingerprint to match against.

03 · Three envelopes

Envelope one: real HTTPS

Port 443, a valid certificate, an SNI that belongs to a domain he controls. A filter that blocked this would block a large part of the web.

Envelope two: a WebSocket

The same upgrade a chat app or a live dashboard performs. It is an ordinary thing for a web page to do, and it survives proxies that rewrite HTTP.

Envelope three: VLESS

A minimal instruction set — connect to this host, send these bytes — with no built-in encryption of its own, because TLS already provides it. The DNS lookup happens on the far side, so the school cannot even read the site names out of the traffic.

The only way to read inside is to fake the certificate. The school does not control the domain, and the real certificate is issued by Google Trust Services, so a forged one is rejected by the browser. That is the whole difference between this and Proton: Proton had a fingerprint, this has none.

04 · Anatomy of the installer

The installer had to work on a laptop that has never run any of this — a different person, a different macOS, possibly an Intel Mac. That ruled out Python (a fresh Mac has no python3; the shim offers to download developer tools instead) and ruled out the copy of xray sitting in v2rayN's folder on this Mac.

FileSizeJob
/usr/local/libexec/vless/xray67.7 MBTunnel engine, universal binary — one build for Apple Silicon and Intel, so the friend's Mac cannot be the wrong chip
…/vless240 linesThe command: fetch nodes, test each, set the proxy only after proof, guard the port, tear down cleanly
…/vless-autostart78 linesDecides per network: probes three sites, turns the tunnel on when they fail and off when they work
/usr/local/libexec/proxy-toggle37 linesRoot helper: flips the system SOCKS proxy on every network service
/etc/sudoers.d/vless-proxy1 ruleLets admin accounts run that helper without a password prompt each time
/Library/LaunchAgents/com.vless.autostart.plist36 linesWakes the decision script on network change, at login, and every five minutes
…/uninstall28 linesRemoves every file, the agent, the sudoers rule and the proxy setting

05 · Three safety rules, learned the hard way

1

The proxy is set last, never first

Traffic must prove itself through the tunnel before a single system setting changes. If no node answers, nothing is touched and the laptop keeps its normal connection. The failure mode is “sites stop loading”, never “no internet”.

2

A watcher clears the proxy if the tunnel dies

A detached process holds the tunnel's PID. The moment it exits, the proxy is cleared. That was the exact failure that cost a whole evening once: a dead tunnel with the proxy still pointing at it blackholes everything.

3

The port is checked before testing

If something else already listens on 1080, the test would be measuring that program and reporting a false success. This was caught during testing — the first run looked perfect because a tunnel from earlier in the day was still holding the port.

06 · Measured, not assumed

CheckResult
Direct egress from the same Wi-Fi118.143.86.157 (school address)
Tunnel egress, node 1 (104.18.38.129:443)107.148.118.151 — different, so traffic really left through the exit
YouTube through the tunnelHTTP 200 · 0.43 s
Discord through the tunnelHTTP 200
Teardown after vless offno process left, port 1088 free, state directory empty
Payload extracted from the built .pkg12 entries, symlink intact, engine reads x86_64 arm64
Install scriptall five scripts pass bash -n; sudoers rule passes visudo -cf; plist passes plutil -lint

07 · What breaks, and what happens

SymptomCauseHandling
Every node prints “no data”Subscription dead, or the network blocked every nodeNothing local fixes it; the proxy is never set, so the laptop is unaffected
Tunnel up, sites still blockedAn app that ignores the system proxyDocumented as a limit: games and Terminal stay on the direct route
Port 1080 already busyAn earlier run or another VPNRefuses to start and says so, instead of testing the wrong tunnel
Autostart never firesThe network blocks sites the probe does not testRun vless on once by hand; --keep holds it on that network
Tunnel dies mid-sessionSleep, Wi-Fi change, node dropping outWatcher clears the proxy within five seconds; next network event restarts it

08 · Honest limits

What this is not

Not a VPN. It is a SOCKS proxy for apps that respect the system proxy. Games, Terminal tools and background daemons keep using the school route and stay blocked.

Not anonymous. Content is encrypted end to end, but the exit node's operator can see which sites are visited. It defeats blocking, not observation.

Not fast. The exit is overseas: page loads land between half a second and two seconds. Fine for reading, hopeless for anything real-time.

Not self-sufficient. The whole thing depends on a subscription someone else runs. If that link dies, the installer cannot rescue it.

09 · Evidence

ArtifactBytesSHA-256 (first 16)
vless-setup.pkg · published, no link inside25,772,0331217964f79e43acd
vless-setup.pkg · private, carries a link25,772,087ceb94d812b55b245
xray (universal)67,730,146v26.11.9 · x86_64 arm64
vless8,5720650c27338819114
vless-autostart2,52959fdc99ed8d482b1
proxy-toggle1,120ccbb59c1fb132f87
postinstall1,371b7c0aaa7798eef1c

The full readable copy of every script, with the same hashes, is in the mirror next door. For a binary artifact the hash list is the mirror: it is what lets anyone check that the installer they run is the one that was tested.

Two builds exist on purpose. The published one has the subscription stubbed out — a first run needs vless setup <link> — so the download carries nobody's server list. The private one is the same code with a link inside, which is why it has its own hash rather than sharing one.