Networkmanager-openvpn

From ArchWiki
Jump to navigation Jump to search

Merge-arrows-2.pngThis article or section is a candidate for merging with Networkmanager.Merge-arrows-2.png

Notes: Too short for a separate page. (Discuss in Talk:Networkmanager-openvpn#)

networkmanager-openvpn is a plugin to support OpenVPN connections in NetworkManager

Adding a connection

Although you could manually configure a connection to an OpenVPN server, you will most likely have a .ovpn file.

Use .ovpn file through GUI

If you are using network-manager-applet, you can do VPN Connections -> Configure VPN -> + -> Import a saved VPN connection...

Use .ovpn file through CLI

nmcli connection import type openvpn file <file.ovpn>

Troubleshooting

No Certificate password

If you get:

Warning: password for 'vpn.secrets.password' not given in 'passwd-file' and nmcli cannot ask without '--ask' option.
Error: Connection activation failed: No valid secrets

Even with

[vpn]
cert-pass-flags=0

You can add:

[vpn-secrets]
cert-pass=<anything you want>