Skip to content

Commit 08c0a28

Browse files
authored
Merge pull request #34 from Grizzelbee/development
Development
2 parents 94968d9 + f008d4c commit 08c0a28

17 files changed

+2352
-606
lines changed

README.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ Since WireGuard internally only uses the public keys to identify peers, but they
4343
* Translation page
4444
- Public Key: The public key of one of your peers
4545
- group name: A symbolic name for this peer
46-
46+
* Config files page
47+
- Name: Must be the same as on the Main page
48+
- Interface: Name of the interface stored in this config file (wg0, wg1, ...)
49+
- config file: fully qualified path and name of the config file for this interface (/etc/wireguard/wg0.conf, ...)
50+
4751
### executed command line depends on checkboxes:
4852
* No checkbox checked: `wg show all dump` will be executed (for root-like users and use of the SetUID-Bit)
4953
* Sudo checkbox is checked: `sudo wg show all dump` will be executed (works with proper sudoers line)
@@ -55,9 +59,11 @@ Since WireGuard internally only uses the public keys to identify peers, but they
5559
### Docker
5660
Basically everything said about regular installations also applies for docker and works the same way.
5761
Except the needed checkboxes to get the proper command executed and the needed sudoers line. If you use WireGuard inside
58-
a docker container you may need a sudoers line similar to this:
62+
a docker container you may need sudoers lines similar to this:
5963
```
6064
<wg-monitoring-user> ALL=NOPASSWD:/usr/bin/docker exec -it wireguard /usr/bin/wg show all dump
65+
<wg-monitoring-user> ALL=NOPASSWD:/usr/bin/docker exec -it wireguard /usr/bin/wg set * peer * remove
66+
<wg-monitoring-user> ALL=NOPASSWD:/usr/bin/docker exec -it wireguard /usr/bin/wg syncconf * *
6167
```
6268
This adapter expects the name `wireguard` for your WireGuard container and the `wg` command in `/usr/bin/`inside the container.
6369
These values currently can't be customized.
@@ -84,6 +90,8 @@ Basically there are three ways to execute the command:
8490
```
8591
#iobroker.wireguard adapter
8692
wireguard-monitoring-user ALL=NOPASSWD:/usr/bin/wg show all dump
93+
wireguard-monitoring-user ALL=NOPASSWD:/usr/bin/wg set * peer * remove
94+
wireguard-monitoring-user ALL=NOPASSWD:/usr/bin/wg syncconf * *
8795
```
8896
This setting allows the `<wireguard-monitoring-user>` on `ALL` hosts to execute the `wg show all dump` command from the directory `/usr/bin/` (may need to be changed on your distribution) without needing a password (`NOPASSWD`).
8997
![Image](admin/sudoers_config.png)
@@ -92,6 +100,12 @@ Basically there are three ways to execute the command:
92100
* none
93101

