YunoHost-Apps / vpnclient_ynh

VPN Client app for YunoHost
GNU Affero General Public License v3.0
41 stars 24 forks source link

Failed VPN connection (Neutrinet) #81

Closed dhuschde closed 10 months ago

dhuschde commented 2 years ago

Describe the bug

I tried to use the VPN, as my Network doesn't allow Port forwarding... I wanted to use Neutrinet, as you said, it should work. Sadly, I get this error: Logs image

I already tried this Tutorial: (used with Google Translate, as I can't speak Frensh)

Context

alexAubin commented 2 years ago

Can you try to go to your webadmin, in Services > ynh-vpnclient, and share any additional logs that may be displayed at the bottom ?

dhuschde commented 2 years ago

Sure

https://paste.yunohost.org/abeqeginap https://paste.yunohost.org/egaguqasel.sql https://paste.yunohost.org/edisavolab.sql

alexAubin commented 2 years ago

Hmokay not sure how it happened but there's a permission issue:

Okt 19 19:51:33 ynh-vpnclient[28366]: Tue Oct 19 19:51:16 2021 WARNING: file '/etc/openvpn/keys/user.key' is group or others accessible
Okt 19 19:51:33 ynh-vpnclient[28366]: Tue Oct 19 19:51:16 2021 WARNING: file '/etc/openvpn/keys/credentials' is group or others accessible

You can try to fix stuff manually with :

chmod -R go-rwx /etc/openvpn/keys

and try to restart the VPN service / ynh-vpnclient

dhuschde commented 2 years ago

https://paste.yunohost.org/uzefocenax

Still doesn't work...

alexAubin commented 2 years ago

Hmokay, if you have SSH access, can you try to share the output of sudo namei -l /etc/openvpn/keys/user.key

dhuschde commented 2 years ago
root@s:~# sudo namei -l /etc/openvpn/keys/user.key
f: /etc/openvpn/keys/user.key
drwxr-xr-x root      root      /
drwxr-xr-x root      root      etc
drwx------ root      vpnclient openvpn
drwx------ root      vpnclient keys
-rw------- vpnclient vpnclient user.key
root@s:~# 
alexAubin commented 2 years ago

Then let's try to : chmod og+rx /etc/openvpn/keys and re-try to restart the service

dhuschde commented 2 years ago

Failed with this Log: https://paste.yunohost.org/ojoyamicew

zamentur commented 2 years ago

COuld you try again with the new vpnclient 2.0 version (with yunohost 4.3) ?

dhuschde commented 2 years ago
Still the same…
alexAubin commented 2 years ago

Uuuuuuh wut, what are those @font-face thingies ...

dhuschde commented 2 years ago

That's Windows Mail... The Program, that never works...

But I wanted to say, that it still doesn't work.