.ovpn works perfectly with GUI but not from terminal

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
Canche313
OpenVpn Newbie
Posts: 1
Joined: Tue Mar 12, 2024 1:40 pm

.ovpn works perfectly with GUI but not from terminal

Post by Canche313 » Tue Mar 12, 2024 2:10 pm

I have a .ovpn file with this params:

client
remote x.x.x.x x udp
nobind
dev tun
comp-lzo
auth-user-pass myfile.txt
route-metric 2

When I connect to it with OpenVPN Connect (with GUI) it works perfectly fine, but when I try to "openvpn --config file.ovpn" (with and without sudo) in the terminal, I get

2024-03-12 11:05:58 TLS error: Unsupported protocol. This typically indicates that client and server have no common TLS version enabled. This can be caused by mismatched tls-version-min and tls-version-max options on client and server. If your OpenVPN client is between v2.3.6 and v2.3.2 try adding tls-version-min 1.0 to the client configuration to use TLS 1.0+ instead of TLS 1.0 only
2024-03-12 11:05:58 OpenSSL: error:0A000102:SSL routines::unsupported protocol:
2024-03-12 11:05:58 TLS_ERROR: BIO read tls_read_plaintext error
2024-03-12 11:05:58 TLS Error: TLS object -> incoming plaintext read error
2024-03-12 11:05:58 TLS Error: TLS handshake failed
2024-03-12 11:05:58 SIGUSR1[soft,tls-error] received, process restarting

in loop. I already tried with tls-version-min 1.0 and still nothing. Also, I had to activate the Insecure Security Level in the GUI app, because otherwise it wouldn't connect (I'm guessing that's the problem and why it won't let me connect from the terminal). I understand what the error means and everything, but I have no idea how to fix it. Also, I don't really care right now about security measures, I just need to be able to connect. Thanks for reading : )

Post Reply