Professional Documents
Culture Documents
04
Modified on: Wed, Oct 7, 2015 at 7:00 pm EST
Networking Server Apps Ubuntu
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.
Requirements
Before we proceed, make sure that your server is updated. If not, then run the following commands.
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 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` -m `your protocol` --sport `your port` --dport 1025:65355 -j ACCEPT
9700 is the port that Pritunl server uses to load the web interface. 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.
Install Pritunl
Run the following command to open an editor, for which we will be adding a MongoDB apt source.
Press Ctrl+X, then Enter to save the file. Now load the editor again for the Pritunl source.
Again press Ctrl+X, then Enter to save it. Now add the public keys for the repositories.
Configure Pritunl
Now that the server is up and running, we need to setup and configure it for usage. Launch your web browser and visit
https://<serverip>:9700/. Replace <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 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.
https://www.vultr.com/docs/setup-a-vpn-server-with-pritunl-on-ubuntu