# Vpn client 2.2~ynh6

**URL:** <https://forum.yunohost.org/t/vpn-client-2-2-ynh6/32384>\
**Category:** Support apps\
**Tags:** vpnclient, english\
**Created:** [December 4, 2024, 12:45pm UTC](https://forum.yunohost.org/t/vpn-client-2-2-ynh6/32384 "2024-12-04T12:45:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![seppy](https://forum.yunohost.org/user_avatar/forum.yunohost.org/seppy/32/5692_2.png) [@seppy](https://forum.yunohost.org/u/seppy)\
**Post date:** [December 4, 2024, 12:45pm UTC](https://forum.yunohost.org/t/vpn-client-2-2-ynh6/32384/1 "2024-12-04T12:45:47Z")

</div>

**What type of hardware are you using** : Old laptop or computer  
**What YunoHost version are you running** : yunohost 12.0.7  
**What app is this about** : vpnclient

### Describe your issue

hi all  
the vpn client is always failing at the last stage.

/var/log/ynh-vpnclient.log  
INFO] Retrieving Yunohost settings…  
[OK] Settings retrieved  
[INFO] [vpnclient] Starting…  
[INFO] Now synchronizing time using ntp…  
[INFO] Checking if configuration is valid…  
[INFO] Now actually starting OpenVPN client…  
[INFO] OpenVPN client started … waiting for tun0 interface to show up  
[OK] tun0 interface is up!  
[INFO] Waiting for VPN client to be ready…  
[FAIL] The VPN client didn’t complete initiliasation  
[CRIT] Failed to start OpenVPN client  
------ and then it is restarting-----  
[INFO] Retrieving Yunohost settings…  
[OK] Settings retrieved  
[INFO] [vpnclient] Starting…  
[INFO] Now synchronizing time using ntp…  
[INFO] Checking if configuration is valid…  
[INFO] Now actually starting OpenVPN client…  
[INFO] OpenVPN client started … waiting for tun0 interface to show up  
[OK] tun0 interface is up!  
[INFO] Waiting for VPN client to be ready…  
[FAIL] The VPN client didn’t complete initiliasation  
[CRIT] Failed to start OpenVPN client

It is not the issue with the ciphers of neutrinet.  
Adding: data-ciphers AES-256-GCM:AES-256-CBC:AES-128-GCM:CHACHA20-POLY1305, didn’t solve the issue actually  
I had to add: data-ciphers-fallback AES-256-CBC.

When I run OpenVPN in the terminal with the client.conf:  
sudo openvpn /etc/openvpn/client.conf

## 2024-12-04 13:16:33 Initialization Sequence Completed 2024-12-04 13:16:33 Data Channel: cipher ‘AES-256-GCM’, peer-id: 4 2024-12-04 13:16:33 Timers: ping 10, ping-restart 120

And like this VPN connection is stable

My Theory. OpenVPN is working and making the job it is the app that goes in timeout and restarting entirely the process.  
My question, why it is doing this ?  
I did a dirty cron job to ensure that OpenVPN start first and always maintain the connection open.  
@reboot sleep 30 && sudo openvpn /etc/openvpn/client.conf

Now I see in the log of the app that there it is still restarting, but because the connection is already there the disconnection time is much shorter.

### Share relevant logs or error messages

/var/log/ynh-vpnclient.log  
INFO] Retrieving Yunohost settings…  
[OK] Settings retrieved  
[INFO] [vpnclient] Starting…  
[INFO] Now synchronizing time using ntp…  
[INFO] Checking if configuration is valid…  
[INFO] Now actually starting OpenVPN client…  
[INFO] OpenVPN client started … waiting for tun0 interface to show up  
[OK] tun0 interface is up!  
[INFO] Waiting for VPN client to be ready…  
[FAIL] The VPN client didn’t complete initiliasation  
[CRIT] Failed to start OpenVPN client  
------ and then it is restarting-----  
[INFO] Retrieving Yunohost settings…  
[OK] Settings retrieved  
[INFO] [vpnclient] Starting…  
[INFO] Now synchronizing time using ntp…  
[INFO] Checking if configuration is valid…  
[INFO] Now actually starting OpenVPN client…  
[INFO] OpenVPN client started … waiting for tun0 interface to show up  
[OK] tun0 interface is up!  
[INFO] Waiting for VPN client to be ready…  
[FAIL] The VPN client didn’t complete initiliasation  
[CRIT] Failed to start OpenVPN client

2024-12-04 13:16:33 Initialization Sequence Completed  
2024-12-04 13:16:33 Data Channel: cipher ‘AES-256-GCM’, peer-id: 4  
2024-12-04 13:16:33 Timers: ping 10, ping-restart 120

---

<div class="post-metadata">

**Author:** ![seppy](https://forum.yunohost.org/user_avatar/forum.yunohost.org/seppy/32/5692_2.png) [@seppy](https://forum.yunohost.org/u/seppy)\
**Post date:** [December 4, 2024, 12:52pm UTC](https://forum.yunohost.org/t/vpn-client-2-2-ynh6/32384/2 "2024-12-04T12:52:43Z")

</div>

> [@seppy](#):
>
> @reboot sleep 30 && sudo openvpn /etc/openvpn/client.conf

Adding a cron job worked only for a couple of minutes, then the reconnection process is again slow.

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [December 19, 2024, 12:53pm UTC](https://forum.yunohost.org/t/vpn-client-2-2-ynh6/32384/3 "2024-12-19T12:53:26Z")

</div>

Closed on December 19, 2024, 12:53pm UTC

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

---

<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:** [March 3, 2025, 11:13pm UTC](https://forum.yunohost.org/t/vpn-client-2-2-ynh6/32384/4 "2025-03-03T23:13:07Z")

</div>

Use the .cube or add this to your conf:

```auto
status /var/log/openvpn-client.status
log-append /var/log/openvpn-client.log

```
