# Perte de connexion régulière VPNClient

**URL:** https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938
**Category:** Support
**Created:** [November 24, 2021, 5:40am UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938 "2021-11-24T05:40:15Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![xnx](https://forum.yunohost.org/user_avatar/forum.yunohost.org/xnx/32/5104_2.png) [@xnx](https://forum.yunohost.org/u/xnx)
#### Post date: [November 24, 2021, 5:40am UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938/1 "2021-11-24T05:40:15Z")

</div>

Bonjour, j’ai les mêmes soucis de “perte” de la connexion VPN, en redemarrant la brique ça refonctionne. J’ai tenté le :

```auto
yunohost app upgrade -u https://github.com/YunoHost-Apps/vpnclient_ynh/tree/testing vpnclient

```

mais ça ne change rien, toujours le même problème qui survient une fois par jour.

---

<div class="post-metadata">

### Author: ![ljf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ljf/32/58_2.png) [@ljf](https://forum.yunohost.org/u/ljf)
#### Post date: [November 24, 2021, 3:02pm UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938/2 "2021-11-24T15:02:34Z")

</div>

Ça ne semble pas être le même soucis.  
Au bout de combien de temps perds tu la connexion ?

Quel est ton fournisseur de VPN ?

Quand tu n’as plus le réseau, est-ce que tu peux tester :

```auto
ping wikipedia.org
ping 9.9.9.9
iptables-save

```

---

<div class="post-metadata">

### Author: ![xnx](https://forum.yunohost.org/user_avatar/forum.yunohost.org/xnx/32/5104_2.png) [@xnx](https://forum.yunohost.org/u/xnx)
#### Post date: [November 26, 2021, 2:41pm UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938/3 "2021-11-26T14:41:50Z")

</div>

Merci pour la rédaction de ce nouveau sujet, en effet le problème est différent. Je perd la connexion chaque jour, je n’arrive pas à savoir si c’est à la même heure. mon fournisseur de VPN est FDN. Je vais essayer de tester ces commandes à la prochaine coupure et je mettrais le résultat dans la réponse.

---

<div class="post-metadata">

### Author: ![xnx](https://forum.yunohost.org/user_avatar/forum.yunohost.org/xnx/32/5104_2.png) [@xnx](https://forum.yunohost.org/u/xnx)
#### Post date: [November 27, 2021, 12:37pm UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938/4 "2021-11-27T12:37:22Z")

</div>

Voilà ce jour, perte de la connexion VPN vers 13h  
sur l’interface d’administration :

ynh-vpnclient Tunnels the internet traffic through a VPN  
failed depuis il y a 1 minute

journalctl

```auto
-- Logs begin at Fri 2021-11-26 14:04:10 CET, end at Sat 2021-11-27 13:09:42 CET. --
Nov 27 13:07:13 ntpd[21417]: Listen normally on 9 wlan0 [fe80::3a:35ff:feb0:4300%3]:123
Nov 27 13:07:13 ntpd[21417]: Listening on routing socket on fd #26 for interface updates
Nov 27 13:07:20 ntpd[21417]: Soliciting pool server 5***
Nov 27 13:07:21 ntpd[21417]: ntpd: time slew -0.015651 s
Nov 27 13:07:21 ynh-vpnclient[21238]: [INFO] Now actually starting OpenVPN client...
Nov 27 13:07:21 ynh-vpnclient[21238]: [INFO] OpenVPN client started ... waiting for tun0 interface to show up
Nov 27 13:07:43 ynh-vpnclient[21238]: [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
Nov 27 13:07:43 ynh-vpnclient[21238]: Sat Nov 27 12:57:31 2021 UDP link local: (not bound)
Nov 27 13:07:43 ynh-vpnclient[21238]: Sat Nov 27 12:57:31 2021 UDP link remote: [AF_INET6]2001:910:800::104:1194
Nov 27 13:07:43 ynh-vpnclient[21238]: Sat Nov 27 12:57:53 2021 event_wait : Interrupted system call (code=4)
Nov 27 13:07:43 ynh-vpnclient[21238]: Sat Nov 27 12:57:53 2021 SIGTERM received, sending exit notification to peer
Nov 27 13:07:43 ynh-vpnclient[21238]: Sat Nov 27 12:57:54 2021 SIGTERM[soft,exit-with-notification] received, process exiting
Nov 27 13:07:43 ynh-vpnclient[21238]: Sat Nov 27 13:02:22 2021 OpenVPN 2.4.7 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Apr 28 2021
Nov 27 13:07:43 ynh-vpnclient[21238]: Sat Nov 27 13:02:22 2021 library versions: OpenSSL 1.1.1d 10 Sep 2019, LZO 2.10
Nov 27 13:07:43 ynh-vpnclient[21238]: Sat Nov 27 13:02:22 2021 TCP/UDP: Preserving recently used remote address: [AF_INET6]2001:910:800::108:1194
Nov 27 13:07:43 ynh-vpnclient[21238]: Sat Nov 27 13:02:22 2021 Socket Buffers: R=[163840->163840] S=[163840->163840]
Nov 27 13:07:43 ynh-vpnclient[21238]: Sat Nov 27 13:02:22 2021 UDP link local: (not bound)
Nov 27 13:07:43 ynh-vpnclient[21238]: Sat Nov 27 13:02:22 2021 UDP link remote: [AF_INET6]2001:910:800::108:1194
Nov 27 13:07:43 ynh-vpnclient[21238]: Sat Nov 27 13:02:44 2021 event_wait : Interrupted system call (code=4)
Nov 27 13:07:43 ynh-vpnclient[21238]: Sat Nov 27 13:02:44 2021 SIGTERM received, sending exit notification to peer
Nov 27 13:07:43 ynh-vpnclient[21238]: Sat Nov 27 13:02:45 2021 SIGTERM[soft,exit-with-notification] received, process exiting
Nov 27 13:07:43 ynh-vpnclient[21238]: Sat Nov 27 13:07:21 2021 OpenVPN 2.4.7 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Apr 28 2021
Nov 27 13:07:43 ynh-vpnclient[21238]: Sat Nov 27 13:07:21 2021 library versions: OpenSSL 1.1.1d 10 Sep 2019, LZO 2.10
Nov 27 13:07:43 ynh-vpnclient[21238]: Sat Nov 27 13:07:21 2021 TCP/UDP: Preserving recently used remote address: [AF_INET6]2001:910:800::57:1194
Nov 27 13:07:43 ynh-vpnclient[21238]: Sat Nov 27 13:07:21 2021 Socket Buffers: R=[163840->163840] S=[163840->163840]
Nov 27 13:07:43 ynh-vpnclient[21238]: Sat Nov 27 13:07:21 2021 UDP link local: (not bound)
Nov 27 13:07:43 ynh-vpnclient[21238]: Sat Nov 27 13:07:21 2021 UDP link remote: [AF_INET6]2001:910:800::57:1194
Nov 27 13:07:43 ynh-vpnclient[21238]: [INFO] Stopping OpenVPN service
Nov 27 13:07:44 ynh-vpnclient[21238]: [CRIT] Failed to start OpenVPN client : tun0 interface did not show up
Nov 27 13:07:44 systemd[1]: ynh-vpnclient.service: Main process exited, code=exited, status=1/FAILURE
Nov 27 13:07:44 systemd[1]: ynh-vpnclient.service: Failed with result 'exit-code'.
Nov 27 13:07:44 systemd[1]: Failed to start YunoHost VPN Client..

```

```auto
 /var/log/ynh-vpnclient.log

Sat Nov 27 12:57:14 2021 SIGTERM[soft,exit-with-notification] received, process exiting
Sat Nov 27 12:57:31 2021 OpenVPN 2.4.7 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Apr 28 2021
Sat Nov 27 12:57:31 2021 library versions: OpenSSL 1.1.1d 10 Sep 2019, LZO 2.10
Sat Nov 27 12:57:31 2021 TCP/UDP: Preserving recently used remote address: [AF_INET6]2001:910:800::104:1194
Sat Nov 27 12:57:31 2021 Socket Buffers: R=[163840->163840] S=[163840->163840]
Sat Nov 27 12:57:31 2021 UDP link local: (not bound)
Sat Nov 27 12:57:31 2021 UDP link remote: [AF_INET6]2001:910:800::104:1194
Sat Nov 27 12:57:53 2021 event_wait : Interrupted system call (code=4)
Sat Nov 27 12:57:53 2021 SIGTERM received, sending exit notification to peer
Sat Nov 27 12:57:54 2021 SIGTERM[soft,exit-with-notification] received, process exiting
Sat Nov 27 13:02:22 2021 OpenVPN 2.4.7 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Apr 28 2021
Sat Nov 27 13:02:22 2021 library versions: OpenSSL 1.1.1d 10 Sep 2019, LZO 2.10
Sat Nov 27 13:02:22 2021 TCP/UDP: Preserving recently used remote address: [AF_INET6]2001:910:800::108:1194
Sat Nov 27 13:02:22 2021 Socket Buffers: R=[163840->163840] S=[163840->163840]
Sat Nov 27 13:02:22 2021 UDP link local: (not bound)
Sat Nov 27 13:02:22 2021 UDP link remote: [AF_INET6]2001:910:800::108:1194
[INFO] Stopping OpenVPN service
[CRIT] Failed to start OpenVPN client : tun0 interface did not show up
[INFO] Retrieving Yunohost settings... 
[OK] Settings retrieved
[INFO] [vpnclient] Starting...
[INFO] Cleaning vpnclient custom rules from the firewall
[INFO] Restarting yunohost firewall...
[OK] Firewall restarted!
[INFO] Now synchronizing time using ntp...
[INFO] Now actually starting OpenVPN client...
[INFO] OpenVPN client started ... waiting for tun0 interface to show up
[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
Sat Nov 27 12:57:31 2021 UDP link local: (not bound)
Sat Nov 27 12:57:31 2021 UDP link remote: [AF_INET6]2001:910:800::104:1194
Sat Nov 27 12:57:53 2021 event_wait : Interrupted system call (code=4)
Sat Nov 27 12:57:53 2021 SIGTERM received, sending exit notification to peer
Sat Nov 27 12:57:54 2021 SIGTERM[soft,exit-with-notification] received, process exiting
Sat Nov 27 13:02:22 2021 OpenVPN 2.4.7 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Apr 28 2021
Sat Nov 27 13:02:22 2021 library versions: OpenSSL 1.1.1d 10 Sep 2019, LZO 2.10
Sat Nov 27 13:02:22 2021 TCP/UDP: Preserving recently used remote address: [AF_INET6]2001:910:800::108:1194
Sat Nov 27 13:02:22 2021 Socket Buffers: R=[163840->163840] S=[163840->163840]
Sat Nov 27 13:02:22 2021 UDP link local: (not bound)
Sat Nov 27 13:02:22 2021 UDP link remote: [AF_INET6]2001:910:800::108:1194
Sat Nov 27 13:02:44 2021 event_wait : Interrupted system call (code=4)
Sat Nov 27 13:02:44 2021 SIGTERM received, sending exit notification to peer
Sat Nov 27 13:02:45 2021 SIGTERM[soft,exit-with-notification] received, process exiting
Sat Nov 27 13:07:21 2021 OpenVPN 2.4.7 arm-unknown-linux-gnueabihf [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Apr 28 2021
Sat Nov 27 13:07:21 2021 library versions: OpenSSL 1.1.1d 10 Sep 2019, LZO 2.10
Sat Nov 27 13:07:21 2021 TCP/UDP: Preserving recently used remote address: [AF_INET6]2001:910:800::57:1194
Sat Nov 27 13:07:21 2021 Socket Buffers: R=[163840->163840] S=[163840->163840]
Sat Nov 27 13:07:21 2021 UDP link local: (not bound)
Sat Nov 27 13:07:21 2021 UDP link remote: [AF_INET6]2001:910:800::57:1194
[INFO] Stopping OpenVPN service
[CRIT] Failed to start OpenVPN client : tun0 interface did not show up

```

l’interface tun0 semble avoir disparu.

sur la brique :  
#systemctl restart networking.service

#journalctl -xe

nov. 27 13:18:01 [home.freegum.fr](http://home.freegum.fr) ifup[22927]: ifup: failed to bring up usb0  
– The unit networking.service has entered the ‘failed’ state with result ‘exit-code’.  
nov. 27 13:18:01 [home.freegum.fr](http://home.freegum.fr) systemd[1]: Failed to start Raise network interfaces.  
– Subject: L’unité (unit) networking.service a échoué

→ redemarrage de la brique.

apres redemarrage :

ip a

```auto
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether *** brd ff:ff:ff:ff:ff:ff
    inet ***/24 brd*** scope global dynamic eth0
       valid_lft 42954sec preferred_lft 42954sec
    inet6 ***/64 scope global dynamic mngtmpaddr 
       valid_lft 86151sec preferred_lft 86151sec
    inet6 ***/128 scope link 
       valid_lft forever preferred_lft forever
    inet6 ***/64 scope link 
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether *** brd ff:ff:ff:ff:ff:ff
    inet ***/24 scope global wlan0
       valid_lft forever preferred_lft forever
    inet6 ***/64 scope global 
       valid_lft forever preferred_lft forever
    inet6 ***/64 scope link 
       valid_lft forever preferred_lft forever
4: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 100
    link/none 
    inet ***/22 brd***.255 scope global tun0
       valid_lft forever preferred_lft forever
    inet6 ***/128 scope global 
       valid_lft forever preferred_lft forever
    inet6 ***/64 scope global 
       valid_lft forever preferred_lft forever
    inet6 ***/64 scope link stable-privacy 
       valid_lft forever preferred_lft forever

```

tun0 apparait bien … Je ne comprend pas pourquoi tun0 “disparait” sans raison apparente.

---

<div class="post-metadata">

### Author: ![ljf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ljf/32/58_2.png) [@ljf](https://forum.yunohost.org/u/ljf)
#### Post date: [November 27, 2021, 4:13pm UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938/5 "2021-11-27T16:13:34Z")

</div>

> [@ljf](#):
>
> Quand tu n’as plus le réseau, est-ce que tu peux tester :
> 
> ```auto
> ping wikipedia.org
> ping 9.9.9.9
> iptables-save
> 
> ```

Et mon test ??? /o\

---

<div class="post-metadata">

### Author: ![xnx](https://forum.yunohost.org/user_avatar/forum.yunohost.org/xnx/32/5104_2.png) [@xnx](https://forum.yunohost.org/u/xnx)
#### Post date: [November 28, 2021, 4:57pm UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938/6 "2021-11-28T16:57:54Z")

</div>

Voilà, là je n’ai plus de réseau, je suis logué directement sur ma brique et voici les commandes et leurs résultats :

```auto
ping wikipedia.org
PING wikipedia.org (91.198.174.192) 56(84) bytes of data.
64 bytes from text-lb.esams.wikimedia.org (91.198.174.192): icmp_seq=1 ttl=60 time=16.2 ms

```

```auto
ping 9.9.9.9
PING 9.9.9.9 (9.9.9.9) 56(84) bytes of data.
64 bytes from 9.9.9.9: icmp_seq=1 ttl=60 time=11.6 ms
64 bytes from 9.9.9.9: icmp_seq=2 ttl=60 time=11.3 ms

```

```auto
iptables-save 
# Generated by xtables-save v1.8.2 on Sun Nov 28 17:56:39 2021
*filter
:INPUT DROP [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 587 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 993 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 5222 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 5269 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 5000 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 25 -j ACCEPT
-A INPUT -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -p udp -m udp --dport 5353 -j ACCEPT
-A INPUT -p udp -m udp --dport 587 -j ACCEPT
-A INPUT -p udp -m udp --dport 67 -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p icmp -j ACCEPT
COMMIT
# Completed on Sun Nov 28 17:56:39 2021
# Generated by xtables-save v1.8.2 on Sun Nov 28 17:56:39 2021
*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
# Completed on Sun Nov 28 17:56:39 2021

```

---

<div class="post-metadata">

### Author: ![xnx](https://forum.yunohost.org/user_avatar/forum.yunohost.org/xnx/32/5104_2.png) [@xnx](https://forum.yunohost.org/u/xnx)
#### Post date: [November 28, 2021, 5:01pm UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938/7 "2021-11-28T17:01:24Z")

</div>

Tiens, une mise à jour du méchant client VPN :

## Applications

##### VPN Client (vpnclient) de 2.0.2~ynh4 à 2.0.2~ynh5

→ non toujours pareil pas de connexion VPN …

Voici comment j’ai pu relancer le VPN :  
root@home:~# systemctl start ynh-vpnclient.service  
Job for ynh-vpnclient.service failed because the control process exited with error code.  
See “systemctl status ynh-vpnclient.service” and “journalctl -xe” for details.

En arretant le hotpspot :  
root@home:~# systemctl stop ynh-hotspot.service

Le VPN se relance :  
root@home:~# systemctl start ynh-vpnclient.service

Et je relance le hotspot ensuite :  
root@home:~# systemctl start ynh-hotspot.service

ça fonctionne …

---

<div class="post-metadata">

### Author: ![ljf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ljf/32/58_2.png) [@ljf](https://forum.yunohost.org/u/ljf)
#### Post date: [November 28, 2021, 8:56pm UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938/8 "2021-11-28T20:56:16Z")

</div>

> [@xnx](#):
>
> Voilà, là je n’ai plus de réseau, je suis logué directement sur ma brique et voici les commandes et leurs résultats :

Bizarre car tes résultats de commandes sans réseau montre que justement ta brique a du réseau…

Tu veux dire que c’est ton ordinateur connecté au hotspot wifi de la brique qui n’a plus de réseau ?

---

<div class="post-metadata">

### Author: ![xnx](https://forum.yunohost.org/user_avatar/forum.yunohost.org/xnx/32/5104_2.png) [@xnx](https://forum.yunohost.org/u/xnx)
#### Post date: [November 29, 2021, 10:18am UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938/9 "2021-11-29T10:18:56Z")

</div>

Quand le VPN tombe, je n’ai plus accès à internet depuis mes machines connecté à l’AP wifi de la brique (mais j’accède aux machines locales depuis leurs adresses IP), depuis la brique, je ne passe plus par le VPN mais j’accède à internet directement via la connexion de mon FAI.

Depuis l’extérieur, comme mon nom de domaine est basé sur la connexion VPN, je n’ai plus accès à ma brique quand le VPN tombe.

---

<div class="post-metadata">

### Author: ![xnx](https://forum.yunohost.org/user_avatar/forum.yunohost.org/xnx/32/5104_2.png) [@xnx](https://forum.yunohost.org/u/xnx)
#### Post date: [November 30, 2021, 8:17am UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938/10 "2021-11-30T08:17:59Z")

</div>

ce matin je regarde l’état de mes services,

```auto
systemctl status networking.service 
● networking.service - Raise network interfaces
   Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2021-11-27 13:22:28 CET; 2 days ago
     Docs: man:interfaces(5)
 Main PID: 302 (code=exited, status=1/FAILURE)

```

Pourtant je suis bien connecté sur ma brique, et ip a me donne bien :

```auto

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
[...]
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
[...]
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
[...]
5: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 100
[...]

```

J’ai du réseau, le VPN fonctionne et pourtant le service networking ne tourne pas …

j’ai remarqué également dans le dmesg :

```auto

[10.583388] systemd[1]: Configuration file /etc/systemd/system/ynh-vpnclient-checker.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
[10.606546] systemd[1]: Configuration file /etc/systemd/system/ynh-vpnclient.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.
[10.628586] systemd[1]: Configuration file /etc/systemd/system/ynh-hotspot.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.

```

Mais je ne sais pas si ça pose un problème.

J’ai les droits suivants sur les fichiers dans /etc/systemd/system :

```auto

-rw-r----- 1 hotspot hotspot 262 nov. 16 07:51 ynh-hotspot.service
-rw-r----- 1 vpnclient vpnclient 184 nov. 28 18:02 ynh-vpnclient-checker.service
-rw-r--r-- 1 root root 124 nov. 28 18:02 ynh-vpnclient-checker.timer
-rw-r----- 1 vpnclient vpnclient 308 nov. 28 18:02 ynh-vpnclient.service
-rw-r--r-- 1 root root 222 nov. 7 11:49 yunomdns.service
-rw-r--r-- 1 root root 238 févr. 2 2021 yunoprompt.service

```

---

<div class="post-metadata">

### Author: ![ljf](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ljf/32/58_2.png) [@ljf](https://forum.yunohost.org/u/ljf)
#### Post date: [November 30, 2021, 10:27am UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938/11 "2021-11-30T10:27:35Z")

</div>

Note: nous sommes en train de tester un refactoring de hotspot\_ynh (branche testing) peut être que ça t’intéresse, même si je ne suis pas du tout sûr que ça corrige ton soucis.

---

<div class="post-metadata">

### Author: ![xnx](https://forum.yunohost.org/user_avatar/forum.yunohost.org/xnx/32/5104_2.png) [@xnx](https://forum.yunohost.org/u/xnx)
#### Post date: [December 2, 2021, 4:12pm UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938/12 "2021-12-02T16:12:21Z")

</div>

dès qu’une nouvelle version testing sera dispo je veux bien l’essayer. Merci d’avance 🙂

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [December 2, 2021, 5:11pm UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938/13 "2021-12-02T17:11:17Z")

</div>

Oui elle est disponible et devrait être relativement stable et fonctionelle (on a pas mal joué avec la semaine dernière)

Tu peux tester de mettre à jour avec:

```auto
sudo yunohost app upgrade hotspot -u https://github.com/YunoHost-Apps/hotspot_ynh/tree/testing

```

---

<div class="post-metadata">

### Author: ![xnx](https://forum.yunohost.org/user_avatar/forum.yunohost.org/xnx/32/5104_2.png) [@xnx](https://forum.yunohost.org/u/xnx)
#### Post date: [December 14, 2021, 7:57am UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938/14 "2021-12-14T07:57:53Z")

</div>

16 jours aujourd’hui que l’appli VPN fonctionne, je crois que le problème est résolu 😄 un grand merci pour la correction !

---

<div class="post-metadata">

### Author: ![Aleks](https://forum.yunohost.org/user_avatar/forum.yunohost.org/aleks/32/1704_2.png) [@Aleks](https://forum.yunohost.org/u/Aleks)
#### Post date: [December 14, 2021, 9:36am UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938/15 "2021-12-14T09:36:18Z")

</div>

🥳 !

---

<div class="post-metadata">

### Author: ![xnx](https://forum.yunohost.org/user_avatar/forum.yunohost.org/xnx/32/5104_2.png) [@xnx](https://forum.yunohost.org/u/xnx)
#### Post date: [December 23, 2021, 7:13am UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938/16 "2021-12-23T07:13:11Z")

</div>

Bon ne crions pas victoire trop vite, j’ai à nouveau eu le problème deux fois cette semaine. Mêmes symptômes … 😑

---

<div class="post-metadata">

### Author: ![xnx](https://forum.yunohost.org/user_avatar/forum.yunohost.org/xnx/32/5104_2.png) [@xnx](https://forum.yunohost.org/u/xnx)
#### Post date: [January 2, 2022, 12:01pm UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938/17 "2022-01-02T12:01:28Z")

</div>

Chaque jour perte de connexion au VPN. J’ai le message :

[ERROR] Le service ynh-vpnclient est failed

- Vous pouvez essayer de redémarrer le service, et si cela ne fonctionne pas, consultez les journaux de service dans le webadmin (à partir de la ligne de commande, vous pouvez le faire avec ‘yunohost service restart ynh-vpnclient’ et ‘yunohost service log ynh-vpnclient’ ).

---

<div class="post-metadata">

### Author: ![xnx](https://forum.yunohost.org/user_avatar/forum.yunohost.org/xnx/32/5104_2.png) [@xnx](https://forum.yunohost.org/u/xnx)
#### Post date: [January 6, 2022, 10:27am UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938/18 "2022-01-06T10:27:14Z")

</div>

Ce matin, perte du VPN je tente l’arret et la relance du service :  
service ynh-vpnclient stop  
service ynh-vpnclient start  
Job for ynh-vpnclient.service failed because the control process exited with error code.  
See “systemctl status ynh-vpnclient.service” and “journalctl -xe” for details.

```auto
journalctl -xe
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- L'unité (unit) openvpn@client.service a commencé à s'arrêter.
janv. 06 11:23:41 home.freegum.fr ynh-vpnclient[29620]: [CRIT] Failed to start OpenVPN client : tun0 interface did not show up
janv. 06 11:23:41 home.freegum.fr systemd[1]: ynh-vpnclient.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- An ExecStart= process belonging to unit ynh-vpnclient.service has exited.
-- 
-- The process' exit code is 'exited' and its exit status is 1.
janv. 06 11:23:41 home.freegum.fr systemd[1]: ynh-vpnclient.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- The unit ynh-vpnclient.service has entered the 'failed' state with result 'exit-code'.
janv. 06 11:23:41 home.freegum.fr systemd[1]: Failed to start YunoHost VPN Client..
-- Subject: L'unité (unit) ynh-vpnclient.service a échoué
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- L'unité (unit) ynh-vpnclient.service a échoué, avec le résultat failed.
janv. 06 11:23:42 home.freegum.fr systemd[1]: openvpn@client.service: Succeeded.
-- Subject: Unit succeeded
-- Defined-By: systemd
-- Support: https://www.debian.org/support

```

---

<div class="post-metadata">

### Author: ![xnx](https://forum.yunohost.org/user_avatar/forum.yunohost.org/xnx/32/5104_2.png) [@xnx](https://forum.yunohost.org/u/xnx)
#### Post date: [January 6, 2022, 10:31am UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938/19 "2022-01-06T10:31:22Z")

</div>

## ynh-vpnclient

**Description**  
Tunnels the internet traffic through a VPN  
**Statut**  
failed depuis il y a moins d’une minute  
**Lancement au démarrage :**  
Activé  
**Configuration**  
Inconnu

## Journaux

[https://paste.yunohost.org/acukegaqec](https://paste.yunohost.org/acukegaqec)

---

<div class="post-metadata">

### Author: ![xnx](https://forum.yunohost.org/user_avatar/forum.yunohost.org/xnx/32/5104_2.png) [@xnx](https://forum.yunohost.org/u/xnx)
#### Post date: [January 8, 2022, 10:04am UTC](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938/20 "2022-01-08T10:04:50Z")

</div>

Hier, à nouveau perte du VPN. Simplement en arrêtant le service hotspot wifi (via yunohost/admin/#/services/ynh-hotspot ), tout est repartit correctement : hotspot (qui s’est relancé tout seul) + client VPN …

[Next page](https://forum.yunohost.org/t/perte-de-connexion-reguliere-vpnclient/17938.md?page=2)
