Pritunl is VPN server software that is built on the OpenVPN protocol. This guide will show you how to setup the software and get it running on your Vultr VPS. It is written for Ubuntu 14.04 users.
Before we proceed, make sure that your server is updated. If not, then run the following commands.
sudo apt-get update && sudo apt-get upgrade
If you have setup a firewall on your server, make sure the port and protocol we would be using for Pritunl is exempted.
sudo iptables -A INPUT -p udp -m udp --sport 443 --dport 1025:65355 -j ACCEPT sudo iptables -A INPUT -p tcp -m tcp --sport 443 --dport 1025:65355 -j ACCEPT sudo iptables -A INPUT -p `your protocol` -m `your protocol` --sport `your port` --dport 1025:65355 -j ACCEPT
443 is the port that Pritunl server uses to load the web interface. Older versions used port 9700. You should enter "udp" as your protocol and any port number of your choice above. The method and commands can differ according to the firewall you are running.
Run the following command to open an editor, for which we will be adding a MongoDB apt source.
sudo nano /etc/apt/sources.list.d/mongodb-org-3.0.list
Add the following line to that file.
deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse
Press Ctrl+X, then Enter to save the file. Now load the editor again for the Pritunl source.
sudo nano /etc/apt/sources.list.d/pritunl.list
Add the following line in it.
deb http://repo.pritunl.com/stable/apt trusty main
Again press Ctrl+X, then Enter to save it. Now add the public keys for the repositories.
apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7F0CEB10 apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv CF8E292A
Now to reload the sources.
sudo apt-get update
Install the packages and start the Pritunl server.
sudo apt-get install pritunl mongodb-org sudo service pritunl start
Now that the server is up and running, we need to setup and configure it for usage. Launch your web browser and visit
<serverip> accordingly. You don't need to install any SSL certificates to access that site. Your browser will ask you to accept a self-signed certificate generated by Pritunl. It is safe to accept. Once you do that, you will be greeted a screen similar to the following.
It will list a default MongoDB URI. Just press "Save" and move ahead. If you don't want Pritunl to use the MongoDB server on your VPS, you can provide a different URI now. One alternative would be to use [Mongolab].
You will then be asked to login using the default username and password. Enter pritunl for both fields.
After that, proceed with the initial setup.
Change your default password and ignore the SMTP fields unless you have purchased a Pritunl license, in which case you need to fill out those fields as well.
After completing this step, go to the Users tab. To connect to Pritunl, you would need to create an organization and a user. So add an organization first, then add a user to the newly created organization.
Now go to the Servers tab and click on _Add a server_. You will see a screen similar to the following image.
Enter a name for your server. Use the protocol and port you selected earlier while configuring your firewall. Both values should be the same for the server to work. Now click "Add" and proceed. Now click on Attach Organization to attach this server to the organization created earlier. Once this is done, click on _Start Server_.
This completes the configuration of your Pritunl VPN server.
You can connect to the server using any OpenVPN compatible software. Pritunl comes with its [own clients] for Linux, Windows, and Mac. You can use any of them.
Finally, to get the configuration files for your OpenVPN client, go to the Users tab and select the link button to the right of the user. You will be given a link to download the configuration file.
Link - 淘实惠-使用采购网站
This article was created by DieDie
This work is licensed under a Creative Commons Attribution 4.0 International License.
This article source Setup a VPN server with Pritunl on Ubuntu 14.04
Last Modified Mar 14, 2019 at 12:56 am