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.
32 lines
868 B
Plaintext
32 lines
868 B
Plaintext
config remote 'main'
|
|
option enabled '0'
|
|
option router_id 'main'
|
|
option router_name 'Главный роутер'
|
|
option role 'main'
|
|
option hub_url ''
|
|
option hub_token ''
|
|
option heartbeat_interval '30'
|
|
option xray_bin '/usr/bin/xray'
|
|
option xray_config '/etc/xray/owrt-remote-client.json'
|
|
option vps_host ''
|
|
option vps_host_mode 'manual'
|
|
option wan_direct '0'
|
|
option wan_interface 'wan'
|
|
option wan_dns ''
|
|
option vps_port '8443'
|
|
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'
|
|
option admin_host '127.0.0.1'
|
|
option admin_port '80'
|
|
option ssh_host '127.0.0.1'
|
|
option ssh_port '22'
|
|
option public_url ''
|