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.
“okay continue but dont make my internet not work”
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:
| Tool | What gave it away | Result |
|---|---|---|
| Proton VPN, WireGuard | UDP port 51820 with a fixed packet shape | blocked outright |
| Cloudflare WARP | WireGuard again, just on 2408 — same fingerprint | blocked; then it left DNS pointing at 1.1.1.1 inside a dead tunnel, which is what killed the connection afterwards |
| OpenVPN / IKEv2 | Handshake is a public template | retired by Proton, and would be blocked anyway |
| App-store “VPN” apps | Same protocols, same signatures | no reason to expect better |
| VLESS + WS + TLS | Nothing. It is HTTPS to a CDN address | worked, and still works |
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.
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.
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.
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.
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.
| File | Size | Job |
|---|---|---|
/usr/local/libexec/vless/xray | 67.7 MB | Tunnel engine, universal binary — one build for Apple Silicon and Intel, so the friend's Mac cannot be the wrong chip |
…/vless | 240 lines | The command: fetch nodes, test each, set the proxy only after proof, guard the port, tear down cleanly |
…/vless-autostart | 78 lines | Decides per network: probes three sites, turns the tunnel on when they fail and off when they work |
/usr/local/libexec/proxy-toggle | 37 lines | Root helper: flips the system SOCKS proxy on every network service |
/etc/sudoers.d/vless-proxy | 1 rule | Lets admin accounts run that helper without a password prompt each time |
/Library/LaunchAgents/com.vless.autostart.plist | 36 lines | Wakes the decision script on network change, at login, and every five minutes |
…/uninstall | 28 lines | Removes every file, the agent, the sudoers rule and the proxy setting |
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”.
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.
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.
| Check | Result |
|---|---|
| Direct egress from the same Wi-Fi | 118.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 tunnel | HTTP 200 · 0.43 s |
| Discord through the tunnel | HTTP 200 |
Teardown after vless off | no process left, port 1088 free, state directory empty |
Payload extracted from the built .pkg | 12 entries, symlink intact, engine reads x86_64 arm64 |
| Install script | all five scripts pass bash -n; sudoers rule passes visudo -cf; plist passes plutil -lint |
| Symptom | Cause | Handling |
|---|---|---|
| Every node prints “no data” | Subscription dead, or the network blocked every node | Nothing local fixes it; the proxy is never set, so the laptop is unaffected |
| Tunnel up, sites still blocked | An app that ignores the system proxy | Documented as a limit: games and Terminal stay on the direct route |
| Port 1080 already busy | An earlier run or another VPN | Refuses to start and says so, instead of testing the wrong tunnel |
| Autostart never fires | The network blocks sites the probe does not test | Run vless on once by hand; --keep holds it on that network |
| Tunnel dies mid-session | Sleep, Wi-Fi change, node dropping out | Watcher clears the proxy within five seconds; next network event restarts it |
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.
| Artifact | Bytes | SHA-256 (first 16) |
|---|---|---|
vless-setup.pkg · published, no link inside | 25,772,033 | 1217964f79e43acd |
vless-setup.pkg · private, carries a link | 25,772,087 | ceb94d812b55b245 |
xray (universal) | 67,730,146 | v26.11.9 · x86_64 arm64 |
vless | 8,572 | 0650c27338819114 |
vless-autostart | 2,529 | 59fdc99ed8d482b1 |
proxy-toggle | 1,120 | ccbb59c1fb132f87 |
postinstall | 1,371 | b7c0aaa7798eef1c |
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.