You are not logged in.

#1 2014-04-15 08:25:14

Phobios
Member
Registered: 2012-07-22
Posts: 10

Malfunctioning OpenVPN server

I am trying to setup an openvpn server and a client, but all I get when I try to connect the client to the server is:

us=65771 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
us=65810 TLS Error: TLS handshake failed

Both the client and the server are running arch. I have followed the wiki and still cant get it to work.
Here is my server.conf:

port 1199
proto udp
dev tun

ca <path>/ca.crt
cert <path>/shiver.crt
key <path>/shiver.key  # This file should be kept secret
dh <path>/dh2048.pem

server 192.168.1.192 255.255.255.192
ifconfig-pool-persist <path>/ipp.txt

keepalive 10 120

tls-auth <path>/ta.key 0

comp-lzo
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
log-append log
verb 6

Here is my client.conf:

client
dev tun
proto udp
remote <server-ip> 1199

resolv-retry infinite

nobind
persist-key
persist-tun

user nobody
group nobody

ca <path>/ca.crt
cert <path>/client.crt
key <path>/client.key
ns-cert-type server
tls-auth <path>/ta.key 1

comp-lzo
verb 6

I tcpdumped the server and can confirm that it receives the UDP packets on the correct port, but it doesn't respond to them. The server starts without a problem, just some warnings about cached passwords.

I have tried many different options, but none have worked so far. Is there anyone who has an idea of what might be wrong with my setup?

Thank you for your time!

Offline

#2 2014-04-15 19:03:37

Phobios
Member
Registered: 2012-07-22
Posts: 10

Re: Malfunctioning OpenVPN server

Ok, so I found out what my problem was. The server was already running an instance of OpenVPN in client mode and when I disconnected it I was able to connect to it from the client machine.

My question now is: Why cant my machine be running two OpenVPN instances at the same time? One client instance and one server instance? Is there a workaround to get this working?

Offline

Board footer

Powered by FluxBB