Skip to content

RPort Remote Control

Calin Crisan edited this page Dec 1, 2022 · 2 revisions

Usage

To enable RPort remote control on your device, create the /data/etc/rport-client.conf configuration file containing one or more of the following variables:

RPORT_ID=<client_id>
RPORT_NAME=<client_name>
RPORT_PASSWORD=<client_password>
RPORT_AUTH=<client_username>:<client_password>
RPORT_SERVER=<server_host>
RPORT_TUNNELS="'remote_port1:local_port1 remote_port2:local_port2 ...'"

This configuration file is evaluated by bash, so you can execute commands such as:

RPORT_ID=$(cat /data/my_id.txt)

Default Values

RPORT_ID=${OS_PREFIX}-${BOARD_SN}
RPORT_NAME=${RPORT_ID}
RPORT_PASSWORD=${RPORT_ID}
RPORT_AUTH=${RPORT_ID}:${RPORT_PASSWORD}
RPORT_SERVER=
RPORT_TUNNELS=

Example

RPORT_ID=${OS_PREFIX}-${BOARD_SN}
RPORT_PASSWORD=deadbeef
RPORT_SERVER=remote.example.com
RPORT_TUNNELS="'8080:80 2222:22'"