---
title: "Instalar en routers MIPS | Wantastic Docs"
description: "Instala wantasticd en routers y placas MIPS: un comando te indica el tipo de CPU; luego copia el bloque de instalación correspondiente y reclama el router con un código QR."
url: "https://wantastic.app/es/docs/install-mips-routers"
category: "Install wantasticd"
reading_time: "5 min"
---

# Instalar en routers MIPS

Instala wantasticd en routers y placas MIPS: un comando te indica el tipo de CPU; luego copia el bloque de instalación correspondiente y reclama el router con un código QR.

> **Outcome:** La compilación MIPS correcta se ejecuta como servicio en tu router y el router aparece como Online en la consola.

## Before you start

- Una shell de root en el router (SSH).
- El controlador TUN (OpenWrt: opkg install kmod-tun).
- Unos 6 MB de flash libres.
- Un teléfono o un navegador para iniciar sesión en la consola de Wantastic.

## Instalación rápida (5 minutos)

Hay dos tipos de routers MIPS: little-endian (la mayoría) y big-endian. El instalador puede elegir el tipo equivocado, así que compruébalo primero. No necesitas token.

1. Inicia sesión en el router como root y ejecuta el comando de comprobación de abajo.
2. Si muestra mipsel o 01, usa la pestaña Little-endian. Si no, usa la pestaña Big-endian.
3. Pega los comandos de esa pestaña. El router muestra una Claim URL y un código QR.
4. Escanea el código QR o abre la Claim URL, inicia sesión y haz clic en Claim Device.
5. Cuando la terminal muestre "Device claimed", pulsa Ctrl+C. Luego inicia el servicio con el último comando de la pestaña.

Comprobar el tipo de CPU:

```sh
grep DISTRIB_ARCH /etc/openwrt_release 2>/dev/null || hexdump -s 5 -n 1 -C /bin/busybox
```

### Little-endian (mipsel, la mayoría de los routers)

MediaTek MT7621, MT7628, MT7620 y la mayoría de los routers domésticos. Esto instala a mano la compilación mipsle, reclama el router y añade el servicio de OpenWrt.

Instalar, reclamar y añadir el servicio:

```sh
cd /tmp
TAG=$(wget -qO- https://get.wantastic.app/latest | cut -d+ -f1)
wget -O w.tgz https://get.wantastic.app/$TAG/wantasticd-linux-mipsle.tar.gz
tar -xzf w.tgz && ./wantasticd version
cp wantasticd /usr/bin/wantasticd && chmod 755 /usr/bin/wantasticd
cat > /etc/init.d/wantasticd <<'EOF'
#!/bin/sh /etc/rc.common
START=99
STOP=10
USE_PROCD=1
start_service() {
  procd_open_instance
  procd_set_param command /usr/bin/wantasticd connect --config /etc/wantastic/config.conf
  procd_set_param respawn 3600 5 0
  procd_set_param term_timeout 15
  procd_set_param file /etc/wantastic/config.conf
  procd_set_param stdout 1
  procd_set_param stderr 1
  procd_close_instance
}
EOF
chmod +x /etc/init.d/wantasticd
wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
/etc/init.d/wantasticd enable && /etc/init.d/wantasticd start
```

> ./wantasticd version debe mostrar una versión. Si muestra un error, el router no puede ejecutar wantasticd.

### Big-endian o MIPS64

Atheros/QCA ath79, Lantiq y Cavium Octeon (EdgeRouter). El instalador normal elige la compilación correcta.

Instalar y reclamar:

```sh
wget -qO- https://get.wantastic.app/install.sh | sh; wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
/etc/init.d/wantasticd restart
```

*Comprobar el tipo de CPU: mipsel en DISTRIB_ARCH significa little-endian: usa la pestaña Little-endian.*

```
$ root@router:~# grep DISTRIB_ARCH /etc/openwrt_release 2>/dev/null || hexdump -s 5 -n 1 -C /bin/busybox
DISTRIB_ARCH='mipsel_24kc'
```

*Instalar y reclamar: genkey muestra una Claim URL y un código QR, y luego espera. Cuando haces clic en Claim Device en la consola, muestra "Device claimed". Entonces pulsa Ctrl+C y reinicia el servicio.*

