Client VPN installé, lancé mais ne fonctionne pas

Mon serveur YunoHost : pas de VPN

Matériel: Brique Internet avec VPN
Version de YunoHost: 11.0.9.5
J’ai accès à mon serveur : En SSH | Par la webadmin | En direct avec un clavier/écran | …
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : oui
Si oui, expliquer:

Réinstallation de Nextcloud (voir Dnsmasq ne fonctionne plus suite à une tentative de mise à jour yunohost )

Description du problème

Le client VPN a été installé via Applications :
ID vpnclient
Libellé VPN Client
Description Fait passer le trafic internet à travers un VPN
Version 2.0.2~ynh9
Peut être installée plusieurs fois Non
Date d’installation 17 août 2022 à 00:41:19

Le service est installé, fonctionne mais aucune “tuile” n’est visible sur yunohost/sso/

systemctl status ynh-vpnclient
● ynh-vpnclient.service - YunoHost VPN Client.
     Loaded: loaded (/etc/systemd/system/ynh-vpnclient.service; enabled; vendor preset: enabled)
     Active: active (exited) since Wed 2022-08-17 08:42:52 CEST; 16s ago
    Process: 29122 ExecStart=/usr/local/bin/ynh-vpnclient start (code=exited, status=0/SUCCESS)
   Main PID: 29122 (code=exited, status=0/SUCCESS)
        CPU: 1.065s

août 17 08:42:51 systemd[1]: Starting YunoHost VPN Client....
août 17 08:42:51 ynh-vpnclient[29130]: [INFO] Retrieving Yunohost settings...
août 17 08:42:52 ynh-vpnclient[29179]: [ OK ] Settings retrieved
août 17 08:42:52 ynh-vpnclient[29195]: [WARN] Service is disabled, not starting it
août 17 08:42:52 systemd[1]: Finished YunoHost VPN Client..

Le service est lancé mais la connexion ne passe pas par le VPN.

Les applications sont à jour :

apt list --upgradable
En train de lister... Fait
root@home:~/#

via l’interface d’admin web :

ynh-vpnclient

Description Tunnels the internet traffic through a VPN
Statut failed depuis il y a 2 minutes
Lancement au démarrage : Activé
Configuration Inconnu

yunohost service stop ynh-vpnclient
Succès ! Le service 'ynh-vpnclient' a été arrêté
# yunohost service start ynh-vpnclient
Succès ! Le service 'ynh-vpnclient' a été démarré
# yunohost service status ynh-vpnclient
configuration: unknown
description: Tunnels the internet traffic through a VPN
last_state_change: 2022-08-17 09:20:23
start_on_boot: enabled
status: failed

le log de ynh-vpnclient : hastebin
le log du diagnostique : https://paste.yunohost.org/raw/jeqokazevo

mise à jour de Yunohost (11.0.9.6 remplace 11.0.9.5)

→ ynh-vpnclient toujours impossible à démarrer.


systemctl stop yunoyunohost-firewall.service
systemctl stop yunohost-firewall.service 
systemctl start openvpn.service
systemctl start yunohost-firewall.service
 root@home:~/# systemctl status yunohost-firewall.service 
● yunohost-firewall.service - YunoHost Firewall
     Loaded: loaded (/etc/systemd/system/yunohost-firewall.service; enabled; vendor preset: enabled)
     Active: active (exited) since Wed 2022-08-17 11:36:10 CEST; 3min 29s ago
    Process: 11792 ExecStart=/usr/bin/yunohost firewall reload (code=exited, status=0/SUCCESS)
   Main PID: 11792 (code=exited, status=0/SUCCESS)
        CPU: 4.966s

août 17 11:36:09 yunohost[11792]:   - 80
août 17 11:36:09 yunohost[11792]:   - 443

août 17 11:36:10 systemd[1]: Finished YunoHost Firewall.
root@home:~/# systemctl status openvpn.service
● openvpn.service - OpenVPN service
     Loaded: loaded (/lib/systemd/system/openvpn.service; disabled; vendor preset: enabled)
     Active: active (exited) since Wed 2022-08-17 11:35:48 CEST; 4min 1s ago
    Process: 11774 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
   Main PID: 11774 (code=exited, status=0/SUCCESS)
        CPU: 10ms

août 17 11:35:48 systemd[1]: Starting OpenVPN service...
août 17 11:35:48 systemd[1]: Finished OpenVPN service.

la connexion VPN ne fonctionnent toujours pas.

Oui ça fait depuis un moment (genre Janvier) que la nouvelle version de VPNclient n’inclu plus de tuile, il y a plusieurs raisons techniques qui justifie ce changement.

La configuration de l’app se fait désormais dans le “config panel” de l’app, dans la webadmin, Apps > VPN client > Configuration (un truc comme ça)

Ok, je me souviens avoir déjà eu des soucis avec l’application client VPN, il me semble qu’il faut recharger le .cube je vais essayer de retrouver des infos sur le forum.

Là j’ai bien installé puis configuré l’application via Applications / VPN Client / Configuration
j’ai chargé le fichier .opvn et saisi mon login/pass

j’ai sauvegardé, il m’a indiqué : https://paste.yunohost.org/raw/gisipujudu

Configuration key 'ip6_net' edited in app settings

Configuration key 'dns_method' edited in app settings

Configuration key 'nameservers' edited in app settings

Starting vpnclient service if needed

[FAIL] Tun0 interface did not show up ... most likely an issue happening in OpenVPN client ... below is an extract of the log that might be relevant to pinpoint the issue

[CRIT] Failed to start OpenVPN client : tun0 interface did not show up

**L'opération 'Appliquer la configuration à l'application 'vpnclient'' a échoué ! Pour obtenir de l'aide, merci de partager le journal de l'opération en [cliquant ici](https://home.freegum.fr/yunohost/admin/#/tools/logs/20220818-054558-app_config_set-vpnclient)**

après modification et rechargement du .cube le VPN fonctionne.
Un grand merci !

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.