# OpenVPN TLS Handshake Failed

Source: https://forum.modalai.com/topic/2217/openvpn-tls-handshake-failed
Category: Flight Core and Legacy VOXL (https://forum.modalai.com/category/9/flight-core-and-legacy-voxl)
Tags: voxl
Posted: 2023-06-01 15:34:41 UTC by zkern5254
Replies: 1 · Views: 1632

## zkern5254 · 2023-06-01 15:34:41 UTC

I'm trying to run OpenVPN and it seems like it can't establish the TCP connection for the tunnel. 

I'm getting the follow output from OpenVPN:
![379e3911-515f-4c1e-a45b-3af237ee6bfa-image.png](https://forum.modalai.com/assets/uploads/files/1685633299578-379e3911-515f-4c1e-a45b-3af237ee6bfa-image.png) 

Not sure what is the most important line here but the TLS handshake failed might be something. 

I did create a device on the OpenVPN portal and exported the .opvn file. Then I ran: 
```
openvpn --script-security 2 --config mykeys.ovpn
``` 
(did it not a daemon to see the outputs)

The drone is connected to over wlan0 and I can confirm network connection with a successful ping of google.com 

Thanks in advance for any help.

## Reply by zkern5254 · 2023-06-06 19:59:55 UTC

To all that might come across this, updating to OpenVPN 2.4.6 solved this issue. Note that a reset of the VOXL is required before the upgrade will take hold. 

Also, if you are using the vpn-start service, do not use the full file path that is there by default; instead just use the openvpn call like you would in a terminal and use the file path to sudo /usr/bin/sudo before the openvpn call like this: 

```
/usr/bin/sudo openvpn --daemon --script-security 2 --config mykeys.ovpn
``` 

If you don't make this change, it will try to run the older version of openVPN and will run into all kinds of issues.