```
$ root@router:/tmp# wantasticd genkey
…
…
Generated device claim key: /etc/wantastic/device-claim-key.json
Public key: Vd3hK1oQ7mR2sT9uW4xY6zA8bC0dE2fG4hJ6kL8mN0P=
Server URL: https://console.wantastic.app
Claim URL: https://console.wantastic.app/#desktop?claim_public_key=Vd3hK1oQ…%3D&wantastic_server=https%3A%2F%2Fconsole.wantastic.app

█▀▀▀▀▀█ ▄▀▄ ▀█▄ █▀▀▀▀▀█
█ ███ █ ▀█▄▀▄█ █ ███ █
█ ▀▀▀ █ ▄▀█ ▀▄ █ ▀▀▀ █
▀▀▀▀▀▀▀ ▀ ▀ █ ▀ ▀▀▀▀▀▀▀
▀█▄▀▄▀▀█▀▄█▀▄▀▀▄█▀▄▀█▄
█▀▀▀▀▀█ █▄▀▄▀█ ▀▄█ ▄▀
▀▀▀▀▀▀▀ ▀▀ ▀▀▀ ▀▀▀ ▀▀▀

2026/10/29 09:14:03 Waiting for claim. Press Ctrl+C to stop.
2026/10/29 09:15:12 Device claimed. Configuration saved to /etc/wantastic/config.conf
^C
$ root@router:/tmp# /etc/init.d/wantasticd enable && /etc/init.d/wantasticd start
```

*Console: Claim Wantastic Device. La Claim URL y el código QR rellenan la clave por ti. Solo tienes que hacer clic en Claim Device.*

1. Claim public key ya está rellenado
2. Deja Wantastic server como aparece
3. Haz clic en Claim Device

> **Tip:** ¿No tienes el teléfono a mano? Copia la Claim URL de la terminal y ábrela en cualquier ordenador.

## Comprueba que funciona

1. Ejecuta wantasticd status. Muestra Status: Connected y una VPN IP.
2. Abre Devices en la consola. El dispositivo aparece como Online.

Comprobación:

```sh
wantasticd status
```

*wantasticd status: Status: Connected y una VPN IP indican que el túnel está activo.*

```
$ root@router:~# wantasticd status
Status:        Connected
Version:       v1.0.54+377f3c0
Mode:          TUN (wantastic0)
VPN IPs:       10.200.0.14/32
Public key:    q7ZkV3m1yH0dTn8pXo2bLwR4sE6uJ9cA1fG5hK8iN0M=
Server:        wg.wantastic.app:51820
Exit node:     false
Local access:  false
Auto update:   true
Traffic:       ↓ 18.4 KiB  ↑ 9.2 KiB
Peers:         2 (direct 1, relay 1)
Uptime:        4m12s
```

*Console: Ventana Devices: el nuevo dispositivo aparece con su nombre y pasa a Online en pocos segundos.*

1. Buscar por nombre
2. Status muestra Online
3. La IP de Overlay coincide con wantasticd status
4. Last seen se sigue actualizando

## Gestionar el servicio

OpenWrt:

```sh
/etc/init.d/wantasticd restart
/etc/init.d/wantasticd stop
logread -e wantasticd
```

> **Operational note:** Otros firmwares: consulta la guía BusyBox / Linux embebido. Las actualizaciones mantienen el mismo tipo de compilación, así que un router mipsle se queda en mipsle.

## Otras formas de instalar

Solo lo necesitas para automatización o casos especiales. La instalación rápida de arriba es la forma más sencilla.

### Con un token (muchos dispositivos)

Usa un token cuando instales muchos dispositivos con un script o cuando nadie pueda escanear un código QR. Crea el token una vez en la consola: Account → Secrets → + New Secret → Generate. Sustituye <TOKEN> por él.

Instalación con token:

```sh
wget -qO- https://get.wantastic.app/install.sh | sh -s -- --token <TOKEN>
```

> Trata el token como una contraseña. Quien lo tenga puede añadir dispositivos a tu cuenta hasta que caduque.

### Instalación manual

Para CPU poco comunes, equipos sin conexión o tus propios archivos de servicio, sigue la guía Instalación manual con tarball.

*Console: Account → Secrets → + New Secret. El valor del secreto es el token.*

1. Abre la pestaña Secrets
2. Haz clic en + New Secret
3. Ponle un nombre
4. Haz clic en Generate
5. Copia el nuevo secreto

## Verify the result

- ./wantasticd version muestra una versión (la compilación es la adecuada para la CPU).
- wantasticd status muestra Status: Connected.
- El router aparece como Online en Devices, también tras un reinicio.

## Common issues

### El instalador se detiene justo después de la descarga.

```
Error: downloaded binary does not report target version v1.0.54+377f3c0
```

- **Where:** install.sh
- **Likely cause:** El router es little-endian y el instalador descargó la compilación big-endian.
- **Fix:** Usa la pestaña Little-endian en la instalación rápida.

### Al ejecutar el binario aparece un error de la shell en lugar de una versión.

```
./wantasticd: line 1: syntax error: unexpected "("
```

- **Where:** shell
- **Likely cause:** La compilación no coincide con el tipo de CPU.
- **Fix:** Usa la otra pestaña (mips en lugar de mipsle, o al revés). Si no funciona ninguna compilación, el router no puede ejecutar wantasticd.

