Alpha dns : wireguard

Bonjour,

Nous venons de pousser en alpha un nouveau mode pour le vpn (wireguard à la place d’openvpn). Il est donc maintenant possible de choisir le type de vpn dans la configuration de Jeedom.

Attention il faut absolument installer à la main le plugin wireguard (beta uniquement) pour que ca marche (bien sur si ce nouveau type de dns est validé alors ca sera automatiquement).

A noter qu’on est vraiment sur du POC, ca semble ok chez moi mais je ne suis pas sur de la capacité de ce systeme à monter en charge. Dans les avantages :

  • connexion plus rapide
  • on arrive mieux a monitorer la connexion
  • un changement d’url de dns est maintenant instantané et ne necessite plus un redemarrer du dns coté Jeedom
  • tout est sur kubernete plus de serveur à coté (plus redondant et plus rapide)
1 « J'aime »

Je regarde ça sur l’atlas

Salut @Loic, je présume que que quand on passe pas votre dns?

Pas compris désolé.

Pour utiliser t’on plugin wireguard il faut passe par le dns jeedom, on ne pas avec un autre nom de domaine ?

Euh non le plugin peut se connecter à n’importe quel serveur wireguard. Après ya pas de support en cas de soucis si c’est pas utilisé pour les dns jeedom mais ça marche quand même

1 « J'aime »

Bonjour,

je n’ai pas rouve de sujet ni de tag pour le #plugin-wireguard.
Je n’arrive pas a installer les dépendances sur Atlas

+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_wireguard
+ echo 1
+ echo 2
+ sudo apt update
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://deb.debian.org/debian buster-updates InRelease
Hit:3 http://deb.debian.org/debian buster-backports InRelease
Hit:4 http://security.debian.org buster/updates InRelease
Get:5 http://armbian.16z.eu/apt buster InRelease [18.3 kB]
Fetched 18.3 kB in 2s (8538 B/s)
Reading package lists...
Building dependency tree...
Reading state information...
1 package can be upgraded. Run 'apt list --upgradable' to see it.
+ echo 3
+ sudo apt install -o Dpkg::Options::=--force-confdef -y wireguard
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
wireguard : Depends: wireguard-tools (>= 1.0.20210223-1~bpo10+1) but 1.0.20200827-1~bpo10+1 is to be installed
E: Unable to correct problems, you have held broken packages.
+ echo 4
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end wireguard
+ rm /tmp/jeedom_install_in_progress_wireguard
+ echo '*******************End of package installation************

j’ai essayer en ssh avec --force-confdef -y wireguard mais ca ne veut pas s’installer
Par contre le DNS a l’aire d’etre connecter

Ben c’est pas bon… Ya un soucis de repo pour ce package ça par contre je sais absolument pas corriger…

C’est sur la box Atlas ça doit être facilement reproductible j’ai juste passer jeedom en alpha et les plugin en beta

Oui oui je dis pas le contraire mais même en reproduisant je ne sais pas pour autant corriger

Peux tu essayer de faire ca :

apt install wireguard-tools=1.0.20210223-1~bpo10+1
apt install wireguard

Les dependances sont passé au vert avec

apt install wireguard -f

Voici le log si besoin

