Skip to main content

Remote management, monitoring, and upgrades

Operate headless rnsd-rs and lxmd-rs nodes safely over Reticulum itself — no SSH port exposure required.

1. Remote management over Reticulum​

  1. Generate a dedicated admin identity on your operator workstation:

    rnid-rs -g ~/.rsReticulum/admin_id
    rnid-rs -i ~/.rsReticulum/admin_id -p # copy the 32-char identity hash
  2. On the remote server, add that hash under [reticulum] in ~/.rsReticulum/config and restart rnsd-rs:

    [reticulum]
    enable_transport = yes
    enable_remote_management = yes
    remote_management_allowed = <admin_identity_hash>
  3. Record the remote server's transport identity hash (rnid-rs -i ~/.rsReticulum/storage/transport_identity -p), then query or manage it remotely:

    rnstatus-rs -R <transport_id_hash> -i ~/.rsReticulum/admin_id -A -b -q
    rnpath-rs -R <transport_id_hash> -i ~/.rsReticulum/admin_id -W 20 -t
    rnpath-rs -R <transport_id_hash> -i ~/.rsReticulum/admin_id -B <abusive_hash> --reason "flood"

For remote shell or single-command administration over Reticulum, run rnsh-rs --listen -a <admin_hash> or rnx-rs --listen -a <admin_hash> under systemd (always allowlisted).

2. Fleet health-check & JSON monitoring​

Both rnstatus-rs --json and rnpath-rs --json emit machine-readable output for cron checks, Prometheus exporters, or LXMF alerting via lxmd-rs --send:

# Quick fleet check loop (replace hashes with your transport IDs)
for node in <hash_hub_1> <hash_hub_2>; do
echo "=== $node ==="
rnstatus-rs -R "$node" -i ~/.rsReticulum/admin_id -w 15 -A -b || echo "UNREACHABLE: $node"
done

See CLI tools reference for all flags (-w vs -W vs -t).

3. Safe backups (SQLite & keys)​

Stop daemons before archiving state directories

rnsd-rs and lxmd-rs store live state in SQLite databases (storage/known_destinations.db, storage/cache/announces.db, storage/lxmf/state.db). Copying them while writing can produce a corrupted backup.

sudo systemctl stop lxmd-rs rnsd-rs
sudo tar -czf /var/backups/ratspeak-node-$(date +%F).tar.gz \
/home/operator/.rsReticulum \
/home/operator/.rsLXMF
sudo systemctl start rnsd-rs lxmd-rs

Store backup archives encrypted — they contain storage/transport_identity, storage/i2p/ keys (renaming an I2P interface or replacing transport_identity changes your .b32.i2p address), and ~/.rsLXMF/identity.

4. Upgrading cleanly​

  1. Read the release notes for both rsReticulum and rsLXMF (especially storage migrations and config key changes).

  2. Take a stopped backup (Step 3 above) and note your current binary versions (rnsd-rs --version, lxmd-rs --version).

  3. Upgrading from rsReticulum 1.3.x to 1.5.x: ifac_size changed from bytes to bits (matching Python Reticulum). Convert explicit values before starting 1.5.x:

    rnsd-rs --config /home/operator/.rsReticulum config ifac-units \
    --interface "Private TCP" --source-units bytes --write
  4. One-way SQLite migration in 1.5.0+: rnsd-rs and lxmd-rs 1.5.0+ import legacy cache files into SQLite on first start; rolling back to an older binary requires restoring your pre-upgrade backup.

  5. Replace binaries, start rnsd-rs first, verify rnstatus-rs, then start lxmd-rs and verify lxmd-rs --status.