{"id":593,"date":"2022-09-24T20:03:59","date_gmt":"2022-09-24T18:03:59","guid":{"rendered":"https:\/\/ayoubi.de\/?p=593"},"modified":"2022-09-25T11:51:35","modified_gmt":"2022-09-25T09:51:35","slug":"how-to-install-and-configure-pritunl-server","status":"publish","type":"post","link":"https:\/\/ayoubi.de\/de\/technology\/how-to-install-and-configure-pritunl-server\/","title":{"rendered":"How to Install and configure Pritunl server"},"content":{"rendered":"<section class=\"fw-main-row\"  >\n\t<div class=\"fw-container\">\n\t\t<div class=\"row\">\n\t\r\n\r\n<div class=\"col-xs-12 col-sm-12\">\r\n    <div id=\"col_inner_c0ca64b4084ff8d429f089b75c659d48\" class=\"fw-col-inner\" data-paddings=\"0px 0px 0px 0px\">\r\n    \t\n<div class=\"block-title\">\n    <h2>About Pritunl<\/h2>\n<\/div>\n<p>Pritunl is a free and open source cross platform OpenVPN and WireGuard client.<\/p><p>Installing Pritunl requires only a MongoDB database and no registration is needed to use the free version of Pritunl.<\/p><p><strong>Features of Pritunl VPN<\/strong><br \/>Below are the most notable features of Pritunl VPN that makes it an option for many:<\/p><ul><li>Simple to install and configure<\/li><li>Supports multi-cloud VPN peering<\/li><li>Offers upto five layers of authentication making it more secure.<\/li><li>Supports Wireguard, giving clients theoption to connect with openvpn or Wireguard<\/li><li>Quickly and easily scale to thousands of users, having high availability in the cloud environment without the need for expensive proprietary hardware<\/li><li>supports all OpenVPN clients with official clients for most devices and platforms.<\/li><li>Create multi-cloud site-to-site links with VPC peering. VPC peering available for AWS, Google Cloud, Azure and Oracle Cloud.<\/li><li>Interconnect AWS VPC networks across AWS regions and provide reliable remote access with automatic failover that can scale horizontally<\/li><li>Pritunl is built on MongoDB, a reliable and scalable database that can be quickly deployed<\/li><\/ul>\n<div class=\"block-title\">\n    <h2>Installing Pritunl on Ubuntu 20.04<\/h2>\n<\/div>\n<p><strong>Step 1: Update your system<\/strong><\/p><p>Update and upgrade your system before beginning installation<\/p><pre><code>sudo apt update &amp;&amp; sudo apt -y full-upgrade<\/code><\/pre><p><strong>Step 2: Create installation script<\/strong><\/p><ul><li>Create a bash file<\/li><\/ul><pre><code>nano install-pritunl.sh<\/code><\/pre><ul><li>Copy and paste the code below into the file:<\/li><\/ul><pre><code>#!\/bin\/bash<br \/>\nsudo tee \/etc\/apt\/sources.list.d\/pritunl.list &lt;&lt; EOF<br \/>\ndeb http:\/\/repo.pritunl.com\/stable\/apt focal main<br \/>\nEOF<br \/>\n# Import signing key from keyserver<br \/>\nsudo apt-key adv --keyserver hkp:\/\/keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A<br \/>\n# Alternative import from download if keyserver offline<br \/>\ncurl https:\/\/raw.githubusercontent.com\/pritunl\/pgp\/master\/pritunl_repo_pub.asc | sudo apt-key add -<br \/>\nsudo tee \/etc\/apt\/sources.list.d\/mongodb-org-5.0.list &lt;&lt; EOF<br \/>\ndeb https:\/\/repo.mongodb.org\/apt\/ubuntu focal\/mongodb-org\/5.0 multiverse<br \/>\nEOF<br \/>\nwget -qO - https:\/\/www.mongodb.org\/static\/pgp\/server-5.0.asc | sudo apt-key add -<br \/>\nsudo apt update<br \/>\n# WireGuard server support<br \/>\nsudo apt -y install wireguard wireguard-tools<br \/>\nsudo ufw disable<br \/>\nsudo apt -y install pritunl mongodb-org<br \/>\nsudo systemctl enable mongod pritunl<br \/>\nsudo systemctl start mongod pritunl<\/p>\n<p><\/code><\/pre><ul><li>Close the editor with Ctrl+X and save it with Y<\/li><li>Make the file executable:<\/li><\/ul><pre><code>chmod +x install-pritunl.sh<\/code><\/pre><p><strong>Step 3: Install Pritunl and MongoDB<\/strong><\/p><ul><li>Run the script<\/li><\/ul><pre><code>.\/install-pritunl.sh<\/code><\/pre><p><strong>Step 4: Configure Pritunl on Ubuntu 20.04<\/strong><\/p><p>Pritunl VPN is installed and running. Access it from the browser using your server IP to configure it.<\/p><p><img decoding=\"async\" class=\"alignnone wp-image-631 size-full\" src=\"https:\/\/ayoubi.de\/wp-content\/uploads\/2022\/09\/pritunl1.jpg\" alt=\"How to Install and configure Pritunl server\" width=\"515\" height=\"573\" srcset=\"https:\/\/ayoubi.de\/wp-content\/uploads\/2022\/09\/pritunl1.jpg 515w, https:\/\/ayoubi.de\/wp-content\/uploads\/2022\/09\/pritunl1-270x300.jpg 270w, https:\/\/ayoubi.de\/wp-content\/uploads\/2022\/09\/pritunl1-11x12.jpg 11w\" sizes=\"(max-width: 515px) 100vw, 515px\" \/><\/p><ul><li>Generate setup-key<\/li><\/ul><pre><code>sudo pritunl setup-key<\/code><\/pre><p>Once you enter the setup-key and mongodb url, it will prompt you for username and password.<\/p><p><img decoding=\"async\" class=\"alignnone wp-image-632 size-full\" src=\"https:\/\/ayoubi.de\/wp-content\/uploads\/2022\/09\/pritunl2.jpg\" alt=\"\" width=\"392\" height=\"368\" srcset=\"https:\/\/ayoubi.de\/wp-content\/uploads\/2022\/09\/pritunl2.jpg 392w, https:\/\/ayoubi.de\/wp-content\/uploads\/2022\/09\/pritunl2-300x282.jpg 300w, https:\/\/ayoubi.de\/wp-content\/uploads\/2022\/09\/pritunl2-13x12.jpg 13w\" sizes=\"(max-width: 392px) 100vw, 392px\" \/><\/p><ul><li>Get the default username and password with the below command:<\/li><\/ul><pre><code>sudo pritunl default-password<\/code><\/pre><ul><li>Login with the provided credentials<\/li><\/ul><p><img decoding=\"async\" class=\"alignnone wp-image-633 size-full\" src=\"https:\/\/ayoubi.de\/wp-content\/uploads\/2022\/09\/pritunl3.jpg\" alt=\"How to Install and configure Pritunl server\" width=\"607\" height=\"432\" srcset=\"https:\/\/ayoubi.de\/wp-content\/uploads\/2022\/09\/pritunl3.jpg 607w, https:\/\/ayoubi.de\/wp-content\/uploads\/2022\/09\/pritunl3-300x214.jpg 300w, https:\/\/ayoubi.de\/wp-content\/uploads\/2022\/09\/pritunl3-18x12.jpg 18w\" sizes=\"(max-width: 607px) 100vw, 607px\" \/><\/p><ul><li>Set your new username and password, put your desired domain instead of IP(optional) and save and you should be taken to a page to configure organizations, users and servers.<\/li><li>To add users, click on \u2018Users\u2019. This takes you to a window to first add organization.<\/li><li>Click on \u2018Add organization\u2019 then provide it a name then click \u2018Add\u2019.<\/li><li>Click on \u2018Add user\u2019 to create a user. Provide the required details and click \u2018Add\u2019.<\/li><li>Click on \u2018servers\u2019 then \u2018Add server\u2019<\/li><\/ul><p><img decoding=\"async\" class=\"alignnone size-full wp-image-637\" src=\"https:\/\/ayoubi.de\/wp-content\/uploads\/2022\/09\/pritunl4.jpg\" alt=\"How to Install and configure Pritunl server\" width=\"610\" height=\"948\" srcset=\"https:\/\/ayoubi.de\/wp-content\/uploads\/2022\/09\/pritunl4.jpg 610w, https:\/\/ayoubi.de\/wp-content\/uploads\/2022\/09\/pritunl4-193x300.jpg 193w, https:\/\/ayoubi.de\/wp-content\/uploads\/2022\/09\/pritunl4-8x12.jpg 8w\" sizes=\"(max-width: 610px) 100vw, 610px\" \/><\/p><ul><li>Provide server particulars and click \u2018Add\u2019. You should see that the server has successfully been added<\/li><li>Remember to attach the server to an organization by clicking on \u2018Attach organization\u2019 and choosing your organization.<\/li><li>Start the server<\/li><\/ul><p><strong>Step 4: Download and install Pritunl client<\/strong><\/p><ul><li>Download and install the client from the links below<br \/><a href=\"https:\/\/client.pritunl.com\">https:\/\/client.pritunl.com<\/a><\/li><li>For Android and iOS, get OpenVPN app from Play Store or App Store<br \/>Android: <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=net.openvpn.openvpn&amp;hl=en&amp;gl=US\">https:\/\/play.google.com\/store\/apps\/details?id=net.openvpn.openvpn&amp;hl=en&amp;gl=US<\/a><br \/>iOS: <a href=\"https:\/\/apps.apple.com\/us\/app\/openvpn-connect\/id590379981\">https:\/\/apps.apple.com\/us\/app\/openvpn-connect\/id590379981<\/a><\/li><li>Download the profile for each user from the panel and import it in the client app.<\/li><\/ul><p>You can find instructions for other Linux distributions or Cloud providers at the link below:<\/p><p><a href=\"https:\/\/docs.pritunl.com\/docs\/installation\">https:\/\/docs.pritunl.com\/docs\/installation<\/a><\/p>\t<\/div>\r\n<\/div>\r\n<\/div>\n\n\t<\/div>\n<\/section>","protected":false},"excerpt":{"rendered":"<p>Pritunl VPN with WireGuard and OpenVPN<\/p>","protected":false},"author":1,"featured_media":624,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35,36],"tags":[39,42,46,41,44,40,45,38,37,43],"class_list":["post-593","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","category-tutorial","tag-aws","tag-azure","tag-cloud","tag-linode","tag-openvpn","tag-oracle","tag-ovpn","tag-pritunl","tag-vpn","tag-wireguard"],"_links":{"self":[{"href":"https:\/\/ayoubi.de\/de\/wp-json\/wp\/v2\/posts\/593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ayoubi.de\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ayoubi.de\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ayoubi.de\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ayoubi.de\/de\/wp-json\/wp\/v2\/comments?post=593"}],"version-history":[{"count":43,"href":"https:\/\/ayoubi.de\/de\/wp-json\/wp\/v2\/posts\/593\/revisions"}],"predecessor-version":[{"id":646,"href":"https:\/\/ayoubi.de\/de\/wp-json\/wp\/v2\/posts\/593\/revisions\/646"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ayoubi.de\/de\/wp-json\/wp\/v2\/media\/624"}],"wp:attachment":[{"href":"https:\/\/ayoubi.de\/de\/wp-json\/wp\/v2\/media?parent=593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ayoubi.de\/de\/wp-json\/wp\/v2\/categories?post=593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ayoubi.de\/de\/wp-json\/wp\/v2\/tags?post=593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}