Install OpenVPN
- Open a terminal and see if you already have openvpn installed:
$ which openvpn
/usr/sbin/openvpn
This means you have OpenVPN installed.
- Installing openvpn is a simple command:
$ sudo apt install openvpn
Add your Config Files
- You should be provided with these files:
- your-laptop.key ← This is your private key
- your-laptop.crt ← This is your certificate
- ca.crt ← This is the VPN server certificate
- candelatech.conf ← The config file for the connection
You will place these files in /etc/openvpn. The files should be owned by root, so become root and copy them with this technique: $ sudo -s
[/home/amelia] # cd /etc/openvpn
[/etc/openvpn] # cp ~amelia/Downloads/your-laptop.key .
[/etc/openvpn] # cp ~amelia/Downloads/your-laptop.crt .
[/etc/openvpn] # cp ~amelia/Downloads/ca.crt .
[/etc/openvpn] # cp ~amelia/Downloads/candelatech.conf .
Starting and Stoping the VPN Connection
- In a terminal, cd to /etc/openvpn and start the connection as root:
$ cd /etc/openvpn
$ sudo openvpn candeltech.conf
Press Control-C in that window to stop the VPN connection.
Example Config File
client
dev tun1
proto udp
remote firewall.candelatech.com 1194
#remote firewall.candelatech.com 443
script-security 2
resolv-retry infinite
nobind
persist-key
persist-tun
verb 3
ca ca.crt
cert laptop-dell.2019-08-13.jreynolds.candelatech.com.crt
key laptop-dell.2019-08-13.jreynolds.candelatech.com.key
comp-lzo
cipher AES-256-CBC