for VPNKI with OpenVPN protocol

1. Update
sudo apt-get update -y


2. Install openvpn
sudo apt-get install -y openvpn


3. Download your profile file (.ovpn) from via browser


4. Rename this file to vpnki.conf and put this file in /etc/openvpn/


5. Try to connect

sudo openvpn vpnki.conf

enter username and password when prompted


6. Ping VPNKI router


7. Disconnect connection (all connections)

sudo killall openvpn


8. Let's start openvpn connection on boot. Make a new file (vpnki_login) with your username and password in /etc/openvpn/
sudo nano /etc/openvpn/vpnki_login

and put there only two lines:


<password for userXXX>

Save Ctrl+X


9. Add link to this file in conf file. Open vpnki.conf with

sudo nano /etc/openvpn/vpnki.conf

Add this line just before <ca> tag:

auth-user-pass /etc/openvpn/vpnki_login

Save Ctrl+X


10. Let's start openvpn on boot. Open this file

sudo nano /etc/defaut/openvpn

and Uncomment the AUTOSTART="all"

Save Ctrl+X


11. Reboot your system. Check that connection is up after reboot:


you should see interface named tun0, let's ping