Acquired the use of VPN, the seller gave the settings as a single .ovpn file

Inside the file looks like this

remote ***.***.***.*** 443 tcp-client remote-random dev tun nobind persist-tun persist-key key-direction 1 tls-client ns-cert-type server topology subnet socket-flags TCP_NODELAY comp-lzo auth SHA1 cipher AES-256-CBC keysize 256 verb 3 mute-replay-warnings keepalive 5 40 pull route-metric 2 #setenv opt block-outside-dns <ca> -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- </ca> <cert> -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- </cert> <key> -----BEGIN RSA PRIVATE KEY----- ... -----END RSA PRIVATE KEY----- </key> <tls-auth> -----BEGIN OpenVPN Static key V1----- ... -----END OpenVPN Static key V1----- </tls-auth> 

The error looks like this

Mistake

At the same time openvpn --config de.ovpn everything connects perfectly. How can this be fixed?

    1 answer 1

    here it is recommended to “decompose” the remote command into separate components. i.e., replace the line:

     remote ***.***.***.*** 443 tcp-client 

    on

     remote ***.***.***.*** port 443 proto tcp-client 
    • Robit! Thanks =) - Andrew