Hello everyone !
I have been repeatedly trying to connect to an OpenVPN server on Windows 7 and keep getting the following error:
netsh command failed: returned error code 1
Here is the full log:
Tue May 20 09:37:11 2014 OpenVPN 2.3_rc1 i686-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [eurephia] [IPv6] built on Nov 1 2012
Enter Management Password:
Tue May 20 09:37:24 2014 WARNING: Make sure you understand the semantics of --tls-remote before using it (see the man page).
Tue May 20 09:37:24 2014 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue May 20 09:37:24 2014 Control Channel Authentication: using 'vpn-TCP-443-tls.key' as a OpenVPN static key file
Tue May 20 09:37:24 2014 Attempting to establish TCP connection with [AF_INET]141.115.24.5:443
Tue May 20 09:37:24 2014 TCP connection established with [AF_INET]141.115.24.5:443
Tue May 20 09:37:24 2014 TCPv4_CLIENT link local: [undef]
Tue May 20 09:37:24 2014 TCPv4_CLIENT link remote: [AF_INET]141.115.24.5:443
Tue May 20 09:37:24 2014 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Tue May 20 09:37:27 2014 [**********] Peer Connection Initiated with [AF_INET]141.115.24.5:443
Tue May 20 09:37:29 2014 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Tue May 20 09:37:29 2014 open_tun, tt->ipv6=0
Tue May 20 09:37:29 2014 TAP-WIN32 device [Connexion au réseau local 3] opened: \\.\Global\{90FC8993-536D-4D11-9710-13D497780F75}.tap
Tue May 20 09:37:30 2014 NETSH: C:\Windows\system32\netsh.exe interface ip set address Connexion au réseau local 3 dhcp
Syntax of file, folder or disk is incorrect. (I translated this)
Tue May 20 09:37:30 2014 ERROR: netsh command failed: returned error code 1
Here is my config:
dev tun
persist-tun
persist-key
proto tcp-client
cipher AES-128-CBC
tls-client
client
resolv-retry infinite
remote 141.115.24.5 443
tls-remote ***.***.***
auth-user-pass
pkcs12 vpn-TCP-443.p12
tls-auth vpn-TCP-443-tls.key 1
comp-lzo
After some Googling, I have tried to force IPv6 in the config and installed a Microsoft fix that is supposed to enable IPv6 on all tunnel interfaces, I've been rebooting, uninstalling-reinstalling, but I always have the same error after I authenticate on the server.
I also tried tweaking my firewall / network settings and in the regedit, but that did not change much.
Does anyone have a clue about that?
Thank you in advance!