How to set up OpenVPN connection?

How do I set up an OpenVPN connection?

I have an OpenVPN configuration file, but the uploader will not accept it it says it is in the wrong format, but it is an OpenVPN configuration file.

What am I supposed to do about it please?

For more information…

The configuration file is an OpenVPN configuration file.

client
dev tun
proto tcp

remote {ipaddress1} 443
remote {ipaddress1} port2
remote {ipaddress1} port3

remote-random
resolv-retry infinite
nobind


cipher AES-256-GCM

setenv CLIENT_CERT 0
tun-mtu 1500
mssfix 0
persist-key
persist-tun

reneg-sec 0

remote-cert-tls server
auth-user-pass


<ca>
-----BEGIN CERTIFICATE-----
jifqvhweovyb4p98t5by4tyw489vt6y489==
-----END CERTIFICATE-----
</ca>

<tls-crypt>
-----BEGIN OpenVPN Static key V1-----
b6tbt67tt78t78tv78v7o8t
-----END OpenVPN Static key V1-----
</tls-crypt>

Any thoughts please?

As regards Roadwarrior setup, NethSecurity acts as a server so it’s not possible to import a client config AFAIK.
As regards OpenVPN tunnels, it’s meant to connect 2 NethSecurity firewalls and the config file is in JSON format, see OpenVPN tunnels — NethSecurity documentation

Okay, so it isn’t OpenVPN tunnel as it is seen as then?

So do I need to build in the OpenVPN as well?

Yes, it’s not supported within NethSecurity UI.
NethSec is based on OpenWRT so you can configure it as you like, just care about to not conflict with the NethSec part, see also Quickstart guide | NethSecurity