Hi there! I was having the same issue.
Try adding this lines in you server.conf
dev tap
tls-server
--proto tcp-server
verb 3
persist-tun
persist-key
comp-lzo
keepalive 10 30
status openvpn-status.log
In the client add this:
float
tls-client
ns-cert-type server
--proto tcp-client
user nobody
group nobody
persist-key
persist-tun
#ping 15
verb 3
comp-lzo
keepalive 10 30
--connect-retry 10
dev tap1
I have this configuration running very well. Everytime the client boot, try to connect, it get connected to server.
If the issue persist, making infites ping to the server IP. Maybe the server sometimes go down and then up again.
Try this:
CMD>ping YOU-SERVER-IP -t <--- using
-t
Let me know if it works for you.