[Solved] Connecting to server has failed

Samples of working configurations.

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

Locked
larasker
OpenVpn Newbie
Posts: 2
Joined: Sat Mar 17, 2018 11:14 pm

[Solved] Connecting to server has failed

Post by larasker » Mon Mar 19, 2018 5:27 pm

Hi, I have installed OpenVPN with administrator privileges on my Windows 10 64bit computer. I configured a server, it generates the crt, dh and key files. However, the server computer does not connect to the server and the following message always appears:

Image

I already did the following:

-In windows services, I already ran the OpenVPN service.
- I already reinstalled and rebooted my PC repeatedly.

The content of the server.ovpn file is:

port 1194
proto tcp
dev tap
dev-node TAP-01
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-to-client
keepalive 10 120
cipher AES-256-CBC
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
mute 20
explicit-exit-notify 1
#ca ca.crt
<ca>
*****CA file code*****
</ca>
#cert servidor-vpn.crt
<cert>
*****Cert file code*****
</cert>
#key servidor-vpn.key
<key>
*****KEY file code*****
</key>
#dh dh4096.pem
<dh>
*****DH file code*****
</dh>

I will greatly appreciate your help.

regards

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Connecting to server has failed

Post by TinCanTech » Mon Mar 19, 2018 6:44 pm

Try looking in the log file in the log directory ..

larasker
OpenVpn Newbie
Posts: 2
Joined: Sat Mar 17, 2018 11:14 pm

Re: Connecting to server has failed

Post by larasker » Tue Mar 20, 2018 1:41 am

Hi, thanks for the quick response, in the log I could see the problem, it really was something very obvious and easy to solve (I said that explicit-exit-notify 1 only worked with UDP, and I was using TCP). Too bad, I had not reviewed the log before, thank you very much.

regards

Locked