I usually use the terminal and type
sudo openvpn --config client.ovpn
in order to connect to my VPS on which I installed OpenVPN Access Server in order to make my own VPN. However, it's not very practical, especially when I have to switch with another VPN (Cisco, in the network manager).
So I looked it up and found that I could add an OpenVPN config to my network manager after installing
However, my config file is not recognized when I click "Import a saved VPN configuration...", it says
Error: Key file contains line 'setenv FORWARD_COMPATIBLE 1' which is not a key-value pair, group, or comment.
I tried deleting that line, but then it's another line that's faulty, and then another, and so on.
So I tried splitting my
.ovpn file into
client.key, using the
sacli script that OpenVPN Access Server provides on the server itself. I put the the gateway, with and without
port/tcp/udp, chose "Password with Certificates (TLS)", the username linked to the config file, the password, linked the different
.key files, tried many different combinations of advanced parameters (use custom gateway port 443/1194, use TCP connection ON/OFF, use LZO data compression ON/OFF)... No result, after I chose the VPN connection the network manager icon shows that it tries to connect for second, shows a padlock for a split second, and goes on like this for a minute before telling me it failed.
If I try using the static key I have to fill in "Remote IP Address" and "Local IP Address", and I haven't found what they're supposed to be as I already have the gateway. I can't save the settings without them, so I tried putting the gateway in the "Remote IP Address" and "127.0.0.1" as the "Local IP Address", but when I do this it just instantly tells me "VPN Connection Failed".
Has anyone an idea of how I could finally manage to get this working?