number6
I had one working on Ubuntu 14.04 since 2017. Then it was decided to move to Ubuntu 18.04, so I re-installed everything, created a new CA and client keys, and used the old server.conf. The daemon starts without error, the process for it appears in the 'ps' process list, everything looks fine. After replacing the CA, CERT and KEY sections of the Windows client .ovpn configuration file and attempting to connect, absolutely nothing happens--no errors, just a timeout. The firewall on both client and server are turned off for testing purposes just to make sure a blocked port isn't the problem. syslog on the server shows no activity--no connections from outside. Telnet to localhost:1194 on the server says connection refused, which doesn't really surprise me because that was the same behavior on Ubuntu 14.04. So I'm out of ideas of what to test, what to look for.
syslog shows this:
Nov 7 03:50:59 theglobalvoice systemd[1]: Starting OpenVPN service...
Nov 7 03:50:59 theglobalvoice systemd[1]: Started OpenVPN service.
Nov 7 03:50:59 theglobalvoice systemd[1]: Stopped OpenVPN connection to server.
Nov 7 03:50:59 theglobalvoice systemd[1]: Starting OpenVPN connection to server...
Nov 7 03:50:59 theglobalvoice systemd[1]: Started OpenVPN connection to server.
Client log shows this:
Thu Nov 07 09:43:48 2019 WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead.
Thu Nov 07 09:43:48 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]92.243.28.146:1194
Thu Nov 07 09:43:48 2019 Socket Buffers: R=[65536->65536] S=[65536->65536]
Thu Nov 07 09:43:48 2019 UDP link local: (not bound)
Thu Nov 07 09:43:48 2019 UDP link remote: [AF_INET]92.243.28.146:1194
Thu Nov 07 09:43:48 2019 MANAGEMENT: >STATE:1573137828,WAIT,,,,,,
Thu Nov 07 09:44:48 2019 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Thu Nov 07 09:44:48 2019 TLS Error: TLS handshake failed
Thu Nov 07 09:44:48 2019 SIGUSR1[soft,tls-error] received, process restarting
Thu Nov 07 09:44:48 2019 MANAGEMENT: >STATE:1573137888,RECONNECTING,tls-error,,,,,
Thu Nov 07 09:44:48 2019 Restart pause, 300 second(s)
What's interesting about this is that I am NOT trying to connect to 92.243.28.146 any more. I have changed the address in my .ovpn file to 95.142.174.193, but that address never appears in the log. I have read articles that say the client will attempt to connect to the old cached address first, then if that fails, it's supposed to switch the the one in the .ovpn configuration file. But that never seems to happen. This tells me that my problem is likely on the client side, but I don't know what to look for.
Any asistance greatly appreaciated.