Quelqu’un pourrait-il m’aider à configurer mon VPN avec network-manager?
Je suis actuellement sous openvpn.se, et je dispose des éléments suivants:
un username, un password, et un unique certificat.
Je me connecte bien en ligne de commande, mais je voudrais maintenant me connecter grâce au network-manager (pour bénéficier notamment du VPNautoconnect).
Dans ma config. de network manager, que dois-je choisir comme type d’authentification?
certificates (TLS) ou Password ou Password with certificates (TLS) ou Static Key?
J’ai tenté Password seul, en renseignant mon login/password et certificat. Mais dans gateWay, que dois-je mettre? L’IP de mon routeur? (je passe par un routeur qui fait office de dhcp).
J’ai cherché de la doc un peu partout mais pas grand chose autour de network-manager.
Merci.
Voici les traces de mon syslog lors de la tentative de cnx:
Feb 3 22:07:20 toto NetworkManager[2048]: Starting VPN service ‘org.freedesktop.NetworkManager.openvpn’…
Feb 3 22:07:20 toto NetworkManager[2048]: VPN service ‘org.freedesktop.NetworkManager.openvpn’ started (org.freedesktop.Netw$
Feb 3 22:07:20 toto NetworkManager[2048]: VPN service ‘org.freedesktop.NetworkManager.openvpn’ appeared, activating connecti$
Feb 3 22:07:20 toto NetworkManager[2048]: VPN plugin state changed: 1
Feb 3 22:07:20 toto vpnautoconnect[2133]: insert connection VPN connection 1 in hash
Feb 3 22:07:20 toto vpnautoconnect[2133]: VPN connection 1 in authentification…
Feb 3 22:07:20 toto vpnautoconnect[2133]: VPN connection 1 is being established
Feb 3 22:07:20 toto NetworkManager[2048]: VPN plugin state changed: 3
Feb 3 22:07:20 toto NetworkManager[2048]: VPN connection ‘VPN connection 1’ (Connect) reply received.
Feb 3 22:07:20 toto vpnautoconnect[2133]: VPN connection 1 is getting an IP address
Feb 3 22:07:20 toto nm-openvpn[30153]: OpenVPN 2.1.3 x86_64-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [MH] [PF_INET6] [eurephia] b$
Feb 3 22:07:20 toto nm-openvpn[30153]: WARNING: No server certificate verification method has been enabled. See openvpn.net$
Feb 3 22:07:20 toto nm-openvpn[30153]: NOTE: the current --script-security setting may allow this configuration to call user-define$
Feb 3 22:07:20 toto nm-openvpn[30153]: UDPv4 link local: [undef]
Feb 3 22:07:20 toto nm-openvpn[30153]: UDPv4 link remote: [AF_INET]192.168.123.1:1194
Feb 3 22:07:20 toto nm-openvpn[30153]: read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Feb 3 22:07:22 toto nm-openvpn[30153]: read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Feb 3 22:07:27 toto nm-openvpn[30153]: read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Feb 3 22:07:35 toto nm-openvpn[30153]: read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Feb 3 22:07:51 toto nm-openvpn[30153]: read UDPv4 [ECONNREFUSED]: Connection refused (code=111)
Feb 3 22:08:00 toto NetworkManager[2048]: VPN connection ‘VPN connection 1’ (IP Config Get) timeout exceeded.
Feb 3 22:08:00 toto nm-openvpn[30153]: SIGTERM[hard,] received, process exiting
Feb 3 22:08:00 toto NetworkManager[2048]: (wlan0): writing resolv.conf to /sbin/resolvconf
Feb 3 22:08:00 toto vpnautoconnect[2133]: VPN connection 1 connection failed
Voici mon openvpn.conf (fourni par le provider):
float
client
dev tap
proto udp
nobind
; Cert
ca /etc/openvpn/keys/ca.crt
ns-cert-type server
cipher BF-CBC #Blowfish
;Vpn server
remote-random
remote melissa.vpntunnel.se 1194
remote melissa.vpntunnel.se 10010
remote melissa.vpntunnel.se 10020
;Auth
#auth-user-pass #passwd
auth-user-pass auth.conf
persist-key
persist-tun
; Logging
comp-lzo
verb 1