Problems with logging in to OpenVPN

All comments and questions related to the functionality of the OpenVPN web pages and forum should go here.

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

Post Reply
GH66
OpenVpn Newbie
Posts: 2
Joined: Wed May 30, 2012 8:20 pm

Problems with logging in to OpenVPN

Post by GH66 » Wed May 30, 2012 8:40 pm

Hi all,

I've been trying to log in to OpenVPN GUI v1.0.3, on a desktop PC that has Windows Vista Home Premium. The login works OK on my company-supplied laptop, which has Windows XP, using the same config file etc.

I have enabled Windows XP compatibility mode, and have been running OpenVPN as an administrator. I've also set up port forwarding (port 1194, with a D-Link DSL-2680 router).

The original config file was as follows (with some details replaced by '[***]' to protect client confidentiality):

client
dev tun
proto tcp
remote ftp.[***].com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert [***].crt
key [***].key
cipher [***]
auth-user-pass
comp-lzo
verb 1

When I entered the user ID and password, a few messages appeared, and then the pop-up appeared again. The log afterwards was:

Thu May 17 22:08:43 2012 OpenVPN 2.2.2 Win32-MSVC++ [SSL] [LZO2] [PKCS11] built on Dec 15 2011
Thu May 17 22:08:45 2012 ERROR: could not read Auth username from stdin
Thu May 17 22:08:45 2012 Exiting

I later tried creating a pass.txt file in the config folder, with line 1 = user ID and line 2 = password, and adding 'pass.txt' to the auth-user-pass line in the config file.

After clicking on Connect --> "Connecting to [***] has failed" (N.B. there was no prompt for ID & password), the resulting log was:

Tue May 29 19:28:58 2012 OpenVPN 2.2.2 Win32-MSVC++ [SSL] [LZO2] [PKCS11] built on Dec 15 2011
Tue May 29 19:28:58 2012 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Tue May 29 19:28:58 2012 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue May 29 19:28:59 2012 LZO compression initialized
Tue May 29 19:28:59 2012 Attempting to establish TCP connection with 213.152.246.251:1194
Tue May 29 19:28:59 2012 TCP connection established with 213.152.246.251:1194
Tue May 29 19:28:59 2012 TCPv4_CLIENT link local: [undef]
Tue May 29 19:28:59 2012 TCPv4_CLIENT link remote: 213.152.246.251:1194
Tue May 29 19:28:59 2012 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Tue May 29 19:29:01 2012 [server] Peer Connection Initiated with 213.152.246.251:1194
Tue May 29 19:29:04 2012 AUTH: Received AUTH_FAILED control message
Tue May 29 19:29:04 2012 SIGTERM[soft,auth-failure] received, process exiting

Then I deleted the "auth-user-pass" line, and this time the log was:

Tue May 29 19:38:48 2012 OpenVPN 2.2.2 Win32-MSVC++ [SSL] [LZO2] [PKCS11] built on Dec 15 2011
Tue May 29 19:38:48 2012 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Tue May 29 19:38:48 2012 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue May 29 19:38:49 2012 LZO compression initialized
Tue May 29 19:38:49 2012 Attempting to establish TCP connection with 213.152.246.251:1194
Tue May 29 19:38:52 2012 TCP connection established with 213.152.246.251:1194
Tue May 29 19:38:52 2012 TCPv4_CLIENT link local: [undef]
Tue May 29 19:38:52 2012 TCPv4_CLIENT link remote: 213.152.246.251:1194
Tue May 29 19:38:54 2012 Connection reset, restarting [0]
Tue May 29 19:38:54 2012 SIGUSR1[soft,connection-reset] received, process restarting
(this was then repeated, from the second line onwards, until I cancelled it)

Can anyone please advise how to make this work? Any help would be appreciated.

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Problems with logging in to OpenVPN

Post by janjust » Thu May 31, 2012 10:01 am

if you're using openvpn 2.2.2 then there's no need to run it in 'compatibility mode' - can you disable this , but keep the 'run as administrator' flag on.

GH66
OpenVpn Newbie
Posts: 2
Joined: Wed May 30, 2012 8:20 pm

Re: Problems with logging in to OpenVPN

Post by GH66 » Thu May 31, 2012 10:09 am

Thanks Jan.

All - I've just found out that I probably won't be using OpenVPN on my desktop anyway, because of compliance regulations. Sorry for the wasted time.

Post Reply