[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110084":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":15,"stars30d":16,"stars90d":14,"forks30d":14,"starsTrendScore":17,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":14,"starSnapshotCount":14,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},110084,"satmux","Th0rgal\u002Fsatmux","Th0rgal","Accelerate high-latency GEO inflight Wi-Fi via warm BBR TCP multiplexing + 1-RTT Ground-TLS + zlib (zero dependencies)",null,"Python",1105,54,1,0,12,263,3,69.22,"MIT License",false,"main",true,[],"2026-11-07 16:26:20","2026-11-23 10:28:56","# satmux\n\nTCP multiplexer and `1-RTT` HTTP\u002FTLS relay for geostationary (GEO) inflight Wi-Fi (Inmarsat GX, Viasat, Panasonic, SITA). Pure Python 3 stdlib, zero external dependencies.\n\nMeasured inflight over Inmarsat GX Ka-band (`~620 ms` RTT, SITA `AS206433` Amsterdam ground station):\n\n```text\n  ORIGIN (6× PARALLEL)  RAW CABIN WI-FI (:443)    1-RTT BBR + ZLIB MUX    SPEEDUP\n  ────────────────────  ────────────────────────  ──────────────────────  ─────────\n  GitHub Repo           ████████████    TIMEOUT  ███░░░░░░░░░    4.66s  FIXED ✓\n  GitHub API            ████████████  TCP RESET  ██░░░░░░░░░░    2.66s  FIXED ✓\n  Hacker News           ████████████    TIMEOUT  ██░░░░░░░░░░    2.28s  FIXED ✓\n  MDN Docs              ████████░░░░     12.01s  ██░░░░░░░░░░    2.30s     5.2×\n  Cloudflare            ██░░░░░░░░░░      2.97s  █░░░░░░░░░░░    1.40s     2.1×\n  PyPI JSON API         █████░░░░░░░      7.09s  ██░░░░░░░░░░    2.64s     2.7×\n  ──────────────────────────────────────────────────────────────────────────────────\n  6-Origin Burst:    19.13s (3\u002F6 failed)  →  5.35s (0\u002F6 failed)   [3.6× faster · -76% TTFB]\n```\n\n## Problem\n\nNon-Starlink inflight Wi-Fi usually breaks on three things unrelated to raw bandwidth:\n\n1. **Onboard `:443` middleboxes and DNS interception.** Cabin gateways intercept `:53` DNS and run a transparent `:443` split-TCP proxy (PEP) whose state table drops connections under load (`Connection reset by peer` \u002F TLS timeouts on `github.com`, `api.github.com`, package registries). Non-443 TCP ports pass through untouched.\n2. **Handshake round-trips (`~620 ms` per GEO hop).** Every new origin normally pays multiple satellite round-trips (DNS + TCP + TLS) before transferring payload bytes.\n3. **Cubic congestion collapse.** Cabin Wi-Fi packet loss causes standard TCP to halve `cwnd` repeatedly, leaving most of your per-seat token-bucket cap unused.\n\n## How it works\n\n```text\nDirect (:443):\n  laptop ──▶ cabin DNS + :443 PEP ══(3–4 GEO RTTs)══▶ ground ──▶ origin  (frequent TCP resets)\n\nsatmux (:8444):\n  laptop ══(12 persistent TCP :8444 BBR + zlib pipes)══▶ ground VM ──(2 ms)──▶ origin\n```\n\n- **Persistent non-443 carrier pool (`:8444`):** Keeps 12 pre-warmed TCP connections open to a Linux VM near the satellite ground station, bypassing the cabin `:443` proxy and onboard DNS. Streams are scheduled onto the carrier with the lowest recent byte load so idle browser keepalives do not cause head-of-line queueing.\n- **0-RTT stream open (`127.0.0.1:1080` SOCKS5 \u002F `127.0.0.1:8080` HTTP CONNECT):** Returns `OK` locally in `\u003C1 ms` and sends `FT_OPEN` + TLS `ClientHello` in the same TCP burst, saving one full satellite RTT while preserving end-to-end TLS from the laptop.\n- **1-RTT ground fetch (`127.0.0.1:8081`):** Sends an encrypted (`BLAKE2b-512` stream + `HMAC-SHA256`) request frame over a warm carrier. The ground VM performs DNS, verified TLS 1.3, and HTTP redirects on fiber (`~2–5 ms`) and compresses plaintext responses with `zlib` before crossing the satellite link.\n- **`git` and `gh` CLI routing:** Go binaries such as `gh` ignore macOS `scutil` proxies. `satmux` exposes a `0600` local Unix socket (`\u002Ftmp\u002Fsatmux-gh-tls.sock`) wired to `gh`'s `http_unix_socket` that wraps requests in verified end-to-end TLS on the laptop and tunnels them over SOCKS5, fixing already-running coding agents without restarting them.\n- **BBR + `MSS 1280`:** Ground-to-cabin sockets enable `TCP_CONGESTION=bbr` and `TCP_MAXSEG=1280`.\n\n## Limits\n\n- **Latency floor (`~580–650 ms`):** Speed-of-light propagation to geostationary orbit (`35,786 km`) does not change; `satmux` removes extra round-trips, not the physical RTT of one hop.\n- **Per-seat shaper (`~4–5 Mbps` typical):** Cabin routers police total bandwidth per client lease. Compressible traffic (HTML, JSON, code, APIs) exceeds that rate in effective throughput via `zlib`; already-compressed binaries (`.mp4`, `.zip`) stay bounded by the seat cap (though BBR + parallel `satmux-get` keep throughput near the ceiling).\n- **Single paid session:** Uses your authenticated cabin Wi-Fi lease; it does not bypass captive portals.\n\n## Setup\n\n### 1. Ground VM\n\nRent a small Linux VM (`$0.01–$0.03\u002Fh`, Python 3.9+, open TCP port `8444`) close to where the satellite downlinks to fiber. Check `curl ipinfo.io` on raw cabin Wi-Fi first to see the egress country\u002FASN:\n\n- **Emirates \u002F Middle East & European flights (Inmarsat GX \u002F SITA `AS206433`):** Amsterdam, Frankfurt, or Hetzner EU (downlink lands in the Netherlands).\n- **North America:** `us-east` or `us-west`.\n- **Asia-Pacific:** Singapore or Tokyo.\n\nPause UDP VPNs (Tailscale\u002FWireGuard) inflight—blocked UDP retry traffic competes for cabin airtime.\n\n### 2. Run\n\nWith a coding agent:\n\n> Spin up a temporary Ubuntu VM near my current satellite egress IP, start `https:\u002F\u002Fgithub.com\u002FTh0rgal\u002Fsatmux` on port `8444`, connect the local 12-carrier client, enable `bin\u002Fsatmux-macos on`, and run `bin\u002Fsatmux-bench`.\n\nOr manually:\n\n```bash\n# 1. Laptop: generate PSK\ngit clone https:\u002F\u002Fgithub.com\u002FTh0rgal\u002Fsatmux.git && cd satmux\nopenssl rand -hex 32 > mux.psk && chmod 600 mux.psk\n\n# 2. Ground VM: start server\nscp satmux.py mux.psk root@\u003CSERVER_IP>:\u002Froot\u002F\nssh root@\u003CSERVER_IP> 'nohup env SATMUX_PSK=$(cat \u002Froot\u002Fmux.psk) python3 \u002Froot\u002Fsatmux.py server --port 8444 >\u002Fvar\u002Flog\u002Fsatmux.log 2>&1 &'\n\n# 3. Laptop: start client + enable macOS \u002F git \u002F gh routing\nSATMUX_PSK=$(cat mux.psk) python3 satmux.py client --host \u003CSERVER_IP> --port 8444 --carriers 12 &\n.\u002Fbin\u002Fsatmux-macos on \u003CSERVER_IP>\n```\n\nBenchmark or run parallel range downloads:\n\n```bash\n.\u002Fbin\u002Fsatmux-bench\n.\u002Fbin\u002Fsatmux-get https:\u002F\u002Fexample.com\u002Farchive.tar.gz\n```\n\n### 3. Teardown after landing\n\n```bash\n.\u002Fbin\u002Fsatmux-macos off\n```\n\nRestores macOS Wi-Fi proxy settings, `~\u002F.gitconfig`, `gh` `http_unix_socket`, and `launchctl` env vars, then destroy the temporary VM.\n\n## License\n\nMIT\n","satmux 是一个专为地球静止轨道（GEO）机上Wi-Fi设计的TCP多路复用与1-RTT TLS中继工具，用于显著改善高延迟（~620ms RTT）网络下的HTTPS访问稳定性与速度。其核心功能包括：基于BBR拥塞控制的持久化非443端口TCP连接池（:8444），绕过机舱网关的拦截式代理和DNS劫持；本地毫秒级响应的SOCKS5\u002FHTTP CONNECT代理（:1080\u002F:8080），实现TLS ClientHello与请求同步发出，节省一次卫星往返；地面VM侧执行可信TLS 1.3握手、DNS解析及zlib压缩，仅需1次RTT完成端到端安全通信。适用于Inmarsat GX、Viasat、Panasonic、SITA等传统GEO机上Wi-Fi场景，尤其适合开发人员、航空互联网服务提供商及高频访问GitHub、PyPI、MDN等HTTPS服务的空中用户。",2,"2026-11-24 04:38:02","CREATED_QUERY"]