Before You Begin
1. Update the system
- sudo apt-get update && sudo apt-get upgrade
2. Add the Pritunl APT repository and update the package list
-
echo “deb http://repo.mongodb.org/apt/ubuntu
trusty/mongodb-org/3.0 multiverse” >
/etc/apt/sources.list.d/mongodb-org-3.0.list -
echo “deb http://repo.pritunl.com/stable/apt
trusty main” >
/etc/apt/sources.list.d/pritunl.list
3. Add the repo keys
-
apt-key adv –keyserver hkp://keyserver.ubuntu.com
–recv 7F0CEB10 -
apt-key adv –keyserver hkp://keyserver.ubuntu.com
–recv CF8E292A
4. Update the package cache
- sudo apt-get update
5. If the server has a firewall configured, open the Pritunl-related ports
-
sudo iptables -A INPUT -p udp -m udp –sport 9700
–dport 1025:65355 -j ACCEPT -
sudo iptables -A INPUT -p tcp -m tcp –sport 9700
–dport 1025:65355 -j ACCEPT -
sudo iptables -A INPUT -p `your protocol here` -m `your
protocol here` –sport `your_port_here`
–dport 1025:65355 -j ACCEPT
Install Pritunl
1. Install Pritunl and its dependencies
-
sudo apt-get install python-software-properties pritunl
mongodb-org
2. Start the Pritunl service
- sudo service pritunl start
3. Open https://123.45.67.89:9700 in your browser, replacing 123.45.67.89 with your server IP, and you will see the following screen:

4. Connect to the server. The installer has already automatically filled in the database data. If everything looks fine, just click “Save”.
Configure Pritunl
1. Log in to Pritunl with the following account
Username: pritunl
Password: pritunl
2. The initial configuration is as follows:

Fill out the form and click “Save”
Note:
If you have not purchased a license, SMTP settings are not required.
If you want to purchase a license, click “Upgrade to
Premium“ in the upper-right corner and enter the license
3. Switch to the Users tab. Here you can create your organization and users. Click ”Add
Organization“ and enter a name, then click ”Add
Use“ to add the user to the organization.
4. Switch to the Servers tab and click ”Add server“. The screen is shown below:

5. Click ”Attach Organization“ to associate the organization with the server
Connect to the VPN Server
You can use clients compatible with OpenVPN. On Android or iOS, you can use the OpenVPN
Connect app. On Linux, you can use the officially provided client.
Two steps to obtain the client key
1.Next to your username, there is an Online/Offline indicator. Nearby are two buttons: one is the connect icon, and the other is the download icon.
2.The download icon is used to download the TAR file containing the key file