Guide – How To Start – Pritunl – Self-hosted VPN Server on Ubuntu 20.04 on Amazon

Pritunl is designed to have high availability with redundant systems that have automatic failover when an instance fails. All servers are equal with no master server and can run independently in the event of other instances failing. Quickly scale to thousands of users with high availability in a cloud environment without the need for expensive proprietary hardware. 

This is a quick deployment and ready-to-run image.
Simple and rapid installation. Easy to maintain.

The guide on how to work with the Pritunl – Self-hosted VPN Server on Ubuntu 20.04

In case you have NSG’s or Firewall appliances in AWS Marketplace you’ll have to open access to the next ports: 22,443 (TCP)  и 14724(UDP)

In order to open the ports, go to the Virtual machine’s settings in AWS Marketplace – open Networking and add the necessary ports.

To connect to the Server, you should generate a “Private Key” in advance. This can be done using the following instruction (by choosing the “file format:” option “.ppk” in point 3)

Guide – How To – Create and use Key Pair to connect to a VM


To work with the server, you should connect to it via PuTTY

  1. Download and run Putty
  2. Go to section SSH on the left panel, and then in Auth
  1. In the “Auth” section, click “Browse” and specify the path to the .ppk file you received earlier.
  2. Go to the home page of “Session”, enter the IP address of the VM and click “Open”.
  1. In the opened console you will need to enter the login ubuntu.
  2. Enter > sudo pritunl setup-key and copy the key.
  3. To access the admin panel, you need to enter in the address bar https://yourVM’sIP.
  4. Now you need to accept the security certificate.
  5. Paste the previously copied “Setup Key” into the corresponding field. Leave the second field unchanged.
  1. Re-accept the certificate if you see the message again “Your connection is not private”.
  2. To find out the login and password, enter in the PuTTY’s terminal the command: 

> sudo pritunl default-password

  1. Insert your username and password into the appropriate fields.
  1. Sign in to proceed to the Initial Setup screen. Enter the domain you have registered for your VPN site in the Lets Encrypt domain text field. If you want to change your password, you can enter a new password. You can also change your username here. Press Save to continue.
  1. Go to the Users tab. To connect to the VPN, you would need to create an organization and a user. Click on Add Organization first. Once you have created that, Add a user to that organization by clicking on Add User.
  1. It is time to create a server to which your users can connect. Go to the Servers tab and click on Add a Server.

Choose a name for your server. Select the Protocol UDP and the Port (In our case the port is 14724. You can, of course, use whatever port you had added to your firewall.)

  1.  The next step is to attach the server we just created to our Organization. Click Attach Organization to do that.
  1. To start the server, it remains only to click “Start Server”.
  1. To download the connection key, select the “Users” item and the button to download the profile.
  2. The downloaded archive must be unpacked on the PC where the connection will be made (OpenVPN must be installed on the PC)/

If you don’t have OpenVPN installed you can download it here

  1. Run OpenVPN GUI.
  2. Click on the “Show hidden icons” and right mouse button on the OpenVPN GUI.
  1. Go to the “Settings – Advanced” and in the “Configuration Files – Folder” specify the path to the file that you unpacked from the archive and click “OK”.
  1. Right click on OpenVPN GUI again, hover over the connection that appears and click “Connect”.

Software is free

License:

https://github.com/pritunl/pritunl/blob/master/LICENSE

You pay for pre-configured VM and configuration.

If you do not agree with any condition – please do not use the product.

Website Built with WordPress.com.

Up ↑

<span>%d</span> bloggers like this: