Skip to main content

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.

Redes de Comunicaciones is a PHP/Laravel web application that gives you a browser-based control panel for your OpenWrt router. Instead of logging into the router’s LuCI interface directly, you connect through this app, which translates your actions into SSH commands executed on the router in real time.

Key features

Dashboard

View live system info: hostname, uptime, load averages, memory usage, CPU model, and active network interfaces.

Wi-Fi and switch

Manage wireless interfaces, scan nearby networks, and configure VLAN switch port assignments.

DHCP configuration

Configure dnsmasq: DHCP ranges, static leases, TFTP boot, and DNS forwarding rules.

Network interfaces

Create, edit, restart, stop, and delete network interfaces over SSH using UCI commands.

Static routes

Add, update, and remove static IPv4 and IPv6 routing table entries on the router.

System settings

Change the router’s hostname, timezone, log verbosity, and remote syslog server.

Administration

Manage SSH port, password auth, root login, and authorized public keys for Dropbear.

Scheduled tasks

View and edit cron jobs running on the router; changes take effect immediately.

LED control

Turn LEDs on or off and assign kernel triggers like netdev, timer, or heartbeat.

Backup and restore

Download a configuration backup, restore from an archive, or flash new firmware.

Diagnostics

Run ping, traceroute, and nslookup directly from the router to verify connectivity.

Logs

View the router’s syslog, kernel messages, process list, firewall rules, and routing table.

Architecture

The application is built on three layers:
  • Laravel 12 (PHP 8.2+) handles routing, session management, and Blade-rendered views. The frontend assets are compiled with Vite.
  • phpseclib 3 (phpseclib/phpseclib) provides a pure-PHP SSH2 client. SystemRouterService opens an SSH connection per request and executes shell commands (UCI reads/writes, system queries) directly on the router.
  • RouterService uses Laravel’s HTTP client to communicate with the router’s LuCI web interface for authentication. It performs a form POST to /cgi-bin/luci, extracts the sysauth cookie on a 302 redirect, and stores it in the PHP session.
Browser → Laravel app → phpseclib SSH → OpenWrt router
                      → HTTP / LuCI   → OpenWrt router
All SSH commands run over the standard port 22. No agent or daemon needs to be installed on the router beyond an active SSH server, which OpenWrt enables by default.

Requirements

RequirementMinimum version
PHP8.2
Composer2.x
Node.js18 LTS
npmbundled with Node.js
OpenWrt routerAny release with SSH enabled
The machine running this app must be on the same local network as the router. The default router address is 192.168.10.1. A direct Ethernet connection is recommended for reliability.

Next steps

Get started

Clone the repo, configure your environment, and have the dashboard running in minutes.

Configure your connection

Set router credentials and SSH options through environment variables.

Build docs developers (and LLMs) love