Page 1 of 1

connecting fails with no log

Posted: Sun Aug 11, 2013 1:58 am
by t_pwn
Hey guys, this is my first attempt at setting up a vpn server.

Client is Windows xp in a virtual machine, server is a CentOS VPS. The only error I'm getting is "Connecting to client has failed", nothing is printed to the client log or to the logs on my server. I've also tried connecting from my host machine (windows 7) with the same result. In the config folder I have ca.crt, client.crt, client.key, and client.ovpn which looks like this:

Code: Select all

client
dev tun
proto tcp
remote [VPS IP] 443
resolv-retry infinite
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
comp-lzo
verb 3
ca "C:\Program Files\OpenVPN\config\ca.crt"
cert "C:\Program Files\OpenVPN\config\client.crt"
key "C:\Program Files\OpenVPN\config\client.key"
I won't pretend to know what some of that stuff means, I just started added things I saw in other people's ovpn files to see if it had any effect, and so far it has not.

The client (OpenVPN GUI v4) was giving me log output before I gave absolute paths so the logging itself works.

I started with udp port 1194 but changed to tcp 443 so I could test with telnet, and that actually works. I'm able to connect and my server logs it:

Code: Select all

Aug 10 20:30:53 xx-xx-xx-xx openvpn[30975]: TCP connection established with [AF_INET][client IP]:49874
Since the OpenVPN client is not telling me anything my troubleshooting has stalled so any suggestions would be greatly appreciated.

Re: connecting fails with no log

Posted: Mon Aug 12, 2013 6:10 am
by maikcat
please post server side config also...

Michael.

Re: connecting fails with no log

Posted: Thu Sep 05, 2013 7:43 am
by omerjones
maikcat wrote:please post server side config also...

Michael.
Hi, friends i have set of 15 pcs in my office situated at apartment locator in austin texas and i had installed the linux server with ARCH LINUX versions for my all terminals , but it shows an DNS error while pinging with aome terminals, please someone help me to resolve this problem.

Re: connecting fails with no log

Posted: Sun Feb 15, 2015 11:33 pm
by doc212
Try running it from the command line...

Open a cmd in C:\Program Files\OpenVpn bin

the run the command

Code: Select all

openvpn ..\config\myconfig.ovpn
or whatever path to you config file.

You will probably see some errors in the console.

(worked for me...)

Cheers