[SOLVED] OpenVPN config file seems to have invorrect format

When running sudo nmcli connection import type openvpn file ~/Downloads/<user>.ovpn
I get the following output
Error: failed to import '/home/llamagod/Downloads/LlamaServe.ovpn': configuration error: invalid 1th argument to “proto” (line 5).

Upon inspecting the file, I see the following header

client
remote <server-url> 1194
proto udp
proto udp6
dev tun
nobind
remote-cert-tls server
cipher AES-256-CBC
comp-lzo
redirect-gateway
verb 3

After deleting the line proto udp6 the command completes successfully and I can add the configuration. Though I haven’t left my private network to test it.

Is this a bug? or am I doing something wrong when generating the config?
which of the two lines should I keep if one does have to go ?

It looks like the network manager you are using does not support the configuration option for connecting via IPv6. What is the version of your network manager? If you are using a fairly recent version, then we may want to workaround this problem or at least document this. The actual bug though would be on the part of network-manager for not understanding this option.

1 Like

running NetworkManager --version I get 1.10.6 So I guess it’s not super fresh. I’m on Ubuntu 18.04.1

1 Like

I added a note about this error and what to do in the manual page.

1 Like