Install Pritunl VPN Server and Client on Ubuntu 20.04

In this guide, we want to show you to Install and Configure Pritunl VPN Server and Client on Ubuntu 20.04.

Pritunl VPN server is a free, open-source enterprise VPN server that anyone can use to set up a secure VPN tunnel across networks. It provides a simple and user-friendly web interface and has the ability to create a wide range of cloud VPN networks. It provides an official client package and supports all OpenVPN clients for most devices and platforms.

Steps To Install Pritunl VPN Server and Client on Ubuntu 20.04

To set up Pritunl VPN Server, you must log in to your server as a non-root user with sudo privileges. To do this, you can follow our guide on Initial Server Setup with Ubuntu 20.04.

Required Packages for Pritunl VPN Server

First, you need to update and upgrade your local package index with the command below:

# sudo apt update
# sudo apt upgrade -y

Then, use the following command to install the required packages:

sudo apt install gpg curl gnupg2 software-properties-common apt-transport-https lsb-release ca-certificates -y

At this point, you need to add the MongoDB and Pritunl VPN Server repositories on your Ubuntu 20.04. To do this, follow the steps below.

Add MongoDB GPG Key and Repository on Ubuntu 20.04

Import MongoDB APT repository keys to your system by using the following curl command:

curl -fsSL | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/mongodb-5.gpg

Next, use the command below to add the MongoDB repository:

echo "deb [ arch=amd64,arm64 ] $(lsb_release -cs)/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list

Add Pritunl GPG Key and Repository on Ubuntu 20.04

Now you need to use the command below to import the Pritunl GPG keys:

# sudo apt-key adv --keyserver hkp:// --recv 7AE645C0CF8E292A
gpg: key 7AE645C0CF8E292A: public key "Pritunl <[email protected]>" imported
gpg: Total number processed: 1
gpg:               imported: 1

Then, use the following command to add the Pritunl repository on Ubuntu 20.04:

echo "deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/pritunl.list

Install Pritunl and MongoDB on Ubuntu 20.04

At this point, you need to run the system update and install the Pritunl and mongo-server packages:

# sudo apt update 
# sudo apt install mongodb-org pritunl -y

Now use the commands below to start and enable the services:

# sudo systemctl start pritunl mongod
# sudo systemctl enable pritunl mongod

Configure and Access Pritunl VPN Server on Ubuntu 20.04

At this point, you can access your Pritunl VPN server web interface by typing your server’s IP address in your web browser:


You should see the following screen:

Pritunl VPN server
Pritunl database setup

You’ll need Setup Key to continue. To do this, run the command below in your terminal:

sudo pritunl setup-key

Enter your setup key and click Save. Then, you will see the Pritunl VPN Server sign-in screen on Ubuntu 20.04.

Pritunl sign-in screen Ubuntu 20.04
Pritunl sign-in screen

At this point, you need to run the command below to get your default username and password:

sudo pritunl default-password
Administrator default password:
  username: "pritunl"
  password: "KFYjHRQXKBmL"

Enter the username and password on the login screen and click Sign in. You will see the initial setup page where you can change the admin user and password, set the domain and Let’s Encrypt SSL. When you are done click Save or you can set it up later.

Pritunl Initial Setup
Initial Setup

At this point, you can configure the organizations, users, and servers from the Pritunl dashboard on Ubuntu 20.04.

Pritunl dashboard Ubuntu 20.04
Pritunl dashboard

Add Organizations To Pritunl

You can click on Users and add the VPN users. Users are mapped to servers in an organization.

Pritunl Users and Organizations
Users and Organizations

To create a new organization click on ‘Add organization’ then specify a name and ‘Add’.

Pritunl Add Organization
Add Organization

Add VPN Server To Pritunl

At this point, you can create a VPN server on Ubuntu 20.04 by clicking on ‘servers’ and then ‘Add server’.

Provide the server information required then click ‘Add’.

Pritunl Add Server Ubuntu 20.04
Add Server

Finally, you need to attach the server to an organization by clicking on ‘Attach organization’ and choosing your organization.

Pritunl Attach organization
Attach organization

Add Users To Pritunl

At this point, you can click on ‘Add user’ to create a user profile on your VPN server on Ubuntu 20.04. Enter the information that is needed and click Add.

Pritunl Add VPN User Ubuntu 20.04
Add User

Note: To add many users at once, use the ‘Bulk Add user’ function on the web interface.

Set up Pritunl VPN Client

At this point, you can visit the Pritunl VPN clients page and choose one for your client machine to download and install. The installation part is described on the official page. Here we have downloaded the Windows Client.

Pritunl Client
Pritunl Client

Once the VPN client has been installed, log in to the Pritunl VPN server to download the user profile. Click on ‘Users’ select the particular user and click on the download icon to get the user profile.

Pritunl Download User Profile
Download User Profile

Next, launch your Pritunl VPN client, then choose “Import Profile”.

Import Profile pritunl VPN User Ubuntu 20.04
Import Profile

Locate the user’s profile .tar file downloaded and import it or you can use the Client URL, then you’ll be able to connect to the Pritunl VPN server.

Import Client Profile
Import Client Profile
Pritunl VPN Client Ubuntu 20.04
Pritunl VPN Client

That’s it, you are done.


At this point, you have learned to Install and Configure Pritunl VPN Server and Client on Ubuntu 20.04.

Hope you enjoy using it. You may be like these articles too:

Reset Root Password on Ubuntu 20.04

Install OpenJDK 19 on Ubuntu 20.04

  1. Greate post. Keep postying such kinnd off information on yourr page.
    Im really impresed by your blog.
    Hi there, You’ve performed ann eccellent job.
    I’ll certainly digg it aand ppersonally recommend too myy
    friends. I am confident they’ll be benefited
    fropm this website.

  2. Nice post. I was checking this continuously this blog and I’m impressed!

    Handy information particularly the last part
    I care for such information. I have been looking for this particular info for a very long time.
    Thank you and best of luck.

  3. Magnificent website. A lot of helpful information here.

    I’m sending it to a feww pals ans additionally sharing inn delicious.
    And naturally, hanks in your effort!

  4. Hey there! I know this is somewhat off topic but I was wondering if you knew
    where I could find a captcha plugin for my comment form?
    I’m using the same blog platform as yours and I’m having difficulty finding one?
    Thanks a lot!


Please enter your comment!
Please enter your name here

Latest Articles


Most Popular