We have our own VPN in my workplace. Everyone has its own key. However I am the only one who works on linux, the rest use either Macs or Windows machines. Unfortunately I have not found any good client application for OpenVPN so I am launching it from terminal:
sudo openvpn --config client.ovpn
The problem is that sometimes connection breaks with the following error:
TLS Error: local/remote TLS keys are out of sync: [AF_INET]
and I need to restart it 15-20 times until succesful reconnection occurs. Here is a content of client.ovpn
config file.
dev tun
proto udp
remote /*ip-address of server here*/ 1194
client
resolv-retry infinite
ca "ca.crt"
cert "mycrt.crt"
key "mykey.key"
tls-auth "ta.key" 1
remote-cert-tls server
persist-key
persist-tun
verb 3
status-version 3
tls-timeout 120
tun-mtu 1500
fragment 1300
mssfix 1300
ntp
and run it. Because this can be the reason of your problem