

This will prevent any connection issues in case of high load. Run the following commands to increase the open file limit on the server. $ gpg -armor -export 7568D9BB55FF9E5287D586017AE645C0CF8E292A > key.tmp sudo rpm -import key.tmp rm -f key.tmpĮnable and start the Pritunl service.
#Pritunl setup install
Install Epel repository first which is required by Pritunl.Īdd and Import the GPG keys needed for Pritunl. Save the file by pressing Ctrl + X and entering Y when prompted once finished. Create and open the file /etc//pritunl.repo for editing. The first step is to create the official repository for Pritunl. If your server is running on older hardware, you should opt for an older version of MongoDB or switch to a newer server.Ĭreate and open the file /etc//mongodb-org-5.0.repo for editing. Note: MongoDB 5.0 only works on newer processors. Rocky Linux doesn’t ship with MongoDB, so we need to use MongoDB’s official repository. Pritunl is built on MongoDB Database, so first, we need to install that. Reload the firewall to enable the changes. Services: cockpit dhcpv6-client http https ssh $ sudo firewall-cmd -permanent -add-service=https $ sudo firewall-cmd -permanent -add-service=http $ sudo firewall-cmd -permanent -list-services List all the services and ports active on the firewall. The firewall works with different zones and the public zone is the default one, which we will use. This indicates it is up and running successfully.
#Pritunl setup how to
We will also explore how to connect to the VPN using a Linux Client.Ī system running Rocky Linux 8 for hosting Pritunl server.Ī system running Rocky Linux 8 as a client. This tutorial will teach you about how to install the Pritunl VPN server on Rocky Linux 8. Pritunl is built on MongoDB, a reliable and scalable database that can be quickly deployed and with built-in support for replication, making deploying the Pritunl cluster easy. All the traffic between clients and the server is encrypted. It comes with an easy to use GUI interface and supports clients on most devices and platforms. It gives the user a choice to use OpenVPN and Wireguard protocols. Test your connection either by utilising your DEs connection method or my using the tool that Pritunl provide.Pritunl is an open-source VPN and IPsec server with user management and horizontal scaling for small and large organizations. This has the OpenVPN connection plugin baked into the network manager. Access the web interface by the IP or DNS record.Ĭonfigure your first server and assign the organisation you just created.ĭownload your OpenVPN profile, this can be used to import the required settings on your mobile device/desktop.Run through the installation commands documented here (bionic).Access the VM via SSH by either the public IP address or the DNS record you configured earlier.Basically, if you do not enable IP forwarding you will not be able to access anything on the internet whilst the VPN connection is active. This allows the VM NIC to send network traffic with a different source IP address than the one assigned to one of a network interface's IP configurations. You can utilise a static IP (and incure a small cost) or a dynamic IP with a DNS record.Ĭonfigure IP forwarding. I am also using Ubuntu server 18.04 Long Term Support as my OS. Step One.Ĭonfigure a virtual machine utilising what ever region and sizing you want (im utilising a Standard B1s VM with 1 vCPU and 1 GiB of memory). As well as it being secure I also wanted to be able to egress from a location different from my own for surcumventing any country wide blocking and bypass any restrictions.

How do I set it up?ĭue to the intended use, I wanted to have the ability to access the internet via a reliable data center connection. Pritunl is a self hostable open source OpenVPN server which in this use case is utilised as a secure method of accessing the internet when utilising public connections.
