# \[SOLVED\] OpenVPN config file seems to have invorrect format

**URL:** https://discuss.freedombox.org/t/solved-openvpn-config-file-seems-to-have-invorrect-format/972
**Category:** Support
**Created:** [June 21, 2020, 3:27pm UTC](https://discuss.freedombox.org/t/solved-openvpn-config-file-seems-to-have-invorrect-format/972 "2020-06-21T15:27:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![OceanLlama](https://discuss.freedombox.org/letter_avatar_proxy/v4/letter/o/b487fb/32.png) [@OceanLlama](https://discuss.freedombox.org/u/OceanLlama)
#### Post date: [June 21, 2020, 3:27pm UTC](https://discuss.freedombox.org/t/solved-openvpn-config-file-seems-to-have-invorrect-format/972/1 "2020-06-21T15:27:13Z")

</div>

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

```auto
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 ?

---

<div class="post-metadata">

### Author: ![Sunil](https://discuss.freedombox.org/user_avatar/discuss.freedombox.org/sunil/32/8_2.png) [@Sunil](https://discuss.freedombox.org/u/Sunil)
#### Post date: [June 21, 2020, 11:05pm UTC](https://discuss.freedombox.org/t/solved-openvpn-config-file-seems-to-have-invorrect-format/972/2 "2020-06-21T23:05:40Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![OceanLlama](https://discuss.freedombox.org/letter_avatar_proxy/v4/letter/o/b487fb/32.png) [@OceanLlama](https://discuss.freedombox.org/u/OceanLlama)
#### Post date: [June 21, 2020, 11:13pm UTC](https://discuss.freedombox.org/t/solved-openvpn-config-file-seems-to-have-invorrect-format/972/3 "2020-06-21T23:13:15Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Sunil](https://discuss.freedombox.org/user_avatar/discuss.freedombox.org/sunil/32/8_2.png) [@Sunil](https://discuss.freedombox.org/u/Sunil)
#### Post date: [June 23, 2020, 5:03am UTC](https://discuss.freedombox.org/t/solved-openvpn-config-file-seems-to-have-invorrect-format/972/4 "2020-06-23T05:03:24Z")

</div>

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