OpenVPN


Client

Windows
  1. Download the installer via this website https://openvpn.net/community-downloads/. In my case, I downloaded Windows 64-bit MSI Installer.
  2. Download your .ovpn file. In your PC, create folder C:\Program Files\OpenVPN\config. Place your file in it.
  3. Click the installer and start installing. It should detect your config file.
  4. Once everything is done, back to your Desktop. You should see OpenVPN GUI. Or at right bottom corner, show hidden Icons and there should be an icon like a screen with a lock. Right click and connect.
Ubuntu
  1. Install Openvpn. sudo apt-get install openvpn
  2. Configure. sudo openvpn --config config.ovpn
  3. If the following errors occur, can do,
    1. openvpn unrecognized option or missing parameter : PARAM. Delete those tags within the .ovpn file.
    2. Cipher Alogrithm 'AES-256-GCM' Not Found (OpenVPN Error).
    3. 
      sudo curl -s https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add -
      sudo touch /etc/apt/sources.list.d/openvpn-aptrepo.list
      echo "deb http://build.openvpn.net/debian/openvpn/stable xenial main" > /etc/apt/sources.list.d/openvpn-aptrepo.list
      sudo apt update
      sudo apt install openvpn --upgrade
          
    4. Getting “Cannot ioctl TUNSETIFF tun: Operation not permitted” when trying to connect to OpenVPN. Just use root sudo.
  4. Now run sudo openvpn --config config.ovpn. Keep it running as background, and ssh in another command window. This is how ubuntu 16.04 should be done.
  5. In Ubuntu 18.04, you can press the connection icon on top right corner and turn on the vpn.

References


  1. github tienthanh2509/install-openvpn-24.sh
  2. stackoverflow -- Cipher Alogrithm 'AES-256-GCM' Not Found (OpenVPN Error)
  3. stackoverflow -- Getting “Cannot ioctl TUNSETIFF tun: Operation not permitted” when trying to connect to OpenVPN