### No hay suficiente espacio.

```
Error: /usr/bin is still not writable after remounting /
```

- **Where:** install.sh
- **Likely cause:** La flash está llena. Los routers con 8 MB de flash no suelen tener sitio para wantasticd.
- **Fix:** Elimina los paquetes que no uses o coloca el binario en un almacenamiento USB con la guía Instalación manual con tarball.

Comprobar espacio:

```sh
df -h /overlay
```

### El servicio arranca y se detiene de inmediato.

```
Failed to start agent: create device: create tun: CreateTUN("wantastic0") failed; /dev/net/tun does not exist
```

- **Where:** registro del servicio
- **Likely cause:** El controlador TUN del kernel no está cargado.
- **Fix:** Carga el controlador TUN y luego reinicia el servicio.

OpenWrt:

```sh
opkg update && opkg install kmod-tun
/etc/init.d/wantasticd restart
```

- **Verify:** ls -l /dev/net/tun muestra el dispositivo.

### El servicio no arranca o se reinicia una y otra vez.

```
Failed to load configuration: validate config: private key required
```

- **Where:** registro del servicio
- **Likely cause:** wantasticd está instalado pero el dispositivo aún no se ha reclamado, así que su archivo de configuración está vacío.
- **Fix:** Reclama el dispositivo y luego reinicia el servicio.

Reclamar y reiniciar:

```sh
wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
/etc/init.d/wantasticd restart
```

- **Verify:** wantasticd status muestra Status: Connected.

### Hiciste clic en Claim Device, pero la terminal nunca muestra "Device claimed".

```
Claim polling not ready: claim config rejected (401): invalid signature or timestamp out of window
```

- **Where:** wantasticd genkey
- **Likely cause:** El reloj del dispositivo no está en hora. La reclamación solo funciona si el reloj tiene un desfase inferior a 30 segundos respecto a la hora real.
- **Fix:** Corrige el reloj. genkey sigue esperando y termina por sí solo.

Ajustar la hora una vez:

```sh
ntpd -q -p pool.ntp.org
date
```

### status indica Running (tunnel down), o peers muestra HANDSHAKE never para (server).

```
Device health check failed: …
```

- **Where:** registro del servicio
- **Likely cause:** La red bloquea el puerto UDP 51820 saliente hacia el hub (wg.wantastic.app), o el DNS no funciona.
- **Fix:** Permite UDP 51820 saliente en tu firewall y luego reinicia el servicio.

Probar DNS y reiniciar:

```sh
nslookup wg.wantastic.app
/etc/init.d/wantasticd restart
```

- **Verify:** wantasticd peers muestra un handshake reciente (por ejemplo "8s ago") para (server).

### Una instalación con token falla justo después de la descarga.

```
Login failed: registration rejected (401): invalid or expired login token
```

- **Where:** install.sh / wantasticd login
- **Likely cause:** El token es incorrecto, ha caducado, se ha agotado (se alcanzó Max Uses) o se ha eliminado.
- **Fix:** Prescinde del token. Reclama el dispositivo en su lugar.

Reclamar en su lugar:

```sh
wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
/etc/init.d/wantasticd restart
```

- **Verify:** El dispositivo aparece en Devices y se muestra Online.

## Continue with

- [Install on OpenWrt](https://wantastic.app/es/docs/install-openwrt): Install wantasticd on an OpenWrt router in 2 minutes over SSH: add the TUN driver, run one wget command, scan a QR code, click Claim Device.
- [Install on BusyBox / embedded Linux](https://wantastic.app/es/docs/install-embedded-busybox): Install wantasticd on minimal BusyBox devices without systemd, procd or OpenRC: one wget command, scan a QR code, click Claim Device.
- [Manual tarball install](https://wantastic.app/es/docs/install-manual): Install wantasticd by hand from the release archive on any Linux CPU (including ppc64, s390x and loong64), claim it with genkey, and add your own service.
- [Choose your install method](https://wantastic.app/es/docs/install-overview): Find your device in one table and copy one command. Most devices install in 2 minutes: install, scan a QR code, click Claim Device.
- [OpenWrt and embedded device errors](https://wantastic.app/es/docs/errors-openwrt-embedded): kmod-tun, read-only flash, procd, full flash, wrong clocks and BusyBox issues on routers and modules.
- [Installer errors (install.sh and install.ps1)](https://wantastic.app/es/docs/errors-installer): Every message the Wantastic installers print when they stop, what it means and the easiest fix.
- [Update, roll back and uninstall](https://wantastic.app/es/docs/update-and-uninstall): Update or uninstall wantasticd with one line per OS. Also: how auto-update works, turning it off, rolling back to the previous binary, and purging all data.
