connecting fails with no log

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
t_pwn
OpenVpn Newbie
Posts: 1
Joined: Sun Aug 11, 2013 1:16 am

connecting fails with no log

Post by t_pwn » Sun Aug 11, 2013 1:58 am

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.

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: connecting fails with no log

Post by maikcat » Mon Aug 12, 2013 6:10 am

please post server side config also...

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

omerjones
OpenVpn Newbie
Posts: 1
Joined: Thu Sep 05, 2013 7:36 am

Re: connecting fails with no log

Post by omerjones » Thu Sep 05, 2013 7:43 am

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.

doc212
OpenVpn Newbie
Posts: 1
Joined: Sun Feb 15, 2015 11:31 pm

Re: connecting fails with no log

Post by doc212 » Sun Feb 15, 2015 11:33 pm

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

Post Reply