How to Setup OpenVPN on Kali Linux

Jun 04, 2020
May 06, 2021
Download PDF

This guide will walk you through setting up OpenVPN on Kali Linux.

Before beginning to set up OpenVPN on a device running on Kali, you need to make sure you have a premium PureVPN account and the required OpenVPN configuration files.

1 The OpenVPN configuration files can be obtained by clicking here. Use your preferred browser to download the ovpn zip file.

You will get a prompt asking what to do with the ZIP archive, select “Save File” and click “OK”. It should be downloaded to your “Downloads” directory.

OpenVPN configuration files Download

2 Go to your “Downloads” directory, right click the ZIP archive and select “Extract Here” to extract the files.

Extract OpenVPN configuration file

3 Now go to the ‘Menu’ option and search and open the ‘Terminal Emulator’

Terminal Emulator on Kali Linux

4 Now you need to install OpenVPN packages. Type the following commands one by one:

sudo apt-get update

sudo apt-get install network-manager-openvpn

sudo apt-get install network-manager network-manager-gnome network-manager-openvpn-gnome

5 Select the following options:

  • Click on “Ethernet Network Connection“
  • Go to “VPN Connections”
  • Select “Add a VPN Connection…”

Select Add a VPN Connection on Kali Linux

6 Select ‘Import a saved VPN configuration’ option. Click on the “Create” button.

Choose a VPN connection type Kali linux

7 Go to the Downloads directory, select the folder containing OpenVPN files i.e. ‘New OpenVPN Files’. Select the desired file with “.ovpn” extension. Click “Open” button.

New OpenVPN Files

8 Now enter the details as mentioned below:

Insert Connection name: PureVPN (Here we use PureVPN, you can change it any other name)

  • Select Type: Password from drop down menu
  • Insert Username provided by PureVPN
  • Insert Password provided by PureVPN
  • Click on folder icon from Certificate folder and add the ‘ca.crt.crt’ file.
  • Click on ‘Save’

Editing VPN details Kali Linux

9 Now go to the “Ethernet Network Connections” option and under “VPN Connections” click/check on the newly created “PureVPN” connection to activate VPN.

VPN Connections Kali Linux

10 You are now connected to PureVPN!


How helpful did you find this answer?

Comments (0 )