Config openvpn failed


#1

salut a tous

je me suis pris un vpn et j’ai bien réussis à le configurer avec NW mais il ne ce connect pas au demarage de la becane donc je me suis lancer dans la config via openvpn directement.

j’ai donc copier mes fichier .crt … key … et mon .opvn dans
/etc/openvpn/client

ensuite j’ai fait
systemctl enable openvpn-client@barcelona
systemctl start openvpn-client@barcelona.service

mais j’ai une erreur

Job for openvpn-client@barcelona.service failed because the control process exited with error code.
See "systemctl status openvpn-client@barcelona.service" and "journalctl -xe" for details.

je lance donc les log et voila ce que j’ai

-- L'unité (unit) NetworkManager-dispatcher.service a terminé son démarrage, avec le résultat RESULT.
juil. 31 03:27:50 lifalaDesk nm-dispatcher[4140]: req:1 'dhcp4-change' [wlp0s29f7u6]: new request (0 scripts)
juil. 31 03:27:50 lifalaDesk nm-dispatcher[4140]: req:1 'dhcp4-change' [wlp0s29f7u6]: completed: no scripts
juil. 31 03:27:53 lifalaDesk systemd[1]: Starting OpenVPN tunnel for barcelona...
-- Subject: L'unité (unit) openvpn-client@barcelona.service a commencé à démarrer
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- L'unité (unit) openvpn-client@barcelona.service a commencé à démarrer.
juil. 31 03:27:53 lifalaDesk openvpn[4145]: Options error: In [CMD-LINE]:1: Error opening configuration file: barcelona.conf
juil. 31 03:27:53 lifalaDesk openvpn[4145]: Use --help for more information.
juil. 31 03:27:53 lifalaDesk systemd[1]: openvpn-client@barcelona.service: Main process exited, code=exited, status=1/FAILURE
juil. 31 03:27:53 lifalaDesk systemd[1]: openvpn-client@barcelona.service: Failed with result 'exit-code'.
juil. 31 03:27:53 lifalaDesk systemd[1]: Failed to start OpenVPN tunnel for barcelona.
-- Subject: L'unité (unit) openvpn-client@barcelona.service a échoué
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 

● openvpn-client@barcelona.service - OpenVPN tunnel for barcelona
   Loaded: loaded (/usr/lib/systemd/system/openvpn-client@.service; enabled; ve>
   Active: failed (Result: exit-code) since Tue 2018-07-31 03:27:53 CEST; 2min >
     Docs: man:openvpn(8)
           https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
           https://community.openvpn.net/openvpn/wiki/HOWTO
  Process: 4145 ExecStart=/usr/bin/openvpn --suppress-timestamps --nobind --con>
 Main PID: 4145 (code=exited, status=1/FAILURE)

juil. 31 03:27:53 lifalaDesk systemd[1]: Starting OpenVPN tunnel for barcelona.>
juil. 31 03:27:53 lifalaDesk openvpn[4145]: Options error: In [CMD-LINE]:1: Err>
juil. 31 03:27:53 lifalaDesk openvpn[4145]: Use --help for more information.
juil. 31 03:27:53 lifalaDesk systemd[1]: openvpn-client@barcelona.service: Main>
juil. 31 03:27:53 lifalaDesk systemd[1]: openvpn-client@barcelona.service: Fail>
juil. 31 03:27:53 lifalaDesk systemd[1]: Failed to start OpenVPN tunnel for bar>
lines 1-15/15 (END)...skipping...
● openvpn-client@barcelona.service - OpenVPN tunnel for barcelona
   Loaded: loaded (/usr/lib/systemd/system/openvpn-client@.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2018-07-31 03:27:53 CEST; 2min 38s ago
     Docs: man:openvpn(8)
           https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage
           https://community.openvpn.net/openvpn/wiki/HOWTO
  Process: 4145 ExecStart=/usr/bin/openvpn --suppress-timestamps --nobind --config barcelona.conf (code=exited, status=1/FAILURE)
 Main PID: 4145 (code=exited, status=1/FAILURE)

juil. 31 03:27:53 lifalaDesk systemd[1]: Starting OpenVPN tunnel for barcelona...
juil. 31 03:27:53 lifalaDesk openvpn[4145]: Options error: In [CMD-LINE]:1: Error opening configuration file: barcelona.conf
juil. 31 03:27:53 lifalaDesk openvpn[4145]: Use --help for more information.
juil. 31 03:27:53 lifalaDesk systemd[1]: openvpn-client@barcelona.service: Main process exited, code=exited, status=1/FAILURE
juil. 31 03:27:53 lifalaDesk systemd[1]: openvpn-client@barcelona.service: Failed with result 'exit-code'.
juil. 31 03:27:53 lifalaDesk systemd[1]: Failed to start OpenVPN tunnel for barcelona.

si quelqu’un peux me donner quelque explication.

merci