login as: jeedom
jeedom@192.168.0.100's password:
     _ _____ _____ ____   ___  __  __      _   _   _
    | | ____| ____|  _ \ / _ \|  \/  |    / \ | |_| | __ _ ___
 _  | |  _| |  _| | | | | | | | |\/| |   / _ \| __| |/ _` / __|
| |_| | |___| |___| |_| | |_| | |  | |  / ___ \ |_| | (_| \__ \
 \___/|_____|_____|____/ \___/|_|  |_| /_/   \_\__|_|\__,_|___/

Welcome to Debian GNU/Linux 10 (buster) with Linux 5.10.63-rockchip64

System load:   2%               Up time:       8:49
Memory usage:  7% of 3.77G      IP:            192.168.0.100 172.7.84.166
CPU temp:      57°C             Usage of /:    26% of 29G
RX yesterday:  n/a

Votre Jeedom est dispo sur http://jeedomatlas.local ou sur :http://192.168.0.100 172.7.84.166
[ 0 security updates available, 1 updates total: apt upgrade ]
Last check: 2021-11-19 07:04

[ General system configuration (beta): armbian-config ]

jeedom@JeedomAtlas:~$ sudo su
[sudo] Mot de passe de jeedom : 
root@JeedomAtlas:/home/jeedom# apt install wireguard-tools=1.0.20210223-1~bpo10+1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Recommended packages:
  wireguard-modules | wireguard-dkms
The following packages will be upgraded:
  wireguard-tools
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 91,1 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://deb.debian.org/debian buster-backports/main arm64 wireguard-tools arm64 1.0.20210223-1~bpo10+1 [91,1 kB]
Fetched 91,1 kB in 0s (1 084 kB/s)
(Reading database ... 67388 files and directories currently installed.)
Preparing to unpack .../wireguard-tools_1.0.20210223-1~bpo10+1_arm64.deb ...
Unpacking wireguard-tools (1.0.20210223-1~bpo10+1) over (1.0.20200827-1~bpo10+1) ...
Setting up wireguard-tools (1.0.20210223-1~bpo10+1) ...
wg-quick.target is a disabled or a static unit not running, not starting it.
Processing triggers for man-db (2.8.5-2) ...
root@JeedomAtlas:/home/jeedom# apt install wireguard
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  linux-image-4.19.0-18-rt-arm64 linux-image-rt-arm64 wireguard-dkms
Suggested packages:
  linux-doc-4.19 debian-kernel-handbook
Recommended packages:
  firmware-linux-free apparmor
The following NEW packages will be installed:
  linux-image-4.19.0-18-rt-arm64 linux-image-rt-arm64 wireguard wireguard-dkms
0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
Need to get 41,1 MB of archives.
After this operation, 228 MB of additional disk space will be used.
Do you want to continue? [O/n] o
Abort.
root@JeedomAtlas:/home/jeedom# apt install wireguard -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  linux-image-4.19.0-18-rt-arm64 linux-image-rt-arm64 wireguard-dkms
Suggested packages:
  linux-doc-4.19 debian-kernel-handbook
Recommended packages:
  firmware-linux-free apparmor
The following NEW packages will be installed:
  linux-image-4.19.0-18-rt-arm64 linux-image-rt-arm64 wireguard wireguard-dkms
0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
Need to get 41,1 MB of archives.
After this operation, 228 MB of additional disk space will be used.
Do you want to continue? [O/n] o
Get:1 http://deb.debian.org/debian buster/main arm64 linux-image-4.19.0-18-rt-arm64 arm64 4.19.208-1 [40,8 MB]
Get:2 http://deb.debian.org/debian buster/main arm64 linux-image-rt-arm64 arm64 4.19+105+deb10u13 [8 348 B]
Get:3 http://deb.debian.org/debian buster-backports/main arm64 wireguard-dkms all 1.0.20210219-1~bpo10+1 [254 kB]
Get:4 http://deb.debian.org/debian buster-backports/main arm64 wireguard all 1.0.20210223-1~bpo10+1 [8 284 B]
Fetched 41,1 MB in 17s (2 394 kB/s)
Selecting previously unselected package linux-image-4.19.0-18-rt-arm64.
(Reading database ... 67388 files and directories currently installed.)
Preparing to unpack .../linux-image-4.19.0-18-rt-arm64_4.19.208-1_arm64.deb ...
Unpacking linux-image-4.19.0-18-rt-arm64 (4.19.208-1) ...
Selecting previously unselected package linux-image-rt-arm64.
Preparing to unpack .../linux-image-rt-arm64_4.19+105+deb10u13_arm64.deb ...
Unpacking linux-image-rt-arm64 (4.19+105+deb10u13) ...
Selecting previously unselected package wireguard-dkms.
Preparing to unpack .../wireguard-dkms_1.0.20210219-1~bpo10+1_all.deb ...
Unpacking wireguard-dkms (1.0.20210219-1~bpo10+1) ...
Selecting previously unselected package wireguard.
Preparing to unpack .../wireguard_1.0.20210223-1~bpo10+1_all.deb ...
Unpacking wireguard (1.0.20210223-1~bpo10+1) ...
Setting up wireguard-dkms (1.0.20210219-1~bpo10+1) ...
Loading new wireguard-1.0.20210219 DKMS files...
Building for 5.10.63-rockchip64
Module build for kernel 5.10.63-rockchip64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Setting up linux-image-4.19.0-18-rt-arm64 (4.19.208-1) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-5.10.63-rockchip64
I: /initrd.img.old is now a symlink to boot/initrd.img-5.10.63-rockchip64
I: /vmlinuz is now a symlink to boot/vmlinuz-4.19.0-18-rt-arm64
I: /initrd.img is now a symlink to boot/initrd.img-4.19.0-18-rt-arm64
/etc/kernel/postinst.d/dkms:
Error! Your kernel headers for kernel 4.19.0-18-rt-arm64 cannot be found.
Please install the linux-headers-4.19.0-18-rt-arm64 package,
or use the --kernelsourcedir option to tell DKMS where it's located
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.19.0-18-rt-arm64
update-initramfs: Converting to u-boot format
Setting up wireguard (1.0.20210223-1~bpo10+1) ...
Setting up linux-image-rt-arm64 (4.19+105+deb10u13) ...
root@JeedomAtlas:/home/jeedom# apt install wireguard
Reading package lists... Done
Building dependency tree
Reading state information... Done
wireguard is already the newest version (1.0.20210223-1~bpo10+1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@JeedomAtlas:/home/jeedom#

Ok a voir maintenant si l’accès dns marche bien si oui je rajouterai le -f même si j’aime pas l’idée de forcer Apt a faire un truc qu’il ne veut pas faire

bonjour je n’arrive pas a installe le plugin sur jeedom en vm sur proxmox version 4.1.27

Oui j’ai bien accès au dns

Cool ben je vais prendre en compte ça dans le script d’installation merci pour les tests

C’est possible que a partir de jeedom 4.2

Personne d’autre pour les tests ?

une vm sous buster, jeedom 4.2, les dépendances ne s’installent pas:
plugin beta installé à l’instant:

+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_wireguard
+ echo 1
+ echo 2
+ sudo apt update
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:4 http://security.debian.org/debian-security buster/updates/main Sources [203 kB]
Get:5 http://security.debian.org/debian-security buster/updates/main amd64 Packages [309 kB]
Get:6 http://security.debian.org/debian-security buster/updates/main Translation-en [163 kB]
Get:7 http://deb.debian.org/debian buster/main Sources [7837 kB]
Get:8 http://deb.debian.org/debian buster-updates/main Sources.diff/Index [9100 B]
Get:9 http://deb.debian.org/debian buster-updates/main amd64 Packages.diff/Index [9100 B]
Get:10 http://deb.debian.org/debian buster-updates/main Sources 2021-10-26-2004.40.pdiff [395 B]
Get:10 http://deb.debian.org/debian buster-updates/main Sources 2021-10-26-2004.40.pdiff [395 B]
Get:11 http://deb.debian.org/debian buster-updates/main amd64 Packages 2021-10-26-2004.40.pdiff [283 B]
Get:11 http://deb.debian.org/debian buster-updates/main amd64 Packages 2021-10-26-2004.40.pdiff [283 B]
Get:12 http://deb.debian.org/debian buster/non-free Sources [85.8 kB]
Get:13 http://deb.debian.org/debian buster/main amd64 Packages [7906 kB]
Get:14 http://deb.debian.org/debian buster/main Translation-en [5968 kB]
Get:15 http://deb.debian.org/debian buster/non-free amd64 Packages [87.7 kB]
Get:16 http://deb.debian.org/debian buster/non-free Translation-en [88.8 kB]
Fetched 22.9 MB in 5s (4789 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
64 packages can be upgraded. Run 'apt list --upgradable' to see them.
+ echo 3
+ sudo chmod +x /var/www/html/core/class/../../plugins/wireguard/resources/pre-install.sh
+ sudo /var/www/html/core/class/../../plugins/wireguard/resources/pre-install.sh
+ echo 4
+ sudo apt install -o Dpkg::Options::=--force-confdef -y wireguard
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package wireguard
+ echo 5
+ rm /tmp/jeedom_install_in_progress_wireguard
+ echo '*******************End of package installation******************'
*******************End of package installation******************

veux-tu que j’installe à la main?

Non pas la peine ca sera corrigé dans la beta de demain, merci pour le retour