---
title: "Installation unter OpenWrt | Wantastic Docs"
description: "Installiere wantasticd in 2 Minuten per SSH auf einem OpenWrt-Router: TUN-Treiber hinzufügen, einen wget-Befehl ausführen, QR-Code scannen, auf Claim Device klicken."
url: "https://wantastic.app/de/docs/install-openwrt"
category: "Install wantasticd"
reading_time: "4 Min."
---

# Installation unter OpenWrt

Installiere wantasticd in 2 Minuten per SSH auf einem OpenWrt-Router: TUN-Treiber hinzufügen, einen wget-Befehl ausführen, QR-Code scannen, auf Claim Device klicken.

> **Outcome:** wantasticd läuft als procd-Dienst auf dem Router, startet sich selbst neu, startet beim Booten, und der Router wird in der Konsole als Online angezeigt.

## Before you start

- OpenWrt 19.07 oder neuer, mit SSH-Zugriff als root.
- Etwa 6 MB freier Flash-Speicher.
- Korrekte Uhrzeit auf dem Router (NTP ist standardmäßig aktiv).
- Ein Smartphone oder ein Browser, um dich in der Wantastic-Konsole anzumelden.

## Schnellinstallation (2 Minuten)

Verbinde dich per SSH als root mit dem Router. Zwei Befehle installieren den TUN-Treiber und wantasticd und zeigen dann einen QR-Code an. Es wird kein Token benötigt.

1. Melde dich per SSH als root am Router an (ssh root@192.168.1.1). Installiere den TUN-Treiber mit dem ersten Befehl unten.
2. Füge den Installationsbefehl ein. Er installiert wantasticd und zeigt dann den QR-Code an.
3. Das Gerät gibt eine Claim URL und einen QR-Code aus. Scanne den QR-Code mit deinem Smartphone oder öffne die Claim URL in einem Browser.
4. Melde dich in der Wantastic-Konsole an. Das Fenster Claim Wantastic Device öffnet sich mit bereits ausgefülltem Key. Klicke auf Claim Device.
5. Das Terminal gibt "Device claimed" aus. Drücke Strg+C und führe dann den Neustartbefehl unten aus.
6. Öffne Devices in der Konsole. Das Gerät wird als Online angezeigt.

TUN-Treiber installieren:

```sh
opkg update && opkg install kmod-tun ca-bundle
```

Installieren und zuordnen:

```sh
wget -qO- https://get.wantastic.app/install.sh | sh; wantasticd genkey
```

Nach "Device claimed": Strg+C drücken, dann den Dienst neu starten:

```sh
/etc/init.d/wantasticd restart
```

*Installieren und zuordnen: genkey gibt eine Claim URL und einen QR-Code aus und wartet dann. Nachdem du in der Konsole auf Claim Device geklickt hast, gibt es "Device claimed" aus. Drücke dann Strg+C und starte den Dienst neu.*

```
$ root@OpenWrt:~# wget -qO- https://get.wantastic.app/install.sh | sh; wantasticd genkey
…
Skipping login. Run 'wantasticd login' to authenticate.
Service registered with procd and started.
…
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@OpenWrt:~# /etc/init.d/wantasticd restart
```

*Console: Claim Wantastic Device. Die Claim URL und der QR-Code füllen den Key für dich aus. Du klickst nur auf Claim Device.*

1. Claim public key ist bereits ausgefüllt
2. Wantastic server unverändert lassen
3. Auf Claim Device klicken

> **Warning:** Die meisten MIPS-Router (MT7621, MT7628) brauchen einen anderen Build als den, den der Installer wählt. Bricht der Installer mit "downloaded binary does not report target version" ab, folge der Anleitung für MIPS-Router.

> **Tip:** Kein Smartphone zur Hand? Kopiere die Claim URL aus dem Terminal und öffne sie auf einem beliebigen Computer.

> **Operational note:** Vor der Zuordnung gibt der Installer möglicherweise "Error: procd service did not become healthy" aus. Das ist bei einem neuen Router normal. OpenWrt 24.10 und neuer verwenden apk statt opkg: apk update && apk add kmod-tun ca-bundle

## Funktion prüfen

1. Führe wantasticd status aus. Es zeigt Status: Connected und eine VPN IP an.
2. Öffne Devices in der Konsole. Das Gerät wird als Online angezeigt.

Prüfen:

```sh
wantasticd status
```

*wantasticd status: Status: Connected und eine VPN IP bedeuten, dass der Tunnel steht.*

