Windows Installation Failure - newbie

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
NotAHappyCamper
OpenVpn Newbie
Posts: 5
Joined: Thu May 28, 2015 4:15 pm

Windows Installation Failure - newbie

Post by NotAHappyCamper » Thu May 28, 2015 4:37 pm

I have done my best to follow the Easy_Windows_Guide.pdf in the wiki section.
(https://community.openvpn.net/openvpn/w ... ingOpenVPN)

Note, I cannot proceed past step 1 Downloading and Installing OpenVPN. Seems like it installs properly, but nothing happens at the end. No bang. :cry:

- The OpenVPN GUI fails to open a GUI.
- The batch files themselves (down in the Certificates & Keys section) fail to run past Building Certificates & Keys 1. build-ca.bat
It fails something horrendous with a message:
$ ./build-ca.bat
req [options] <infile >outfile
where options are
-inform arg input format - DER or PEM
-outform arg output format - DER or PEM
-in arg input file
-out arg output file
-text text form of request
-pubkey output public key
-noout do not output REQ
-verify verify signature on REQ
-modulus RSA modulus
-nodes don't encrypt the output key
-engine e use engine e, possibly a hardware device
-subject output the request's subject
-passin private key password source
-key file use the private key contained in file
-keyform arg key file format
-keyout arg file to send the key to
-rand file:file:...
load the file (or the files in the directory) into
the random number generator
-newkey rsa:bits generate a new RSA key of 'bits' in size
-newkey dsa:file generate a new DSA key, parameters taken from CA in 'file'
-newkey ec:file generate a new EC key, parameters taken from CA in 'file'
-[digest] Digest to sign with (md5, sha1, md2, mdc2, md4)
-config file request template file.
-subj arg set or modify request subject
-multivalue-rdn enable support for multivalued RDNs
-new new request.
-batch do not ask anything during request generation
-x509 output a x509 structure instead of a cert. req.
-days number of days a certificate generated by -x509 is valid for.
-set_serial serial number to use for a certificate generated by -x509.
-newhdr output "NEW" in the header lines
-asn1-kludge Output the 'request' in a format that is wrong but some CA's
have been reported as requiring
-extensions .. specify certificate extension section (override value in config file)
-reqexts .. specify request extension section (override value in config file )
-utf8 input characters are UTF8 (default ASCII)
-nameopt arg - various certificate name options
-reqopt arg - various request text options




If I click on the OpenVPN GUI button, it simply states, "OpenVPN GUI already running". I have cycled through my open windows 2, 3 times.. I cannot see any sort of OpenVPN GUI anywhere.

I used Task Manager to kill the process. Restarted the OpenVPN GUI - no joy. No idea where that GUI has gone, but its not on my desktop.

Tried watching this vid on Youtube: https://youtu.be/Td_RziIo1gE
I never see the GUI this guy(gal?) has up on his screen at 2:08. In fact, my desktop icon for OpenVPN GUI does not look anything like that newer OpenVPN icon. This appears to be the 32-bit GUI version. In the ..\OpenVPN\bin directory, I tried clicking & running the other openvpn-gui (with the modern looking icon). Same result. Nothing showing on my desktop, but a process is loaded and running in the Task Manager.

In the process bar, I can see the mini-icon, right-clicking, I can bring up a OpenVPN-Settings window with 3 tabs - Proxy, General (language selection only), About. OpenVPN Gui shows v5.

What am I not doing? :?

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Windows Installation Failure - newbie

Post by Traffic » Fri May 29, 2015 8:29 am

Hi,

the link on this page is out of date.

Please download up to date OpenVPN from here:
https://openvpn.net/index.php/download/ ... loads.html

I recommend - Installer (32-bit), Windows XP and later :: openvpn-install-2.3.6-I003-i686.exe

Important: When you run the install, make sure you select all the installable options, including:
  • Openssl Utilities
  • Open RSA certificate management scripts
NotAHappyCamper wrote: Seems like it installs properly, but nothing happens at the end. No bang
There is no bang .. you need to create a server config and a client config.
NotAHappyCamper wrote: The OpenVPN GUI fails to open a GUI
NotAHappyCamper wrote:If I click on the OpenVPN GUI button, it simply states, "OpenVPN GUI already running".
the GUI is running in your system tray area (bottom right corner of screen)

NotAHappyCamper
OpenVpn Newbie
Posts: 5
Joined: Thu May 28, 2015 4:15 pm

Re: Windows Installation Failure - newbie

Post by NotAHappyCamper » Fri May 29, 2015 7:37 pm

Hi -

Very happy to have a response. Not so unhappy anymore. ;)
I recommend - Installer (32-bit), Windows XP and later :: openvpn-install-2.3.6-I003-i686.exe
.. even though I'm using a 64-bit version of Windows? (I'll give it a whirl.)
the GUI is running in your system tray area (bottom right corner of screen)
But, the system-tray GUI is extremely sparse... only 'OpenVPN Settings' with 3 tabs {Proxy, General, About} is that correct? Seems like there ought to be more to setting up the OpenVPN server stuff other than just those three items. :|

I'll go re-read some of the how-tos, but seems like I'm missing a few key points still.

