You are not logged in.

#1 2013-05-02 17:46:56

brandjamie
Member
Registered: 2013-05-02
Posts: 3

openvpn client not connecting

I seem unable to connect to any openvpn server on arch.
I've installed openvpn and started the tun service as per the wiki.
I have a .ovpn file from my vpn but when I run 'openvpn --config myovpn.ovpn' it doen't connect.

The errors I'm getting are:
TLS: Initial packet from [AF_INET]128.193.245.215:995, sid=7ca0ff03 2b24ae94
Connection reset, restarting [0]
SIGUSR1[soft,connection-reset] received, process restarting
Restart pause, 5 second(s)

The same ovpn file works on openvpn on android over the same network so I assume it must be something to do with Arch. iptables is not running and I have disabled network manager.
I guess there is something obvious I am missing but I have searched the wiki and the forums and can find no similar problems.
Any suggestions?

Offline

#2 2013-05-05 23:58:14

parintachin
Member
Registered: 2009-05-25
Posts: 72

Re: openvpn client not connecting

use ntp to sync your clock time difference of server and client are the most common tls connection problems

Offline

#3 2013-05-06 16:31:07

brandjamie
Member
Registered: 2013-05-02
Posts: 3

Re: openvpn client not connecting

Thanks,
I tried that and it seems my clock was 1.4 seconds out. I don't know if it made any difference. The error message has changed a little. It now says:

Mon May  6 19:39:51 2013 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Mon May  6 19:39:51 2013 TLS Error: TLS handshake failed
Mon May  6 19:39:51 2013 Fatal TLS error (check_tls_errors_co), restarting
Mon May  6 19:39:51 2013 SIGUSR1[soft,tls-error] received, process restarting
Mon May  6 19:39:51 2013 Restart pause, 5 second(s)

Searching for the extra error message I found a thread that suggested adding the 'update-resolf-conf' script to /etc/openvpn/ and the .ovpn file as suggested in the depreciated older content of the wiki. Unfortunately that made no difference.

Offline

#4 2013-05-06 19:10:13

parintachin
Member
Registered: 2009-05-25
Posts: 72

Re: openvpn client not connecting

please post your config

Offline

#5 2013-05-08 15:46:51

brandjamie
Member
Registered: 2013-05-02
Posts: 3

Re: openvpn client not connecting

Hi, 

I've been using config files from vpngate.com.
It is generated by the softether vpn server.

# !!! AUTO-GENERATED BY SOFTETHER VPN SERVER MANAGEMENT TOOL !!!

Removing the rest of the comments (for redability) leaves me with this:

dev tun
proto tcp
remote ***.**.185.189 1599
;http-proxy-retry
;http-proxy [proxy server] [proxy port]
cipher AES-128-CBC
auth SHA1
resolv-retry infinite
nobind
persist-key
persist-tun
client
tls-client
pull
verb 3

<ca>
-----BEGIN CERTIFICATE-----
MIIB7jCCAVcCBGOEMRQwDQYJ ....
.....V/75G0Kw
-----END CERTIFICATE-----

</ca>


<cert>
-----BEGIN CERTIFICATE-----
MIICxjCCAa.....
.....Q7HJpsk
-----END CERTIFICATE-----

</cert>

<key>
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQ....
....CIuGxIF50Vg==
-----END RSA PRIVATE KEY-----

</key>

Obviously there is a full ip address and full keys in the original config file. I've tried moving the ca key to an seperate file but that doesn't seem to help. I've also tried to use ovpn files from vpnbook, another free provider, with the same result.

Thanks again.

Offline

Board footer

Powered by FluxBB