These endpoints cover two functional areas: general system configuration (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/KevinCruz-cell/Redes-de-comunicaciones-/llms.txt
Use this file to discover all available pages before exploring further.
/sistema) and SSH administration (/administracion). Both groups communicate with the router over SSH via SystemRouterService and require an active session (see Authentication). All responses are JSON.
System configuration
GET /sistema/data
Returns the router’s current system settings read from UCI and the system clock.Response
Router hostname (
system.@system[0].hostname).Current date and time on the router as returned by
date.Optional router description string.
Free-text notes field stored in UCI.
Human-readable timezone name (e.g.,
"America/Mexico_City").POSIX timezone string (e.g.,
"CST6CDT,M4.1.0,M10.5.0").Maximum size of the in-memory log buffer in kilobytes.
Remote syslog server IP address. Empty string if not configured.
Remote syslog server port. Empty string if not configured.
Syslog transport protocol (
"udp" or "tcp").Path to the log file on the router. Empty string if not configured.
System log verbosity level as a human-readable name. One of:
"Depurar", "Info", "Aviso", "Advertencia", "Error", "Critico", "Alerta", "Emergencia".Cron log verbosity. One of:
"Depurar", "Normal", "Advertencia".POST /sistema/update
Updates one or more system settings on the router. Only fields present in the request body are updated; omitted fields are left unchanged.Request
New router hostname.
New router description.
New notes text.
Human-readable timezone name (e.g.,
"America/New_York").POSIX timezone string (e.g.,
"EST5EDT,M3.2.0,M11.1.0").Log buffer size in kilobytes.
Remote syslog server IP address.
Remote syslog server port.
Syslog protocol:
"udp" or "tcp".Path for the log file on the router.
Log verbosity level name (e.g.,
"Info", "Advertencia"). Mapped internally to the numeric UCI value.Cron log level name:
"Depurar", "Normal", or "Advertencia".Response
true on success, false on failure.Confirmation message on success.
uci commit system, reloads the system service, and restarts the log daemon.
SSH administration
GET /administracion/data
Returns the current Dropbear SSH daemon configuration from UCI.Response
SSH listening port. Defaults to
"22".Whether password authentication is enabled:
"on" or "off".Whether root login is permitted:
"on" or "off".Whether gateway ports (remote port forwarding) are allowed:
"on" or "off".UCI interface name Dropbear listens on. Empty string means all interfaces.
POST /administracion/password
Changes theroot password on the router using passwd.
Request
New password. Must be at least 4 characters. Cannot be empty.
Response
true on success.Success confirmation. Includes a reminder to update
ROUTER_PASSWORD in your .env file if the router’s actual password was changed.POST /administracion/ssh
Updates the Dropbear SSH daemon configuration and restarts the service to apply changes.Request
SSH port number. Must be between 1 and 65535.
true to allow password authentication, false to disable it.true to allow root login, false to deny it.true to enable gateway ports (remote port forwarding), false to disable.UCI interface name to restrict SSH to. Omit or send empty string to listen on all interfaces.
Response
true on success.Confirmation on success, error description on failure.
POST /administracion/key
Uploads an SSH public key file and appends it to/etc/dropbear/authorized_keys on the router.
Request
Send asmultipart/form-data.
SSH public key file. The key content must start with one of:
ssh-rsa, ssh-ed25519, ecdsa-sha2-nistp256, ecdsa-sha2-nistp384, or ecdsa-sha2-nistp521. Keys that do not match this format are rejected with HTTP 422.Response
true on success.Confirmation on success, error description on failure.
grep -qxF to avoid adding duplicate keys. Dropbear is restarted after appending the key.
GET /administracion/keys
Returns all SSH public keys currently installed in/etc/dropbear/authorized_keys on the router.
Response
true on success.Array of parsed key objects.
POST /administracion/key/delete
Removes a specific SSH public key from/etc/dropbear/authorized_keys on the router. Dropbear is restarted after removal.
Request
The full key line to remove, exactly as it appears in the
full field returned by GET /administracion/keys.Response
true on success.Confirmation on success, error description on failure.