NotAHappyCamper
OpenVpn Newbie
Posts: 5
Joined: Thu May 28, 2015 4:15 pm

Re: Windows Installation Failure - newbie

Post by NotAHappyCamper » Fri May 29, 2015 8:52 pm

Traffic wrote:
I recommend - Installer (32-bit), Windows XP and later :: openvpn-install-2.3.6-I003-i686.exe
I have a 64-bit O.S. I supposed I could try the 32-bit version, but I saw/read somewhere else to be certain to get/use the 64-bit version if one has a 64-bit OS. I'll give it a whirl and see what happens.
Traffic wrote: There is no bang .. you need to create a server config and a client config.
OK.. where/how do I do this? This seems to be a crucial point I'm missing. The HowTo's are a bit overwhelming.. but, again, I'll peruse after I post this.
Traffic wrote:the GUI is running in your system tray area (bottom right corner of screen)
It just seems a bit sparse - 'OpenVPN Settings' is the only GUI I can open---{Proxy, General, About} are the only 3 tabs. :|

Again, thank you for your help.

NotAHappyCamper
OpenVpn Newbie
Posts: 5
Joined: Thu May 28, 2015 4:15 pm

Re: Windows Installation Failure - newbie

Post by NotAHappyCamper » Fri May 29, 2015 11:02 pm

OK - I have part of the answer to my problem(s).

1. Do not use the Cygwin command line utility. Stick with MS's native cmd.exe ONLY. Otherwise, all the environment settings are way off. This could be emphasized a bit more in the documentation.
2. https://www.lisenet.com/2014/openvpn-se ... n-windows/ was a big help.
And, though the english is a bit cryptic at times, this was also a great help: http://openmaniak.com/openvpn_tutorial.php

Understanding a bit more, I feel terribly dangerous. :D

Questions:
a. I would like to know why the local address is set to 0.0.0.0 in the server config file. Should that not be a local IP network, or does the TAP ethernet interface need to be set to the root network domain of everything?
b. I set the local port to be 11194, but that is not showing up in the netstat -na output. I see UDP ports open for 123, 500, 3702 (x2), 4500, 5004, 5005, 5355, & 65500. No 1194, nor 11194.
c. Not sure I have the Adapter Name written correctly in the server.ovpn file. 'ipconfig' output lists multiple choices: 'Ethernet adapter Local Area Connection' , 'Tunnel adapter Teredo Tunneling Psuedo-Interface' , and 'Tunnel adapter isatap.{F0E98964- ...}' . My Network Connections panel states: 'Local Area Connection' as the TAP-Windows Adapter V9. Perhaps a better question is, what does dev-node do for me? Do I need to set it, or leave it commented out?


Thank you for the assistance. :)

NotAHappyCamper
OpenVpn Newbie
Posts: 5
Joined: Thu May 28, 2015 4:15 pm

Re: Windows Installation Failure - newbie

Post by NotAHappyCamper » Fri May 29, 2015 11:54 pm

OK - almost a HappyCamper now.

I commented out the ;dev-node portion in the server.ovpn and wallah, a connection was established.

How-ev-er. openvpn.exe server.ovpn doesn't seem to like sharing an address in use. It spits out a fatal error for such, yet, the connection seems to be ok. UDP has a port defined as in the server.ovpn config file.
C:\Programs\OpenVPN\log>type server.log
Fri May 29 18:18:40 2015 OpenVPN 2.3.6 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [PKCS11] [IPv6] built on Mar 19 2015
Fri May 29 18:18:40 2015 library versions: OpenSSL 1.0.1m 19 Mar 2015, LZO 2.08 Enter Management Password:
Fri May 29 18:18:40 2015 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25340
Fri May 29 18:18:40 2015 Need hold release from management interface, waiting...

Fri May 29 18:18:41 2015 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25340
Fri May 29 18:18:41 2015 MANAGEMENT: CMD 'state on'
Fri May 29 18:18:41 2015 MANAGEMENT: CMD 'log all on'
Fri May 29 18:18:41 2015 MANAGEMENT: CMD 'hold off'
Fri May 29 18:18:41 2015 MANAGEMENT: CMD 'hold release'
Fri May 29 18:18:41 2015 Diffie-Hellman initialized with 1024 bit key
Fri May 29 18:18:41 2015 Socket Buffers: R=[65536->65536] S=[65536->65536]
Fri May 29 18:18:41 2015 MANAGEMENT: Client disconnected
Fri May 29 18:18:41 2015 TCP/UDP: Socket bind failed on local address [undef]: Address already in use (WSAEADDRINUSE)
Fri May 29 18:18:41 2015 Exiting due to fatal error
I'm sure I'm still doing something or more than one thing wrong.

Learning.Curve.Is.Steep.

:arrow:

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Windows Installation Failure - newbie

Post by Traffic » Sun Aug 23, 2015 12:00 pm

NotAHappyCamper wrote:Fri May 29 18:18:41 2015 TCP/UDP: Socket bind failed on local address [undef]: Address already in use (WSAEADDRINUSE)
Fri May 29 18:18:41 2015 Exiting due to fatal error
Typically, this means OpenVPN is already running on that port .. but you have not posted details of your config so we cannot be sure.

Post Reply