Commit Graph
6 Commits
Author SHA1 Message Date
cyril 05972f8c24 fork: security=tls (self-signed + pinnedPeerCertSha256) becomes the default hop transport
reverse-over-REALITY is broken on xray >= 26.7 (Rvs control channel never
registers; XTLS/Xray-core #6242/#6248 family). Verified loopback e2e with
hub-generated configs on 26.11.9<->26.11.9 and 26.11.9<->26.7.28: portal
entry-* -> reverse mux -> router-admin redirect = HTTP 200 over pinned TLS.

- hub: OWRT_REMOTE_TRANSPORT=tls|reality|none (default tls); generates
  self-signed cert (openssl) + exposes pin; serves tls streamSettings.
- agent: uci tls_sni/tls_pin, validation, tls branch in render_client_config.
- CGI: reality_short_id/tls_sni/tls_pin fields; uci config lines extended.
- docs: REALITY_TRANSPORT.md extended with the bisect results and pitfalls
  (freedom finalRules for reverse egress, bridge registers ~2s late,
  legacy reverse objects removed).
2026-11-22 12:28:43 +03:00
cyril-fork 9b7a89257b fork: REALITY transport for the router<->hub VLESS hop
Upstream ships the router<->hub hop as plain VLESS (tcp, security=none):
UUID-authenticated but cleartext — LuCI credentials and logs inside the
hop are readable by anyone on-path. This fork wraps the hop in
VLESS+Reality (TLS handshake camouflaged against a public dest, no CA
certs, no renewal):

- vps/owrt-remote-hub.py: transport profile (STATE_DIR/transport.json,
  x25519 keypair via the xray binary), reality streamSettings in the
  server inbound and in make_router_xray_config(), uci transport lines
  in the generated OpenWrt config, transport block in heartbeat
  hub_update, and xray -test gate before swapping /etc/xray config.
- files/usr/sbin/owrt-remote: security/reality_* uci options,
  validation, reality streamSettings in render_client_config,
  security-aware compat probe and core-compat checks.
- files/etc/config/owrtremote, cgi form fields, PKG_RELEASE bump.

Env on the hub: OWRT_REMOTE_TRANSPORT=reality|none,
OWRT_REMOTE_REALITY_DEST/FINGERPRINT, OWRT_REMOTE_XRAY_BINARY.

NOTE: xray-core >= 26.9.8 REALITY servers reject client hellos
(XTLS/Xray-core#7259) — pin the hub core to 26.7.28 until upstream fixes it.
2026-11-22 11:22:49 +03:00
kzolotarev95 b854d3a001 Fix VPS host persistence and direct WAN routing in v111 2026-10-08 09:20:35 +04:00
kzolotarev95 16aec94771 Separate SSH reverse tunnel from LuCI 2026-06-29 13:16:41 +04:00
kzolotarev95 63b7fb7459 Add SSH terminal and fix LuCI proxy 2026-06-29 13:06:01 +04:00
kzolotarev95 38a92b0b1f Add OpenWrt remote hub 2026-06-29 02:14:50 +04:00