Implement satellite reflectors

Satellite reflectors are lightweight relay instances that connect to a
parent reflector instead of joining the full trunk mesh. Clients connect
to the satellite normally; it relays all TGs bidirectionally to the
parent. The parent forwards satellite events to local clients, trunk
peers, and other satellites.

New classes:
- SatelliteLink: parent-side handler for each inbound satellite
  connection (HMAC auth, heartbeat, all-TG relay)
- SatelliteClient: satellite-side outbound connection to parent

Wire protocol: MsgTrunkHello gains m_role field (ROLE_PEER=0,
ROLE_SATELLITE=1) to distinguish satellite handshakes.

Config:
- Parent: [SATELLITE] section with LISTEN_PORT and SECRET
- Satellite: SATELLITE_OF, SATELLITE_PORT, SATELLITE_SECRET in [GLOBAL]

HTTP /config endpoint now shows mode (reflector/satellite),
satellite_server config on parents, and satellite connection info.

Docs updated: README, DEPLOYMENT_ITALY, Italian translation.
This commit is contained in:
Audric committed 2026-03-20 13:53:17 +01:00
1 parent 166e57f445
commit 551cfa70cd
13 files changed
+1159 -20

No files matched your search

@@ -100,3 +100,19 @@ CERT_CA_HOOK=@SVX_SHARE_INSTALL_DIR@/ca-hook.py
#SECRET=change_this_shared_secret
#REMOTE_PREFIX=2
# --- Satellite reflectors ---
# A satellite is a lightweight reflector that connects to a parent
# reflector instead of joining the trunk mesh. Clients connect to the
# satellite normally; it relays everything to the parent.
#
# Parent side: accept inbound satellite connections
#[SATELLITE]
#LISTEN_PORT=5303
#SECRET=change_this_satellite_secret
#
# Satellite side: set these in [GLOBAL] instead of LOCAL_PREFIX/TRUNK_x
#SATELLITE_OF=reflector-01.example.com
#SATELLITE_PORT=5303
#SATELLITE_SECRET=change_this_satellite_secret
#SATELLITE_ID=my-satellite