Files
luci-app-owrt-remote/package/luci-app-owrt-remote/Makefile
T
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

69 lines
1.9 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-owrt-remote
PKG_VERSION:=122
PKG_RELEASE:=3
PKG_LICENSE:=MIT
PKG_MAINTAINER:=kzolotarev95
PKGARCH:=all
include $(INCLUDE_DIR)/package.mk
define Package/luci-app-owrt-remote
PKGARCH:=all
SECTION:=luci
CATEGORY:=LuCI
SUBMENU:=3. Applications
TITLE:=OpenWrt Remote Hub router agent
URL:=https://github.com/kzolotarev95/luci-app-owrt-remote
DEPENDS:=+luci-base +rpcd-mod-file +uhttpd +jsonfilter +curl +ca-bundle +etherwake
endef
define Package/luci-app-owrt-remote/description
Router agent and LuCI panel for OpenWrt Remote Hub. Includes Heartbeat,
independent remote Xray control, WAN direct and bounded persistent logs.
Xray is selected and verified for the router by the existing agent when
applying the Hub configuration; it is not bundled into this noarch package.
endef
define Package/luci-app-owrt-remote/conffiles
/etc/config/owrtremote
endef
# scripts/openwrt_package.py prepare creates this self-contained SDK package
# from files/ and root/. There are no separately maintained runtime copies.
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
endef
define Build/Configure
endef
define Build/Compile
endef
define Package/luci-app-owrt-remote/install
$(CP) ./root/. $(1)/
endef
define Package/luci-app-owrt-remote/postinst
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || /bin/sh /usr/lib/owrt-remote/package.sh configure
endef
define Package/luci-app-owrt-remote/postrm
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || { \
rm -f /tmp/luci-indexcache /tmp/luci-indexcache.*; \
rm -rf /tmp/luci-modulecache; \
[ ! -x /etc/init.d/rpcd ] || /etc/init.d/rpcd reload; \
}
exit 0
endef
# OpenWrt's generated postinst/prerm handle enable/start and stop/disable for
# both procd services, and PKG_UPGRADE keeps upgrade semantics on IPK and APK.
# Do not duplicate them or depend on opkg's "configure" argument: apk invokes
# post-install/post-upgrade with version arguments instead.
$(eval $(call BuildPackage,luci-app-owrt-remote))