1. Update
sudo apt-get update -y

 

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

 

3. Download your profile file (.ovpn) from vpnki.ru 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
ping 172.16.0.1

 

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:

userXXX

<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:

ifconfig

you should see interface named tun0, let's ping

ping 172.16.0.1