Once yum finishes, we'll make it so Pritunl and MongoDB run on startup: systemctl start mongod pritunlĪfter installing Pritunl, run the following: pritunl setup-key
Now, we'll run yum to install Pritunl: yum -y install pritunl mongodb-org We can now delete the temporary key: rm -f temp.tmp We've added all of the necessary packages and changed the necessary settings to install Pritunl.īefore we install, we need to add some keys (necessary for the repositories to function): gpg -keyserver hkp:// -recv-keys 7568D9BB55FF9E5287D586017AE645C0CF8E292A Only selected processes are protected.Ĭhange the SELINUX=enforcing line to SELINUX=disabled. # minimum - Modification of targeted policy.
# targeted - Targeted processes are protected, # SELINUXTYPE= can take one of three two values: # disabled - No SELinux policy is loaded. # permissive - SELinux prints warnings instead of enforcing. # enforcing - SELinux security policy is enforced. # SELINUX= can take one of these three values: It should say the following once opened: # This file controls the state of SELinux on the system. We'll need to disable SELinux before continuing: nano /etc/selinux/config
We now have all of the dependencies required. When the file loads in your text editor, paste the following: Ĭontinuing on, we need to install epel-release: yum -y install epel-release Now that we've added the repository for MongoDB (database software for Pritunl), we need to add the Pritunl repository. Once you do, simply press the "enter" key. Paste the following in: Įxit and save by pressing CTRL and O simultaneously. Once you've entered the file, it should be blank. The first thing we'll be doing is adding the MongoDB repository: nano /etc//mongodb-org-3.4.repo
We'll be using nano for this tutorial, but you may use vim, if you prefer. It is similar to apt-get, so don't worry if this is your first time. Yum is essentially the package manager for CentOS and RHEL systems. In order to install Pritunl, we'll need to add the necessary repositories to yum. A minimum of 512 MB of RAM, or the lowest plan.Root access (determine whether you are root by executing the following command: whoami).
Sudo apt-get update & sudo apt-get -assume-yes install pritunl mongodb-org wireguardĮxport MONGO_PASSWORD= $( < /dev/urandom tr -dc _A-Za-z0-9 | head -c $) ' | tee | mongoĮcho -e '\nsecurity:\n authorization: enabled\n ' | sudo tee -a /etc/mongod.Pritunl is an open source management interface for OpenVPN. Sudo tee /etc/apt//mongodb-org-4.2.list << EOF