94102
## Changelog
103+
### **WORK IN PROGRESS**
104+
105+
### v1.3.0 (2022-06-25)
106+
* (grizzelbee) Fixed: [#33](https://github.com/Grizzelbee/ioBroker.wireguard/issues/33) Added buttons to suspend single and restore all peers of an interface
107+
* (grizzelbee) Upd: dependencies got updated
108+
95109
### v1.2.1 (2022-04-24)
96110
* (grizzelbee) Fixed: [#20](https://github.com/Grizzelbee/ioBroker.wireguard/issues/20) Fixed a bug in tty linking which prevented docker option to work.
97111

admin/i18n/de/translations.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
{
2+
"Click here to add a new config file": "Klicken Sie hier, um eine neue Konfigurationsdatei hinzuzufügen",
23
"Click here to add a new host": "Klicken Sie hier, um einen neuen Host hinzuzufügen",
34
"Click here to add a new translation": "Klicken Sie hier, um eine neue Übersetzung hinzuzufügen",
5+
"Example: host: Testhost (same as NAME on main page), Interface: wg0, config file: /etc/wireguard/wg0.conf": "Beispiel: Host: Testhost (identisch mit NAME auf der Hauptseite), Schnittstelle: wg0, Konfigurationsdatei: /etc/wireguard/wg0.conf\":",
46
"Host address": "Hostadresse (IP)",
7+
"Host name": "Hostname",
58
"Important": "Wichtig",
69
"Installation_hint_1": "Dieser Adapter unterstützt WireGuard sowohl unter Linux als auch unter Windows.",
710
"Installation_hint_2": "Der wg-Befehl muss sich in PATH befinden und der Benutzer benötigt Administratorrechte.",
811
"Installation_hint_3": "Tipp: Sicherheitshinweise zum ausführenden Benutzer und sudo entnehmen Sie bitte der ReadMe-Datei auf github.",
912
"Installation_hint_4": "Klicken Sie hier, um Sicherheitshinweise auf github zu lesen.",
1013
"Installation_hint_5": "Aktivieren Sie das Docker-Kontrollkästchen, wenn Sie WireGuard in einem Docker-Container ausführen; ",
1114
"Installation_hint_6": "Aktivieren Sie sudo, wenn Sie sudo benötigen, um den Befehl ohne Passwort auszuführen.",
15+
"Interface name": "Schnittstellenname",
1216
"Main settings": "Haupteinstellungen",
1317
"Name": "Name",
1418
"Password": "Passwort",
@@ -19,7 +23,10 @@
1923
"Public-Key translations": "Public-Key-Übersetzungen",
2024
"Use sudo": "Verwenden Sie sudo",
2125
"User": "Benutzer",
26+
"You need to list all your WireGuard config files here (with full path) to use the peer reactivation feature. For more information please see the readme file on github.": "Sie müssen alle Ihre WireGuard-Konfigurationsdateien hier auflisten (mit vollständigem Pfad), um die Peer-Reaktivierungsfunktion zu verwenden. ",
27+
"config file": "Konfigurationsdatei",
2228
"docker": "Docker",
2329
"donation": "Wenn Ihnen dieser Adapter gefällt und Sie erwägen, mich zu unterstützen:",
24-
"sudo": "sudo"
30+
"sudo": "sudo",
31+
"wgConfigFile": "wg Konfigurationsdatei"
2532
}

admin/i18n/en/translations.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
{
2+
"Click here to add a new config file": "Click here to add a new config file",
23
"Click here to add a new host": "Click here to add a new host",
34
"Click here to add a new translation": "Click here to add a new translation",
5+
"Example: host: Testhost (same as NAME on main page), Interface: wg0, config file: /etc/wireguard/wg0.conf": "Example: host: Testhost (same as NAME on main page), Interface: wg0, config file: /etc/wireguard/wg0.conf\":",
46
"Host address": "Host address (IP)",
7+
"Host name": "Host name",
58
"Important": "Important",
69
"Installation_hint_1": "This adapter support WireGuard either on Linux as well as on Windows.",
710
"Installation_hint_2": "wg command needs to be in PATH and user needs administrator privileges.",
811
"Installation_hint_3": "Tip: For security hints regarding the executing user and sudo please refer to the ReadMe file on github.",
912
"Installation_hint_4": "Click here to read the security hints on github.",
1013
"Installation_hint_5": "Check docker checkbox if you are running WireGuard inside a docker container; ",
1114
"Installation_hint_6": "activate sudo if you need sudo to execute the command without password.",
15+
"Interface name": "Interface name",
1216
"Main settings": "Main settings",
1317
"Name": "Name",
1418
"Password": "Password",
@@ -19,7 +23,10 @@
1923
"Public-Key translations": "Public-Key translations",
2024
"Use sudo": "sudo",
2125
"User": "User",
26+
"You need to list all your WireGuard config files here (with full path) to use the peer reactivation feature. For more information please see the readme file on github.": "You need to list all your WireGuard config files here (with full path) to use the peer reactivation feature. For more information please see the readme file on github.",
27+
"config file": "Config file",
2228
"docker": "docker",
2329
"donation": "If you like this adapter and consider supporting me:",
24-
"sudo": "sudo"
30+
"sudo": "sudo",
31+
"wgConfigFile": ""
2532
}

admin/i18n/es/translations.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
{
2+
"Click here to add a new config file": "Haga clic aquí para agregar un nuevo archivo de configuración",
23
"Click here to add a new host": "Haga clic aquí para agregar un nuevo host",
34
"Click here to add a new translation": "Haga clic aquí para agregar una nueva traducción",
5+
"Example: host: Testhost (same as NAME on main page), Interface: wg0, config file: /etc/wireguard/wg0.conf": "Ejemplo: host: Testhost (igual que NOMBRE en la página principal), Interfaz: wg0, archivo de configuración: /etc/wireguard/wg0.conf\":",
46
"Host address": "Dirección del servidor (IP)",
7+
"Host name": "nombre de host",
58
"Important": "Importante",
69
"Installation_hint_1": "Este adaptador admite WireGuard tanto en Linux como en Windows.",
710
"Installation_hint_2": "El comando wg debe estar en PATH y el usuario necesita privilegios de administrador.",
811
"Installation_hint_3": "Sugerencia: para obtener sugerencias de seguridad sobre el usuario que ejecuta y sudo, consulte el archivo Léame en github.",
912
"Installation_hint_4": "Haga clic aquí para leer las sugerencias de seguridad en github.",
1013
"Installation_hint_5": "Marque la casilla de verificación de la ventana acoplable si está ejecutando WireGuard dentro de un contenedor de la ventana acoplable; ",
1114
"Installation_hint_6": "marque sudo si necesita sudo para ejecutar el comando sin contraseña.",
15+
"Interface name": "Nombre de la interfaz",
1216
"Main settings": "Ajustes principales",
1317
"Name": "Nombre",
1418
"Password": "Clave",
@@ -19,7 +23,10 @@
1923
"Public-Key translations": "Traducciones de clave pública",
2024
"Use sudo": "Usa sudo",
2125
"User": "Usuario",
26+
"You need to list all your WireGuard config files here (with full path) to use the peer reactivation feature. For more information please see the readme file on github.": "Debe enumerar todos sus archivos de configuración de WireGuard aquí (con la ruta completa) para usar la función de reactivación de pares. ",
27+
"config file": "archivo de configuración",
2228
"docker": "estibador",
2329
"donation": "Si te gusta este adaptador y consideras apoyarme:",
24-
"sudo": "sudo"
30+
"sudo": "sudo",
31+
"wgConfigFile": "archivo de configuración wg"
2532
}

admin/i18n/fr/translations.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
{
2+
"Click here to add a new config file": "Cliquez ici pour ajouter un nouveau fichier de configuration",
23
"Click here to add a new host": "Cliquez ici pour ajouter un nouvel hôte",
34
"Click here to add a new translation": "Cliquez ici pour ajouter une nouvelle traduction",
5+
"Example: host: Testhost (same as NAME on main page), Interface: wg0, config file: /etc/wireguard/wg0.conf": "Exemple : host : Testhost (identique à NAME sur la page principale), Interface : wg0, fichier de configuration : /etc/wireguard/wg0.conf\":",
46
"Host address": "Adresse de l'hôte (IP)",
7+
"Host name": "Nom d'hôte",
58
"Important": "Important",
69
"Installation_hint_1": "Cet adaptateur prend en charge WireGuard aussi bien sur Linux que sur Windows.",
710
"Installation_hint_2": "La commande wg doit être dans PATH et l'utilisateur a besoin de privilèges d'administrateur.",
811
"Installation_hint_3": "Astuce : Pour des conseils de sécurité concernant l'utilisateur exécutant et sudo, veuillez vous référer au fichier Lisez-moi sur github.",
912
"Installation_hint_4": "Cliquez ici pour lire les conseils de sécurité sur github.",
1013
"Installation_hint_5": "Cochez la case Docker si vous exécutez WireGuard dans un conteneur Docker ; ",
1114
"Installation_hint_6": "vérifiez sudo si vous avez besoin de sudo pour exécuter la commande sans mot de passe.",
15+
"Interface name": "Nom de l'interface",
1216
"Main settings": "Réglages principaux",
1317
"Name": "Nom",
1418
"Password": "Mot de passe",
@@ -19,7 +23,10 @@
1923
"Public-Key translations": "Traductions de clé publique",
2024
"Use sudo": "Utiliser sudo",
2125
"User": "Utilisateur",
26+
"You need to list all your WireGuard config files here (with full path) to use the peer reactivation feature. For more information please see the readme file on github.": "Vous devez lister tous vos fichiers de configuration WireGuard ici (avec le chemin complet) pour utiliser la fonction de réactivation par les pairs. ",
27+
"config file": "fichier de configuration",
2228
"docker": "docker",
2329
"donation": "Si vous aimez cet adaptateur et envisagez de me soutenir :",
24-
"sudo": "sudo"
30+
"sudo": "sudo",
31+
"wgConfigFile": "fichier de configuration wg"
2532
}

admin/i18n/it/translations.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
{
2+
"Click here to add a new config file": "Fare clic qui per aggiungere un nuovo file di configurazione",
23
"Click here to add a new host": "Fare clic qui per aggiungere un nuovo host",
34
"Click here to add a new translation": "Clicca qui per aggiungere una nuova traduzione",
5+
"Example: host: Testhost (same as NAME on main page), Interface: wg0, config file: /etc/wireguard/wg0.conf": "Esempio: host: Testhost (lo stesso di NAME nella pagina principale), Interfaccia: wg0, file di configurazione: /etc/wireguard/wg0.conf\":",
46
"Host address": "Indirizzo dell'host (IP)",
7+
"Host name": "Nome host",
58
"Important": "Importante",
69
"Installation_hint_1": "Questo adattatore supporta WireGuard sia su Linux che su Windows.",
710
"Installation_hint_2": "Il comando wg deve essere in PATH e l'utente necessita dei privilegi di amministratore.",
811
"Installation_hint_3": "Suggerimento: per suggerimenti sulla sicurezza relativi all'utente in esecuzione e sudo, fare riferimento al file Leggimi su github.",
912
"Installation_hint_4": "Fai clic qui per leggere i suggerimenti sulla sicurezza su github.",
1013
"Installation_hint_5": "Seleziona la casella di controllo della finestra mobile se stai eseguendo WireGuard all'interno di un contenitore della finestra mobile; ",
1114
"Installation_hint_6": "controlla sudo se hai bisogno di sudo per eseguire il comando senza password.",
15+
"Interface name": "Nome interfaccia",
1216
"Main settings": "Impostazioni principali",
1317
"Name": "Nome",
1418
"Password": "Parola d'ordine",
@@ -19,7 +23,10 @@
1923
"Public-Key translations": "Traduzioni a chiave pubblica",
2024
"Use sudo": "Usa sudo",
2125
"User": "Utente",
26+
"You need to list all your WireGuard config files here (with full path) to use the peer reactivation feature. For more information please see the readme file on github.": "È necessario elencare qui tutti i file di configurazione di WireGuard (con il percorso completo) per utilizzare la funzione di riattivazione peer. ",
27+
"config file": "file di configurazione",
2228
"docker": "portuale",
2329
"donation": "Se ti piace questo adattatore e considera di supportarmi:",
24-
"sudo": "sudo"
30+
"sudo": "sudo",
31+
"wgConfigFile": "file di configurazione wg"
2532
}

admin/i18n/nl/translations.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
{
2+
"Click here to add a new config file": "Klik hier om een ​​nieuw configuratiebestand toe te voegen",
23
"Click here to add a new host": "Klik hier om een ​​nieuwe host toe te voegen",
34
"Click here to add a new translation": "Klik hier om een ​​nieuwe vertaling toe te voegen",
5+
"Example: host: Testhost (same as NAME on main page), Interface: wg0, config file: /etc/wireguard/wg0.conf": "Voorbeeld: host: Testhost (zelfde als NAAM op hoofdpagina), Interface: wg0, configuratiebestand: /etc/wireguard/wg0.conf\":",
46
"Host address": "Host adres (IP)",
7+
"Host name": "Hostnaam",
58
"Important": "Belangrijk",
69
"Installation_hint_1": "Deze adapter ondersteunt WireGuard zowel op Linux als op Windows.",
710
"Installation_hint_2": "wg-opdracht moet in PATH staan ​​en de gebruiker heeft beheerdersrechten nodig.",
811
"Installation_hint_3": "Tip: Raadpleeg voor veiligheidstips met betrekking tot de uitvoerende gebruiker en sudo het ReadMe-bestand op github.",
912
"Installation_hint_4": "Klik hier om veiligheidstips voor github te lezen.",
1013
"Installation_hint_5": "Schakel het selectievakje Docker in als u WireGuard in een docker-container gebruikt; ",
1114
"Installation_hint_6": "vink sudo aan als je sudo nodig hebt om de opdracht zonder wachtwoord uit te voeren.",
15+
"Interface name": "Interfacenaam",
1216
"Main settings": "Belangrijkste instellingen",
1317
"Name": "Naam",
1418
"Password": "Wachtwoord",
@@ -19,7 +23,10 @@
1923
"Public-Key translations": "Public-Key vertalingen",
2024
"Use sudo": "Gebruik sudo",
2125
"User": "Gebruiker",
26+
"You need to list all your WireGuard config files here (with full path) to use the peer reactivation feature. For more information please see the readme file on github.": "U moet hier al uw WireGuard-configuratiebestanden vermelden (met volledig pad) om de peer-reactiveringsfunctie te gebruiken. ",
27+
"config file": "config-bestand",
2228
"docker": "havenarbeider",
2329
"donation": "Als je deze adapter leuk vindt en overweegt mij te steunen:",
24-
"sudo": "sudo"
30+
"sudo": "sudo",
31+
"wgConfigFile": "wg-configuratiebestand"
2532
}

admin/i18n/pl/translations.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
{
2+
"Click here to add a new config file": "Kliknij tutaj, aby dodać nowy plik konfiguracyjny",
23
"Click here to add a new host": "Kliknij tutaj, aby dodać nowego hosta",
34
"Click here to add a new translation": "Kliknij tutaj, aby dodać nowe tłumaczenie",
5+
"Example: host: Testhost (same as NAME on main page), Interface: wg0, config file: /etc/wireguard/wg0.conf": "Przykład: host: Testhost (taki sam jak NAZWA na stronie głównej), Interfejs: wg0, plik konfiguracyjny: /etc/wireguard/wg0.conf:",
46
"Host address": "Adres hosta (IP)",
7+
"Host name": "Nazwa hosta",
58
"Important": "Ważny",
69
"Installation_hint_1": "Ten adapter obsługuje WireGuard zarówno w systemie Linux, jak i Windows.",
710
"Installation_hint_2": "Komenda wg musi znajdować się w PATH, a użytkownik potrzebuje uprawnień administratora.",
811
"Installation_hint_3": "Wskazówka: Aby uzyskać wskazówki dotyczące bezpieczeństwa dotyczące wykonującego użytkownika i sudo, zapoznaj się z plikiem ReadMe na github.",
912
"Installation_hint_4": "Kliknij tutaj, aby przeczytać wskazówki dotyczące bezpieczeństwa na github.",
1013
"Installation_hint_5": "Zaznacz pole wyboru docker, jeśli używasz WireGuard wewnątrz kontenera docker; ",
1114
"Installation_hint_6": "sprawdź sudo, jeśli potrzebujesz sudo, aby wykonać polecenie bez hasła.",
15+
"Interface name": "Nazwa interfejsu",
1216
"Main settings": "Ustawienia główne",
1317
"Name": "Imię",
1418
"Password": "Hasło",
@@ -19,7 +23,10 @@
1923
"Public-Key translations": "Tłumaczenia klucza publicznego",
2024
"Use sudo": "Użyj sudo",
2125
"User": "Użytkownik",
26+
"You need to list all your WireGuard config files here (with full path) to use the peer reactivation feature. For more information please see the readme file on github.": "Musisz wyświetlić tutaj listę wszystkich plików konfiguracyjnych WireGuard (z pełną ścieżką), aby użyć funkcji reaktywacji peera. ",
27+
"config file": "plik konfiguracyjny",
2228
"docker": "doker",
2329
"donation": "Jeśli podoba Ci się ten adapter i rozważ wsparcie mnie:",
24-
"sudo": "sudo"
30+
"sudo": "sudo",
31+
"wgConfigFile": "wg pliku konfiguracyjnego"
2532
}

0 commit comments

Comments
 (0)