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.
This commit is contained in:
cyril-fork committed 2026-11-22 11:22:49 +03:00
1 parent 9dead7741d
commit 9b7a89257b
5 files changed
+192 -16

No files matched your search

+4
View File
@@ -17,6 +17,10 @@ config remote 'main'
option vless_uuid ''
option vless_encryption 'none'
option vless_flow ''
option security 'none'
option reality_public_key ''
option reality_server_name ''
option reality_fingerprint 'chrome'
option reverse_tag 'reverse-in'
option ssh_vless_uuid ''
option ssh_reverse_tag 'reverse-in-ssh'