I’m configuring an AWS instance of Mikrotik RouterOS for OpenvVPN server purposes.
At this moment I’m using an RB1100 as OpenVPN server and works fantastic for our needs, but as this service is becoming critical I have decided to install it in the cloud.
Most of the VPN clients are other Mikrotik Routers, but we have also Linux Servers, Windows Workstations and Android Smartphones.
After a simple configuration of the openvpn server, Mikrotik Routers clients and Windows clients connect without problems to the Cloud where RouterOS runs the OpenVPN Server.
Instead, the clients of the linux servers fail to connect. And they show a TLS Error.
TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network>
TLS Error: TLS handshake failed
Fatal TLS error (check_tls_errors_co), restarting
After many tests, I have cloned the server and installed locally and I have noticed that the linux client connects without problems if it is in the same LAN as the OpenVPN Server, but not when it is installed behind a NAT or in the cloud like Amazon or Google Cloud.
Any idea why it is not possible to connect linux clients on an Openvpn Server with RouterOS in the cloud? The rest of windows clients or routers do not have connection problems.
If anyone has any suggestions to solve my problem I would greatly appreciate it!
Have you enabled TLS-Crypt or TLS-Auth for the VPN configuration on the Linux client? If you have, you will need to disable it as RoS 6 doesn’t support it (I don’t know if RoS 7 does).
Take a look at the screenshots if you don’t know where to find the setting.