connect to open vpn with conf file linux code example

Example: connect to open vpn with conf file linux

# Copy the configuration file to /etc/openvpn/ and rename it to client.conf
cp example.ovpn /etc/openvpn/client.conf

# Enable the autostart of the OpenVPN service:
sudo systemctl enable [email protected]

# Start the client:
sudo service openvpn@client start

# At this point all you need to do is wait a few seconds for the connection 
# to complete. To check the status of the connection, use this command
sudo service openvpn@client status