```
$ root@OpenWrt:~# 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: Fenster Devices: Das neue Gerät erscheint unter seinem Namen und wird innerhalb weniger Sekunden Online.*

1. Nach Name suchen
2. Status zeigt Online
3. Overlay-IP stimmt mit wantasticd status überein
4. Last seen wird laufend aktualisiert

## Dienst verwalten

procd und logread:

```sh
/etc/init.d/wantasticd restart
/etc/init.d/wantasticd stop
/etc/init.d/wantasticd start
logread -e wantasticd          # log lines
```

> **Operational note:** Normale Logzeilen erscheinen als daemon.err. Lies den Text, nicht die Stufe.

## Optional: LAN des Routers erreichen

Damit erreichen deine anderen Geräte das LAN des Routers (zum Beispiel 192.168.1.0/24) über Wantastic.

Lokalen Zugriff aktivieren:

```sh
/etc/init.d/wantasticd stop
wantasticd connect --config /etc/wantastic/config.conf --allow-local-access
# wait a few seconds, press Ctrl+C, then:
/etc/init.d/wantasticd start
```

> **Operational note:** Die Einstellung wird in der Konfiguration gespeichert, daher behält der Dienst sie bei.

## Weitere Installationswege

Das brauchst du nur für Automatisierung oder Sonderfälle. Die Schnellinstallation oben ist der einfachste Weg.

### Mit Token (viele Geräte)

Verwende ein Token, wenn du viele Geräte per Skript installierst oder niemand einen QR-Code scannen kann. Erstelle das Token einmal in der Konsole: Account → Secrets → + New Secret → Generate. Ersetze <TOKEN> damit.

Token-Installation:

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

> Behandle das Token wie ein Passwort. Jeder, der es hat, kann bis zu dessen Ablauf Geräte zu deinem Konto hinzufügen.

### Konsolen-Skript

Öffne in der Konsole bei einem beliebigen Gerät Show Config → Tab UNIX und klicke auf Copy. Füge das Skript im Terminal des Geräts ein. Das Skript enthält bereits ein Token.

### Manuelle Installation

Für ungewöhnliche CPUs, Offline-Rechner oder eigene Service-Dateien folge der Anleitung Manuelle Installation per Tarball.

*Console: Account → Secrets → + New Secret. Der Wert des Secrets ist das Token.*

1. Tab Secrets öffnen
2. Auf + New Secret klicken
3. Namen vergeben
4. Auf Generate klicken
5. Neues Secret kopieren

## Verify the result

- wantasticd status zeigt Status: Connected.
- logread -e wantasticd zeigt "Wantastic agent started successfully".
- Der Router wird unter Devices als Online angezeigt, auch nach einem Neustart.

## Common issues

### Der Dienst startet und stoppt sofort wieder.

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

- **Where:** Dienst-Log
- **Likely cause:** Der TUN-Treiber des Kernels ist nicht geladen.
- **Fix:** Lade den TUN-Treiber und starte dann den Dienst neu.

Lösung:

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

- **Verify:** ls -l /dev/net/tun zeigt das Gerät an.

### Der Installer endet mit einem procd-Fehler.

```
Error: procd service did not become healthy
```

- **Where:** install.sh
- **Likely cause:** Der Router ist noch nicht zugeordnet, oder kmod-tun fehlt.
- **Fix:** Installiere kmod-tun, ordne den Router zu und starte dann den Dienst neu.

Lösung:

```sh
opkg update && opkg install kmod-tun
wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
/etc/init.d/wantasticd restart
```

### Der Installer bricht direkt nach dem Download ab.

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

- **Where:** install.sh
- **Likely cause:** Der Router hat eine Little-Endian-MIPS-CPU, und der Installer hat den Big-Endian-Build gewählt.
- **Fix:** Installiere den mipsle-Build von Hand. Die Anleitung für MIPS-Router enthält die Befehle zum Kopieren.

### Der Download schlägt fehl.

```
wget failed: https://get.wantastic.app/…
```

- **Where:** install.sh
- **Likely cause:** Das CA-Bundle fehlt, die Uhrzeit des Routers ist falsch, oder der Router hat kein DNS.
- **Fix:** Installiere das CA-Bundle und stelle die Uhrzeit ein, dann führe die Schnellinstallation erneut aus.

Lösung:

```sh
opkg update && opkg install ca-bundle
ntpd -q -p pool.ntp.org
wget -qO- https://get.wantastic.app/install.sh | sh; wantasticd genkey
```

### Der Installer kann die Binärdatei nicht schreiben.

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

- **Where:** install.sh
- **Likely cause:** Der Flash-Speicher ist voll.
- **Fix:** Prüfe den freien Speicher und entferne nicht genutzte Pakete, dann versuche es erneut.

Speicher prüfen:

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

### Der Installer kann das Dateisystem nicht neu einhängen.

```
Error: could not remount / read-write. Run as root or unlock the filesystem.
```

- **Where:** install.sh
- **Likely cause:** Die Firmware sperrt das Dateisystem (Hersteller-Firmware).
- **Fix:** Flashe Standard-OpenWrt oder installiere an einem beschreibbaren Ort (USB) mit der Anleitung Manuelle Installation per Tarball.

### Der Dienst startet nicht oder startet immer wieder neu.

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

- **Where:** logread
- **Likely cause:** wantasticd ist installiert, aber das Gerät ist noch nicht zugeordnet, daher ist seine Konfigurationsdatei leer.
- **Fix:** Ordne das Gerät zu und starte dann den Dienst neu.

Zuordnen und neu starten:

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

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

### Du hast auf Claim Device geklickt, aber das Terminal gibt nie "Device claimed" aus.

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

- **Where:** wantasticd genkey
- **Likely cause:** Die Uhr des Geräts geht falsch. Die Zuordnung funktioniert nur, wenn die Uhr höchstens 30 Sekunden von der echten Zeit abweicht.
- **Fix:** Korrigiere die Uhrzeit. genkey wartet weiter und schließt von selbst ab.

Uhrzeit einmalig setzen:

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

### Ein zweites Interface (wantastic1) erscheint, oder das Log zeigt einen Portkonflikt.

```
Port 51820 in use, using random port
```

- **Where:** Dienst-Log
- **Likely cause:** genkey läuft noch im Terminal, während der Dienst ebenfalls läuft. Jetzt konkurrieren zwei Instanzen.
- **Fix:** Drücke im genkey-Terminal Strg+C und starte dann den Dienst neu.

Neu starten:

```sh
/etc/init.d/wantasticd restart
```

### wantasticd status gibt Offline aus.

```
Status: Offline — daemon not running (start: sudo systemctl start wantasticd (OpenWrt: /etc/init.d/wantasticd start))
```

- **Where:** wantasticd status
- **Likely cause:** Der Hintergrunddienst ist gestoppt, abgestürzt oder startet noch. Der Statusbefehl startet ihn nicht.
- **Fix:** Starte den Dienst.

Dienst starten:

```sh
/etc/init.d/wantasticd start
```

### status meldet Running (tunnel down), oder peers zeigt HANDSHAKE never für (server).

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

- **Where:** Dienst-Log
- **Likely cause:** Das Netzwerk blockiert ausgehenden UDP-Port 51820 zum Hub (wg.wantastic.app), oder DNS funktioniert nicht.
- **Fix:** Erlaube ausgehendes UDP 51820 in deiner Firewall und starte dann den Dienst neu.

DNS testen und neu starten:

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

- **Verify:** wantasticd peers zeigt für (server) einen aktuellen Handshake (zum Beispiel "8s ago").

### Du willst das Gerät in ein anderes Konto verschieben oder mit einer neuen Zuordnung von vorn beginnen.

```
Config already exists at /etc/wantastic/config.conf — skipping login.
```

- **Where:** install.sh
- **Likely cause:** Das Gerät behält seine Konfiguration, auch wenn du den Installer erneut ausführst. Du musst die alte Konfiguration zuerst entfernen.
- **Fix:** Verschiebe die alte Konfiguration beiseite und ordne das Gerät dann mit einem neuen Key erneut zu.

Von vorn beginnen:

```sh
mv "/etc/wantastic/config.conf" "/etc/wantastic/config.conf.bak"
wantasticd genkey --force
# after "Device claimed": press Ctrl+C, then:
/etc/init.d/wantasticd restart
```

- **Verify:** Das Gerät erscheint im neuen Konto und wantasticd status zeigt Connected.

### Eine Token-Installation schlägt direkt nach dem Download fehl.

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

- **Where:** install.sh / wantasticd login
- **Likely cause:** Das Token ist falsch, abgelaufen, aufgebraucht (Max Uses erreicht) oder gelöscht.
- **Fix:** Lass das Token weg. Ordne das Gerät stattdessen zu.

Stattdessen zuordnen:

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

- **Verify:** Das Gerät erscheint unter Devices und wird als Online angezeigt.

### Die Zuordnung oder die Anmeldung wird abgelehnt.

```
Login failed: account has reached its device limit — upgrade your plan or remove an existing device
```

- **Where:** wantasticd login / Konsole
- **Likely cause:** Die Geräteanzahl deines Tarifs ist ausgeschöpft. Die Konsole zeigt "You have reached the maximum number of devices for your plan." an.
- **Fix:** Lösche unter Devices ein nicht genutztes Gerät (Zeile → Delete) oder wechsle in einen höheren Tarif. Ordne das Gerät dann erneut zu.

## Continue with

- [Choose your install method](https://wantastic.app/de/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.
- [Install on MIPS routers](https://wantastic.app/de/docs/install-mips-routers): Install wantasticd on MIPS routers and boards: one command tells you the CPU type, then copy the matching install block and claim the router with a QR code.
- [Install on BusyBox / embedded Linux](https://wantastic.app/de/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.
- [wantasticd CLI reference and operations](https://wantastic.app/de/docs/wantasticd): The most used wantasticd commands first, then every command and flag, environment variables, config and state paths per OS, log lines, local access, exit node, and the claim flow (genkey / --wait-claim).
- [Update, roll back and uninstall](https://wantastic.app/de/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.
- [OpenWrt and embedded device errors](https://wantastic.app/de/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/de/docs/errors-installer): Every message the Wantastic installers print when they stop, what it means and the easiest fix.
- [WebProxy for device web UIs](https://wantastic.app/de/docs/webproxy): Open a router, NAS or camera web page in the console. No port forward needed.
