Connexion VPN via l'interface graphique

5 respuestas [Último envío]
Stem
Desconectado/a
se unió: 05/03/2017

Bonjour,

J'aimerais pouvoir me connecter à mon VPN habituel via l'interface graphique plutôt que via la console. Mais je n'y parviens pas. Network manager me dit simplement «connexion échouée» et KVpnc me donne le message suivant (verbosité maximale):

debug: Connect try requested, profile: _home_stem_OpenVPN_Amsterdam, type: OpenVPN
debug: openvpn: /usr/sbin/openvpn
debug: Support for TUN/TAP found (compiled into kernel or kernel module already loaded).
debug: Default interface: "eth0".
debug: "getting IP address from interface" started.
debug: "getting IP address from interface" finished.
debug: IP address of default interface: "192.168.1.5".
debug: OpenVPN major: 2, minor: 3, extra: , extra ver: 0
debug: chmod of /root/.kde/share/apps/kvpnc/openvpn._home_stem_OpenVPN_Amsterdam.up (a+x) started.
debug: "chmod" finished.
debug: chmod of /root/.kde/share/apps/kvpnc/openvpn._home_stem_OpenVPN_Amsterdam.down (a+x) started.
debug: "chmod" finished.
debug: Default route backup process started.
debug: chmod of /root/.kde/share/apps/kvpnc/openvpn._home_stem_OpenVPN_Amsterdam.down (a+x) started.
debug: "chmod" finished.
info: Trying to connect to server "nl-am-001.privatetunnel.com" with ...
debug: Setting DNS_UPDATE "NO".
debug: Openvpn Version: 2.3.2
debug: Starting Openvpn management handler...
debug: OpenvpnManagementHandler: start
debug: [openvpn raw]: Options error: --dh fails with 'dh1024.pem': No such file or directory
debug: [openvpn] Options error: --dh fails with 'dh1024.pem': No such file or directory
debug: [openvpn raw]: Options error: Please correct these errors.
debug: [openvpn] Options error: Please correct these errors.
debug: [openvpn raw]: Use --help for more information.
debug: [openvpn] Use --help for more information.
debug: [openvpn]
debug: OpenvpnManagementHandler: Connecting to the OpenVPN manage port (2222)...
debug: OpenvpnManagementHandler: Connecting to the OpenVPN manage port (2222)... host found
debug: OpenvpnManagementHandler Management greeting timer started.
error: OpenvpnManagementHandler: Connection refused
error: OpenvpnManagementHandler: Got no greeting within 3 seconds from management interface, retrying.
debug: OpenvpnManagementHandler: Socket to the OpenVPN manage port (2222) closed.
debug: OpenvpnManagementHandler: Connecting to the OpenVPN manage port (2222)...
debug: OpenvpnManagementHandler: Connecting to the OpenVPN manage port (2222)... host found
debug: OpenvpnManagementHandler Management greeting timer started.
error: OpenvpnManagementHandler: Connection refused
error: OpenvpnManagementHandler: Got no greeting within 3 seconds from management interface, retrying.
debug: OpenvpnManagementHandler: Socket to the OpenVPN manage port (2222) closed.
debug: OpenvpnManagementHandler: Connecting to the OpenVPN manage port (2222)...
debug: OpenvpnManagementHandler: Connecting to the OpenVPN manage port (2222)... host found
debug: OpenvpnManagementHandler Management greeting timer started.
error: OpenvpnManagementHandler: Connection refused
error: OpenvpnManagementHandler: Got no greeting within 3 seconds from management interface, retrying.
debug: OpenvpnManagementHandler: Socket to the OpenVPN manage port (2222) closed.
debug: OpenvpnManagementHandler: Connecting to the OpenVPN manage port (2222)...
debug: OpenvpnManagementHandler: Connecting to the OpenVPN manage port (2222)... host found
debug: OpenvpnManagementHandler Management greeting timer started.
error: OpenvpnManagementHandler: Connection refused
debug: Disconnect requested
debug: Disconnect requested, status connecting
debug: Killing process while connecting.
debug: OpenvpnManagementHandler: Socket to the OpenVPN manage port (2222) closed.
success: Successful connect try canceled.
debug: Disconnected.

Stem
Desconectado/a
se unió: 05/03/2017

J'ai suivi le tuto indiqué ici (https://doc.ubuntu-fr.org/tutoriel/connectionvpn), voilà ce que ça me donne:

debug: Connect try requested, profile: _home_stem_OpenVPN_client, type: OpenVPN
debug: Backup file of /etc/resolv.conf: /root/.kde/share/apps/kvpnc/resolv.conf.before.kvpnc__home_stem_OpenVPN_client
debug: /etc/resolv.conf backup process started.
debug: openvpn: /usr/sbin/openvpn
debug: Support for TUN/TAP found (compiled into kernel or kernel module already loaded).
debug: No default interface found, using "lo".
debug: No IP for default interface found, using "127.0.0.1".
debug: OpenVPN major: 2, minor: 3, extra: , extra ver: 0
debug: chmod of /root/.kde/share/apps/kvpnc/openvpn._home_stem_OpenVPN_client.up (a+x) started.
debug: "chmod" finished.
debug: chmod of /root/.kde/share/apps/kvpnc/openvpn._home_stem_OpenVPN_client.down (a+x) started.
debug: "chmod" finished.
debug: Default route backup process started.
debug: chmod of /root/.kde/share/apps/kvpnc/openvpn._home_stem_OpenVPN_client.down (a+x) started.
debug: "chmod" finished.
info: Trying to connect to server "nl-am-001.privatetunnel.com" with ...
debug: Setting DNS_UPDATE "Yes".
debug: Openvpn Version: 2.3.2
debug: Starting Openvpn management handler...
debug: [openvpn raw]: Options error: --dh fails with 'dh1024.pem': No such file or directory
debug: [openvpn] Options error: --dh fails with 'dh1024.pem': No such file or directory
debug: [openvpn raw]: Options error: Please correct these errors.
debug: [openvpn] Options error: Please correct these errors.
debug: [openvpn raw]: Use --help for more information.
debug: [openvpn] Use --help for more information.
debug: [openvpn]
debug: OpenvpnManagementHandler: start
debug: OpenvpnManagementHandler: Connecting to the OpenVPN manage port (2222)...
debug: OpenvpnManagementHandler: Connecting to the OpenVPN manage port (2222)... host found
debug: OpenvpnManagementHandler Management greeting timer started.
error: OpenvpnManagementHandler: Connection refused
error: OpenvpnManagementHandler: Got no greeting within 3 seconds from management interface, retrying.
debug: OpenvpnManagementHandler: Socket to the OpenVPN manage port (2222) closed.
debug: OpenvpnManagementHandler: Connecting to the OpenVPN manage port (2222)...
debug: OpenvpnManagementHandler: Connecting to the OpenVPN manage port (2222)... host found
debug: OpenvpnManagementHandler Management greeting timer started.
error: OpenvpnManagementHandler: Connection refused
error: OpenvpnManagementHandler: Got no greeting within 3 seconds from management interface, retrying.
debug: OpenvpnManagementHandler: Socket to the OpenVPN manage port (2222) closed.
debug: OpenvpnManagementHandler: Connecting to the OpenVPN manage port (2222)...
debug: OpenvpnManagementHandler: Connecting to the OpenVPN manage port (2222)... host found
debug: OpenvpnManagementHandler Management greeting timer started.
error: OpenvpnManagementHandler: Connection refused
debug: Disconnect requested
debug: Disconnect requested, status connecting
debug: Killing process while connecting.
debug: OpenvpnManagementHandler: Socket to the OpenVPN manage port (2222) closed.
success: Successful connect try canceled.
debug: Disconnected.
debug: CloseEvent received (receiver: kvpnc).

Mangy Dog

I am a member!

I am a translator!

Desconectado/a
se unió: 03/15/2015

Visiblement ton port 2222 est fermé
manage port (2222) closed.

Tu peux voir tes ports "ouvert" avec

CanYouSeeMe.org
Open Port Check Tool
http://canyouseeme.org/

Stem
Desconectado/a
se unió: 05/03/2017

J'ai testé plusieurs ports, mais il n'en détecte aucun, pas même le 443 ni le 80, donc je ne saurais pas dire.

Et Dans le log, j'ai le message «Options error: --dh fails with 'dh1024.pem': No such file or directory».

Du coup, que faut-il que je fasse ? Ouvrir le port 2222 ? Retrouver ce fameux fichier dh1024.pem ? Et comment ?

Merci.

Mangy Dog

I am a member!

I am a translator!

Desconectado/a
se unió: 03/15/2015

«Options error: --dh fails with 'dh1024.pem': No such file or directory».

C'est une erreur de serveur, il faut renommer le certificat dans server.conf to dh1024.pem !

Je te recommande vivement
https://airvpn.org/

Qui te permettra de générer un trousseaux (qui contiendra ca.crt, ta.key, user.cert, user.key et le fichier config) que tu importe en un click avec Network Manager, même en utilisant KDE.

Network Manager, choisis "importer une configuration OpenVPN Sauveguardé"est accessible au login, en haut a droite de ton écran.

Le port 80 (HTTP) devrait être ouvert, choisis UDP/TCP sur ce même port.

AirVPN permet de générer autant tickets que l'on souhaite et pour 3 appareils.

Stem
Desconectado/a
se unió: 05/03/2017

Finalement, j'ai trouvé un fournisseur qui fournit tous les fichiers et gui explique mieux que les autres la marche à suivre.