Vpn client 2.2~ynh6

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

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

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