I try to configure VPN like in
Quick Start tutorial but when I try to connect to server I get this:
Tue Oct 08 10:35:06 2013 Socket Buffers: R=[8192->8192] S=[8192->8192]
Tue Oct 08 10:35:06 2013 UDPv4 link local: [undef]
Tue Oct 08 10:35:06 2013 UDPv4 link remote: [AF_INET]XXX.XXX.XXX.XXX:1194
Tue Oct 08 10:35:06 2013 MANAGEMENT: >STATE:1381214106,WAIT,,,
Tue Oct 08 10:35:06 2013 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Oct 08 10:35:08 2013 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Oct 08 10:35:12 2013 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Oct 08 10:35:20 2013 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Oct 08 10:35:36 2013 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)
Tue Oct 08 10:36:06 2013 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Oct 08 10:36:06 2013 TLS Error: TLS handshake failed
Tue Oct 08 10:36:06 2013 SIGUSR1[soft,tls-error] received, process restarting
I can't figure out why this happens, I tried to follow all instructions from tutorial.
Here are server configs:
port 1194
proto udp
dev tun
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key # This file should be kept secret
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
And client:
client
dev tun
proto udp
remote XXX.XXX.XXX.XXX 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert my-laptop.crt
key my-laptop.key
ns-cert-type server
comp-lzo
verb 3