![Forrest logo](/images/logo.png)
nmcli-connection:tldr:793ef
nmcli-connection: Create a VPN connection using OpenVPN from a OVPN file.
$ nmcli connection import type ${openvpn} file ${path-to-vpn_config-ovpn}
try on your machine
This command is using the nmcli tool, which is a command-line interface for managing NetworkManager connections in Linux. It is specifically importing an OpenVPN connection.
Let's break down the command:
nmcli
: The command to invoke the nmcli tool.connection import
: Indicates that we want to import a new connection.type ${openvpn}
: Specifies the type of connection being imported, in this case, OpenVPN. The${openvpn}
is a placeholder that should be replaced with the actual value.file ${path-to-vpn_config-ovpn}
: Specifies the file path to the OpenVPN configuration file (.ovpn
). The${path-to-vpn_config-ovpn}
is a placeholder for the actual file path.
To use this command, you need to replace ${openvpn}
with the word "openvpn" (without quotes), and ${path-to-vpn_config-ovpn}
with the actual file path to your OpenVPN configuration file.
Once executed, this command will import the specified OpenVPN connection and make it available for use in NetworkManager.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.