{"id":148,"date":"2022-03-07T19:15:30","date_gmt":"2022-03-07T19:15:30","guid":{"rendered":"https:\/\/yohost.org\/library\/?p=148"},"modified":"2024-09-18T17:02:24","modified_gmt":"2024-09-18T17:02:24","slug":"running-a-private-vpn-server-on-ubuntu-linux","status":"publish","type":"post","link":"https:\/\/yohost.org\/library\/running-a-private-vpn-server-on-ubuntu-linux\/","title":{"rendered":"Running a Private VPN server on Ubuntu Linux"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Problem<\/strong>: Often public VPN services become a victim of hackers attacks &#8211; NordVPN, SuperVPN, LimeVPN were hacked and various data leaked.<br><strong>Solution:<\/strong> Running a private VPN server for your own use almost nullify risk of hackers attacks because it stays under the radar. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For the convenience of use, this article is divided into 4 chapters.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-content\">Content<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#pre\">Prerequisites<\/a><\/li>\n\n\n\n<li><a href=\"#install\">Installation<\/a><\/li>\n\n\n\n<li><a href=\"#conf\">Configuration<\/a><\/li>\n\n\n\n<li><a href=\"#connect\">Connect<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-prerequisites\"><a href=\"#pre\">Prerequisites<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"pre\"><strong>Server:<\/strong> <a href=\"https:\/\/yohost.org\/cloud-servers\/\" target=\"_blank\" rel=\"noreferrer noopener\">VPS with at least 1Gb RAM<\/a><br><strong>OS:<\/strong> Ubuntu 20.04 LTS<br><strong>VPN server software<\/strong>: Pritunl OpenVPN (<a href=\"https:\/\/docs.pritunl.com\/docs\/repo\" target=\"_blank\" rel=\"noreferrer noopener\">repositories<\/a>)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We will be running Pritunl server on the LUKS encrypted Ubuntu setup to maximize security. You can read <a href=\"https:\/\/yohost.org\/library\/aes-256-encrypted-ubuntu-setup-with-luks\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>, how to setup it or you can use regular Ubuntu 20.04 LTS without encryption.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-installation\"><a href=\"#install\">Installation<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"install\">We perform this installation under regular Ubuntu user (not <strong>root<\/strong>). As a result, we use <strong>sudo<\/strong> before every command. If you are using <strong>root<\/strong> access for your installation, you will run below commands without <strong>sudo<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Adding repository and keys<\/strong><\/p>\n\n\n\r\n<div class=\"align wp-block-tcb-tabs\" id='tcbTabbedContent-3' data-attributes='{&quot;tabs&quot;:[{&quot;clientId&quot;:&quot;0dcbafb2-8d5b-4f80-92ba-be64a551fd2e&quot;,&quot;title&quot;:&quot;ubuntu 20.04&quot;,&quot;icon&quot;:{&quot;class&quot;:&quot;fa-solid fa-angle-down&quot;}},{&quot;clientId&quot;:&quot;dda93f25-5bab-4ad0-959c-1fc60c02048d&quot;,&quot;title&quot;:&quot;ubuntu 22.04&quot;,&quot;icon&quot;:{&quot;class&quot;:&quot;fa-solid fa-angle-down&quot;}}],&quot;tabColors&quot;:{&quot;color&quot;:&quot;#333&quot;,&quot;bgType&quot;:&quot;solid&quot;,&quot;gradient&quot;:&quot;linear-gradient(to right, #f3fbed, #f1f9eb, #f0f7e9, #e4eedc, #dbeccd)&quot;,&quot;bg&quot;:&quot;rgba(0, 0, 0, 0.09)&quot;},&quot;tabActiveColors&quot;:{&quot;color&quot;:&quot;#fff&quot;,&quot;bgType&quot;:&quot;solid&quot;,&quot;gradient&quot;:&quot;linear-gradient(90deg, #019447 0%, #10d56d 100%)&quot;,&quot;bg&quot;:&quot;rgba(164, 164, 164, 1)&quot;},&quot;titleTypo&quot;:{&quot;fontSize&quot;:{&quot;desktop&quot;:12},&quot;textTransform&quot;:&quot;uppercase&quot;,&quot;lineHeight&quot;:&quot;100%&quot;,&quot;letterSpace&quot;:&quot;1px&quot;},&quot;icon&quot;:{&quot;size&quot;:&quot;20px&quot;,&quot;color&quot;:&quot;#000&quot;,&quot;activeColor&quot;:&quot;#fff&quot;},&quot;contentBG&quot;:{&quot;gradient&quot;:&quot;-webkit-linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(232,243,214,1) 0%, rgba(242,246,203,1) 39%, rgba(242,246,202,1) 70%, rgba(252,249,190,1) 90%)&quot;,&quot;type&quot;:&quot;solid&quot;,&quot;color&quot;:&quot;#000000b3&quot;},&quot;lock&quot;:{&quot;move&quot;:false,&quot;remove&quot;:false},&quot;align&quot;:&quot;&quot;,&quot;options&quot;:{&quot;theme&quot;:&quot;default&quot;},&quot;elements&quot;:{&quot;icon&quot;:true,&quot;title&quot;:true,&quot;isTabBG&quot;:false},&quot;TabbedPadding&quot;:{&quot;top&quot;:&quot;10px&quot;,&quot;right&quot;:&quot;10px&quot;,&quot;bottom&quot;:&quot;10px&quot;,&quot;left&quot;:&quot;10px&quot;},&quot;tabsPadding&quot;:{&quot;top&quot;:&quot;0px&quot;,&quot;right&quot;:&quot;0px&quot;,&quot;bottom&quot;:&quot;0px&quot;,&quot;left&quot;:&quot;0px&quot;},&quot;tabBorder&quot;:{&quot;active&quot;:{&quot;width&quot;:0,&quot;color&quot;:&quot;#000&quot;,&quot;style&quot;:&quot;solid&quot;},&quot;normal&quot;:{&quot;width&quot;:0,&quot;color&quot;:&quot;#000&quot;,&quot;style&quot;:&quot;solid&quot;}},&quot;borderHeight&quot;:{&quot;height&quot;:&quot;3px&quot;},&quot;tabbedBG&quot;:{&quot;color&quot;:&quot;#FFF1F3&quot;,&quot;type&quot;:&quot;solid&quot;},&quot;borderBG&quot;:{&quot;gradient&quot;:&quot;linear-gradient(to right, rgba(157, 71, 240, 1), rgba(71, 240, 240, 0.8))&quot;,&quot;type&quot;:&quot;gradient&quot;},&quot;tabMenuBorder&quot;:{&quot;width&quot;:&quot;1px&quot;,&quot;menuBColor&quot;:&quot;#ccc&quot;}}' data-ispremium=''>\r\n\r\n\t\r\n\t<style>\r\n\t\t#tcbTabbedContent-3 .tabMenu .tabLabel{ font-weight: 400;font-size: 12;font-style: normal;text-transform: uppercase;text-decoration: auto;line-height: 100%;letter-spacing: 1px; } @media (max-width: 768px) { #tcbTabbedContent-3 .tabMenu .tabLabel{ font-size: 12px; } } @media (max-width: 576px) { #tcbTabbedContent-3 .tabMenu .tabLabel{ font-size: 12px; } }\r\n\r\n\t#tcbTabbedContent-3 .tabMenu {\r\n\t\tpadding: 0px 0px 0px 0px;\r\n\t}\r\n\t\r\n\t#tcbTabbedContent-3 .tabMenu .tabLabel {\r\n\t\tfont-size: 12;\r\n\t}\r\n\t\r\n\t@media (max-width: 1024px) {\r\n\t\t#tcbTabbedContent-3 .tabMenu .tabLabel {\r\n\t\t\tfont-size: 12;\r\n\t\t}\r\n\t}\r\n\r\n\t@media (max-width: 767px) {\r\n\t\t#tcbTabbedContent-3 .tabMenu .tabLabel {\r\n\t\t\tfont-size: 12;\r\n\t\t}\r\n\t}\r\n\t\r\n\t#tcbTabbedContent-3 .tabMenu li{\r\n\t\tcolor: #333;background: rgba(0, 0, 0, 0.09);\r\n\t}\r\n\t#tcbTabbedContent-3 .tabMenu li.active {\r\n\t\tcolor: #fff;background: rgba(164, 164, 164, 1);border: 0 solid #000;\r\n\t}\r\n\t#tcbTabbedContent-3 .tabMenu li .menuIcon i{\r\n\t\tfont-size: 20px;\r\n\t\tcolor: #000;\r\n\t}\r\n\t#tcbTabbedContent-3 .tabMenu li.active .menuIcon i{\r\n\t\tcolor: #fff;\r\n\t}\r\n\t#tcbTabbedContent-3 .tabContent {background: #000000b3;\r\n\t}\r\n\t<\/style>\r\n\r\n\t<!-- \u2705 Wrapper (important for overlay) -->\r\n\t<div class=\"tcbThemeWrapper\">\r\n\r\n\t\t<!-- \u2705 ALWAYS SHOW THEME -->\r\n\t\t<div class='tcbTabContent default'>\r\n\t\t\t<ul class='tabMenu' id='tabMenu-tcbTabbedContent-3'>\r\n\t\t\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t<style>\r\n\t\t\t\t\t\t\t#tcbTabbedContent-3 #tabMenu-tcbTabbedContent-3 &gt; li .menuIcon i{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\t\t\t\t\t\t<\/style>\r\n\r\n\t\t\t\t\t\t<span class=\"menuIcon show \"><i class=\"fa-solid fa-angle-down\"><\/i><\/span>\r\n\t\t\t\t\t\t<span class='tabLabel show'>\r\n\t\t\t\t\t\t\tubuntu 20.04\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t<\/li>\r\n\t\t\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t<style>\r\n\t\t\t\t\t\t\t#tcbTabbedContent-3 #tabMenu-tcbTabbedContent-3 &gt; li .menuIcon i{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\t\t\t\t\t\t<\/style>\r\n\r\n\t\t\t\t\t\t<span class=\"menuIcon show \"><i class=\"fa-solid fa-angle-down\"><\/i><\/span>\r\n\t\t\t\t\t\t<span class='tabLabel show'>\r\n\t\t\t\t\t\t\tubuntu 22.04\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t<\/li>\r\n\t\t\t\t\t\t\t<\/ul>\r\n\r\n\t\t\t<div class='tabContent' id='tabContent-tcbTabbedContent-3'>\r\n\t\t\t\t\n\r\n<div class=\"wp-block-tcb-tab\" id=\"tcbTabContentTab-1\">\r\n\t\n\n<h3 class=\"wp-block-heading\" style=\"font-size:28px\">Ubuntu 20.04<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:15px\">sudo tee \/etc\/apt\/sources.list.d\/pritunl.list &lt;&lt; EOF<br>deb http:\/\/repo.pritunl.com\/stable\/apt focal main<br>EOF<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:15px\">sudo apt-key adv &#8211;keyserver hkp:\/\/keyserver.ubuntu.com &#8211;recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A<\/p>\n\n<\/div>\n\n\r\n<div class=\"wp-block-tcb-tab\" id=\"tcbTabContentTab-2\">\r\n\t\n\n<h3 class=\"wp-block-heading\" style=\"font-size:28px\">Ubuntu 22.04<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:15px\">sudo tee \/etc\/apt\/sources.list.d\/pritunl.list &lt;&lt; EOF<br>deb http:\/\/repo.pritunl.com\/stable\/apt jammy main <br>EOF<br><br>sudo apt-key adv &#8211;keyserver hkp:\/\/keyserver.ubuntu.com &#8211;recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A<\/p>\n\n<\/div>\n\t\t\t<\/div>\r\n\t\t<\/div>\r\n\r\n\t\t<!-- \u2705 SHOW OVERLAY ONLY FOR PRO THEME -->\r\n\t\t\r\n\t<\/div>\r\n\r\n\t<style>\r\n\t\t.tcbThemeWrapper {\r\n\t\t\tposition: relative;\r\n\t\t}\r\n\r\n\t\t.tcb-pro-overlay {\r\n\t\t\tposition: absolute;\r\n\t\t\tinset: 0;\r\n\t\t\tbackground: rgba(0,0,0,0.35);\r\n\t\t\tdisplay: flex;\r\n\t\t\talign-items: center;\r\n\t\t\tjustify-content: center;\r\n\t\t\tz-index: 20;\r\n\t\t\tborder-radius: 12px;\r\n\t\t\ttransition: all 0.3s ease;\r\n\t\t}\r\n\r\n\t\t.tcb-pro-overlay:hover {\r\n\t\t\tbackground: rgba(0,0,0,0.45);\r\n\t\t}\r\n\r\n\t\t.tcb-pro-inner {\r\n\t\t\t display: flex;\r\n\t\t\tflex-direction: column;  \r\n\t\t\talign-items: center;\r\n\t\t\tjustify-content: center;\r\n\t\t\tgap: 12px;             \r\n\t\t\ttext-align: center;\r\n\t\t}\r\n\r\n\t\t.tcb-pro-badge {\r\n\t\t\tfont-size: 18px;\r\n\t\t\tfont-weight: 500;\r\n\t\t\tcolor: #fff;\r\n\t\t\tbackground: none; \r\n\t\t\tpadding: 0;\r\n\t\t}\r\n\r\n\t\t.tcb-pro-btn {\r\n\t\t\tdisplay: inline-block;\r\n\t\t\tbackground: linear-gradient(135deg, #7b61ff, #5b21b6);\r\n\t\t\tcolor: #fff;\r\n\t\t\tpadding: 12px 22px;\r\n\t\t\tborder-radius: 10px;\r\n\t\t\tfont-weight: 600;\r\n\t\t\ttext-decoration: none;\r\n\t\t\tbox-shadow: 0 10px 25px rgba(91, 33, 182, 0.4);\r\n\t\t\ttransition: all 0.25s ease;\r\n\t\t}\r\n\r\n\t\t.tcb-pro-btn:hover {\r\n\t\t\ttransform: translateY(-2px);\r\n\t\t\tbox-shadow: 0 14px 32px rgba(91, 33, 182, 0.5);\r\n\t\t}\r\n\t<\/style>\r\n\r\n<\/div>\r\n\r\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Update and install<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update\nsudo apt-get install pritunl\nsystemctl start pritunl\nsystemctl enable pritunl<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MongoDB<\/strong>. Pritunl uses MongoDB, so we need to install it as well.<\/p>\n\n\n\r\n<div class=\"align wp-block-tcb-tabs\" id='tcbTabbedContent-6' data-attributes='{&quot;tabs&quot;:[{&quot;clientId&quot;:&quot;08349aca-5179-4f0f-b4dc-dece798d9300&quot;,&quot;title&quot;:&quot;Ubuntu 20.04&quot;,&quot;icon&quot;:{&quot;class&quot;:&quot;fa-solid fa-angle-down&quot;}},{&quot;clientId&quot;:&quot;6332ea51-fdbe-495e-8f4a-7137e7fa039e&quot;,&quot;title&quot;:&quot;Ubuntu 22.04&quot;,&quot;icon&quot;:{&quot;class&quot;:&quot;fa-solid fa-angle-down&quot;}}],&quot;tabColors&quot;:{&quot;color&quot;:&quot;#333&quot;,&quot;bgType&quot;:&quot;solid&quot;,&quot;gradient&quot;:&quot;linear-gradient(90deg,rgb(255,255,255) 0%,rgb(188,188,188) 100%)&quot;,&quot;bg&quot;:&quot;rgba(0, 0, 0, 0.09)&quot;},&quot;tabActiveColors&quot;:{&quot;color&quot;:&quot;rgba(255, 255, 255, 1)&quot;,&quot;bgType&quot;:&quot;solid&quot;,&quot;gradient&quot;:&quot;linear-gradient(90deg, #019447 0%, #10d56d 100%)&quot;,&quot;bg&quot;:&quot;rgba(164, 164, 164, 1)&quot;},&quot;titleTypo&quot;:{&quot;fontSize&quot;:{&quot;desktop&quot;:12},&quot;textTransform&quot;:&quot;uppercase&quot;,&quot;textDecoration&quot;:&quot;auto&quot;,&quot;lineHeight&quot;:&quot;100%&quot;,&quot;letterSpace&quot;:&quot;1px&quot;,&quot;fontWeight&quot;:100,&quot;fontVariant&quot;:&quot;100&quot;},&quot;icon&quot;:{&quot;size&quot;:&quot;20px&quot;,&quot;color&quot;:&quot;rgba(0, 0, 0, 1)&quot;,&quot;activeColor&quot;:&quot;#fff&quot;},&quot;contentBG&quot;:{&quot;type&quot;:&quot;solid&quot;,&quot;color&quot;:&quot;rgba(141, 208, 199, 0.16)&quot;},&quot;align&quot;:&quot;&quot;,&quot;options&quot;:{&quot;theme&quot;:&quot;default&quot;},&quot;elements&quot;:{&quot;icon&quot;:true,&quot;title&quot;:true,&quot;isTabBG&quot;:false},&quot;TabbedPadding&quot;:{&quot;top&quot;:&quot;10px&quot;,&quot;right&quot;:&quot;10px&quot;,&quot;bottom&quot;:&quot;10px&quot;,&quot;left&quot;:&quot;10px&quot;},&quot;tabsPadding&quot;:{&quot;top&quot;:&quot;0px&quot;,&quot;right&quot;:&quot;0px&quot;,&quot;bottom&quot;:&quot;0px&quot;,&quot;left&quot;:&quot;0px&quot;},&quot;tabBorder&quot;:{&quot;active&quot;:{&quot;width&quot;:0,&quot;color&quot;:&quot;#000&quot;,&quot;style&quot;:&quot;solid&quot;},&quot;normal&quot;:{&quot;width&quot;:0,&quot;color&quot;:&quot;#000&quot;,&quot;style&quot;:&quot;solid&quot;}},&quot;borderHeight&quot;:{&quot;height&quot;:&quot;3px&quot;},&quot;tabbedBG&quot;:{&quot;color&quot;:&quot;#FFF1F3&quot;,&quot;type&quot;:&quot;solid&quot;},&quot;borderBG&quot;:{&quot;gradient&quot;:&quot;linear-gradient(to right, rgba(157, 71, 240, 1), rgba(71, 240, 240, 0.8))&quot;,&quot;type&quot;:&quot;gradient&quot;},&quot;tabMenuBorder&quot;:{&quot;width&quot;:&quot;1px&quot;,&quot;menuBColor&quot;:&quot;#ccc&quot;}}' data-ispremium=''>\r\n\r\n\t\r\n\t<style>\r\n\t\t#tcbTabbedContent-6 .tabMenu .tabLabel{ font-weight: 100;font-size: 12;font-style: normal;text-transform: uppercase;text-decoration: auto;line-height: 100%;letter-spacing: 1px; } @media (max-width: 768px) { #tcbTabbedContent-6 .tabMenu .tabLabel{ font-size: 12px; } } @media (max-width: 576px) { #tcbTabbedContent-6 .tabMenu .tabLabel{ font-size: 12px; } }\r\n\r\n\t#tcbTabbedContent-6 .tabMenu {\r\n\t\tpadding: 0px 0px 0px 0px;\r\n\t}\r\n\t\r\n\t#tcbTabbedContent-6 .tabMenu .tabLabel {\r\n\t\tfont-size: 12;\r\n\t}\r\n\t\r\n\t@media (max-width: 1024px) {\r\n\t\t#tcbTabbedContent-6 .tabMenu .tabLabel {\r\n\t\t\tfont-size: 12;\r\n\t\t}\r\n\t}\r\n\r\n\t@media (max-width: 767px) {\r\n\t\t#tcbTabbedContent-6 .tabMenu .tabLabel {\r\n\t\t\tfont-size: 12;\r\n\t\t}\r\n\t}\r\n\t\r\n\t#tcbTabbedContent-6 .tabMenu li{\r\n\t\tcolor: #333;background: rgba(0, 0, 0, 0.09);\r\n\t}\r\n\t#tcbTabbedContent-6 .tabMenu li.active {\r\n\t\tcolor: rgba(255, 255, 255, 1);background: rgba(164, 164, 164, 1);border: 0 solid #000;\r\n\t}\r\n\t#tcbTabbedContent-6 .tabMenu li .menuIcon i{\r\n\t\tfont-size: 20px;\r\n\t\tcolor: rgba(0, 0, 0, 1);\r\n\t}\r\n\t#tcbTabbedContent-6 .tabMenu li.active .menuIcon i{\r\n\t\tcolor: #fff;\r\n\t}\r\n\t#tcbTabbedContent-6 .tabContent {background: rgba(141, 208, 199, 0.16);\r\n\t}\r\n\t<\/style>\r\n\r\n\t<!-- \u2705 Wrapper (important for overlay) -->\r\n\t<div class=\"tcbThemeWrapper\">\r\n\r\n\t\t<!-- \u2705 ALWAYS SHOW THEME -->\r\n\t\t<div class='tcbTabContent default'>\r\n\t\t\t<ul class='tabMenu' id='tabMenu-tcbTabbedContent-6'>\r\n\t\t\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t<style>\r\n\t\t\t\t\t\t\t#tcbTabbedContent-6 #tabMenu-tcbTabbedContent-6 &gt; li .menuIcon i{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\t\t\t\t\t\t<\/style>\r\n\r\n\t\t\t\t\t\t<span class=\"menuIcon show \"><i class=\"fa-solid fa-angle-down\"><\/i><\/span>\r\n\t\t\t\t\t\t<span class='tabLabel show'>\r\n\t\t\t\t\t\t\tUbuntu 20.04\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t<\/li>\r\n\t\t\t\t\t\t\t\t\t<li>\r\n\t\t\t\t\t\t<style>\r\n\t\t\t\t\t\t\t#tcbTabbedContent-6 #tabMenu-tcbTabbedContent-6 &gt; li .menuIcon i{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\t\t\t\t\t\t<\/style>\r\n\r\n\t\t\t\t\t\t<span class=\"menuIcon show \"><i class=\"fa-solid fa-angle-down\"><\/i><\/span>\r\n\t\t\t\t\t\t<span class='tabLabel show'>\r\n\t\t\t\t\t\t\tUbuntu 22.04\t\t\t\t\t\t<\/span>\r\n\t\t\t\t\t<\/li>\r\n\t\t\t\t\t\t\t<\/ul>\r\n\r\n\t\t\t<div class='tabContent' id='tabContent-tcbTabbedContent-6'>\r\n\t\t\t\t\n\r\n<div class=\"wp-block-tcb-tab\" id=\"tcbTabContentTab-4\">\r\n\t\n\n<h3 class=\"wp-block-heading\" style=\"font-size:28px\">Ubuntu 20.04<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:15px\">sudo apt-get install mongodb-server -y<br>systemctl start mongodb<br>systemctl enable mongodb<\/p>\n\n<\/div>\n\n\r\n<div class=\"wp-block-tcb-tab\" id=\"tcbTabContentTab-5\">\r\n\t\n\n<h3 class=\"wp-block-heading\" style=\"font-size:28px\">Ubuntu 22.04<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:15px\">sudo tee \/etc\/apt\/sources.list.d\/mongodb-org-6.0.list &lt;&lt; EOF<br>deb https:\/\/repo.mongodb.org\/apt\/ubuntu jammy\/mongodb-org\/6.0 multiverse<br>EOF<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:15px\">wget -qO &#8211; https:\/\/www.mongodb.org\/static\/pgp\/server-6.0.asc | sudo apt-key add &#8211;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:15px\">sudo apt -y install mongodb-org<br>sudo systemctl start mongod<br>sudo systemctl enable mongod<\/p>\n\n<\/div>\n\t\t\t<\/div>\r\n\t\t<\/div>\r\n\r\n\t\t<!-- \u2705 SHOW OVERLAY ONLY FOR PRO THEME -->\r\n\t\t\r\n\t<\/div>\r\n\r\n\t<style>\r\n\t\t.tcbThemeWrapper {\r\n\t\t\tposition: relative;\r\n\t\t}\r\n\r\n\t\t.tcb-pro-overlay {\r\n\t\t\tposition: absolute;\r\n\t\t\tinset: 0;\r\n\t\t\tbackground: rgba(0,0,0,0.35);\r\n\t\t\tdisplay: flex;\r\n\t\t\talign-items: center;\r\n\t\t\tjustify-content: center;\r\n\t\t\tz-index: 20;\r\n\t\t\tborder-radius: 12px;\r\n\t\t\ttransition: all 0.3s ease;\r\n\t\t}\r\n\r\n\t\t.tcb-pro-overlay:hover {\r\n\t\t\tbackground: rgba(0,0,0,0.45);\r\n\t\t}\r\n\r\n\t\t.tcb-pro-inner {\r\n\t\t\t display: flex;\r\n\t\t\tflex-direction: column;  \r\n\t\t\talign-items: center;\r\n\t\t\tjustify-content: center;\r\n\t\t\tgap: 12px;             \r\n\t\t\ttext-align: center;\r\n\t\t}\r\n\r\n\t\t.tcb-pro-badge {\r\n\t\t\tfont-size: 18px;\r\n\t\t\tfont-weight: 500;\r\n\t\t\tcolor: #fff;\r\n\t\t\tbackground: none; \r\n\t\t\tpadding: 0;\r\n\t\t}\r\n\r\n\t\t.tcb-pro-btn {\r\n\t\t\tdisplay: inline-block;\r\n\t\t\tbackground: linear-gradient(135deg, #7b61ff, #5b21b6);\r\n\t\t\tcolor: #fff;\r\n\t\t\tpadding: 12px 22px;\r\n\t\t\tborder-radius: 10px;\r\n\t\t\tfont-weight: 600;\r\n\t\t\ttext-decoration: none;\r\n\t\t\tbox-shadow: 0 10px 25px rgba(91, 33, 182, 0.4);\r\n\t\t\ttransition: all 0.25s ease;\r\n\t\t}\r\n\r\n\t\t.tcb-pro-btn:hover {\r\n\t\t\ttransform: translateY(-2px);\r\n\t\t\tbox-shadow: 0 14px 32px rgba(91, 33, 182, 0.5);\r\n\t\t}\r\n\t<\/style>\r\n\r\n<\/div>\r\n\r\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-configuration\"><a href=\"#conf\">Configuration<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"conf\">After you completed the installation step, you are ready to navigate to <strong>https:\/\/your_server_ip<\/strong> for initial configuration of Pritunl VPN server.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image.png\" alt=\"Initial configuration of Pritunl OpenVPN server\" class=\"wp-image-154\"\/><figcaption class=\"wp-element-caption\">Picture 1. Initial configuration of Pritunl OpenVPN server<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once you navigate to <strong>https:\/\/your_server_ip<\/strong>, you will see the above image. You will be requested to enter your Setup Key. The key is generated by running the below command on your server (Picture 2).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo pritunl setup-key<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"658\" height=\"132\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/setup-key.png\" alt class=\"wp-image-155 lazy\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/setup-key.png 658w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/setup-key-300x60.png 300w\" data-sizes=\"auto, (max-width: 658px) 100vw, 658px\" data-width=\"658\" data-height=\"132\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/setup-key.png\" style=\"height: 0; width: 658px; padding-bottom: 20.06%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" width=\"658\" height=\"132\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/setup-key.png\" alt=\"\" class=\"wp-image-155\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/setup-key.png 658w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/setup-key-300x60.png 300w\" sizes=\"auto, (max-width: 658px) 100vw, 658px\" \/><\/noscript><figcaption class=\"wp-element-caption\">Picture 2. Setup Key Generation<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After you proceed with your Setup Key, the system will ask you to run another command to retrieve default admin login details.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"377\" height=\"359\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-1.png\" alt=\"Request Admin Login Details\" class=\"wp-image-156 lazy\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-1.png 377w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-1-300x286.png 300w\" data-sizes=\"auto, (max-width: 377px) 100vw, 377px\" data-width=\"377\" data-height=\"359\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-1.png\" style=\"height: 0; width: 377px; padding-bottom: 95.23%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" width=\"377\" height=\"359\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-1.png\" alt=\"Request Admin Login Details\" class=\"wp-image-156\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-1.png 377w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-1-300x286.png 300w\" sizes=\"auto, (max-width: 377px) 100vw, 377px\" \/><\/noscript><figcaption class=\"wp-element-caption\">Picture 3. Request Admin Login Details<\/figcaption><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo pritunl default-password<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Pritunl will generate you new login details and now you are able to login with them. After you log in, you will be greeted with the below window.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"603\" height=\"428\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-2.png\" alt=\"private VPN initial setup\" class=\"wp-image-157 lazy\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-2.png 603w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-2-300x213.png 300w\" data-sizes=\"auto, (max-width: 603px) 100vw, 603px\" data-width=\"603\" data-height=\"428\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-2.png\" style=\"height: 0; width: 603px; padding-bottom: 70.98%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" width=\"603\" height=\"428\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-2.png\" alt=\"private VPN initial setup\" class=\"wp-image-157\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-2.png 603w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-2-300x213.png 300w\" sizes=\"auto, (max-width: 603px) 100vw, 603px\" \/><\/noscript><figcaption class=\"wp-element-caption\">Picture 4. Initial setup<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You can set new user and password, enter IPv6 address and enter public domain (if any) for which the server will issue SSL certificate. Click &#8220;Save&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next step is to <strong>Add Organization<\/strong>, <strong>Add User<\/strong> and <strong>Server<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"206\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/add-org-user-1.png\" alt class=\"wp-image-160 lazy\" style=\"height: 0; width: 1024px; padding-bottom: 20.12%;\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/add-org-user-1-1024x206.png 1024w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/add-org-user-1-300x60.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/add-org-user-1-768x155.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/add-org-user-1.png 1182w\" data-sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" data-width=\"1024\" data-height=\"206\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/add-org-user-1-1024x206.png\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"206\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/add-org-user-1-1024x206.png\" alt=\"\" class=\"wp-image-160\" style=\"width:739px;height:148px\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/add-org-user-1-1024x206.png 1024w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/add-org-user-1-300x60.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/add-org-user-1-768x155.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/add-org-user-1.png 1182w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/noscript><figcaption class=\"wp-element-caption\">Picture 5. At first add Organization, then User and finally Server.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"611\" height=\"469\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-3.png\" alt class=\"wp-image-161 lazy\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-3.png 611w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-3-300x230.png 300w\" data-sizes=\"auto, (max-width: 611px) 100vw, 611px\" data-width=\"611\" data-height=\"469\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-3.png\" style=\"height: 0; width: 611px; padding-bottom: 76.76%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" width=\"611\" height=\"469\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-3.png\" alt=\"\" class=\"wp-image-161\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-3.png 611w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-3-300x230.png 300w\" sizes=\"auto, (max-width: 611px) 100vw, 611px\" \/><\/noscript><figcaption class=\"wp-element-caption\">Picture 6. Adding User.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">For organization simply enter any name you want, like MyPrivateVPN and click Add. For User, add your preferred username (we used &#8220;admin&#8221;) and select organization (you just created). Email and PIN are optional. PIN works like 2-factor authentication. Finally, go to &#8220;<strong>Servers<\/strong>&#8221; &gt; &#8220;<strong>Add Server<\/strong>&#8220;.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"607\" height=\"414\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-4.png\" alt class=\"wp-image-162 lazy\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-4.png 607w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-4-300x205.png 300w\" data-sizes=\"auto, (max-width: 607px) 100vw, 607px\" data-width=\"607\" data-height=\"414\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-4.png\" style=\"height: 0; width: 607px; padding-bottom: 68.20%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" width=\"607\" height=\"414\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-4.png\" alt=\"\" class=\"wp-image-162\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-4.png 607w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-4-300x205.png 300w\" sizes=\"auto, (max-width: 607px) 100vw, 607px\" \/><\/noscript><figcaption class=\"wp-element-caption\">Picture 7. Adding Server<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In the top right click &#8220;<strong>Advanced<\/strong>&#8221; and mark &#8220;<strong>Block Outside DNS<\/strong>&#8220;. This will prevent DNS leak on Windows clients. We recommend enabling WireGuard since it&#8217;s a new new modern VPN protocol (much faster than OpenVPN). <a href=\"https:\/\/yohost.org\/library\/how-to-add-wireguard-support-to-pritunl-openvpn-server\/\">Here<\/a> we describe how to enable WireGuard and configure Pritunl client. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Click &#8220;<strong>Add<\/strong>&#8220;. <strong>Final step is to attach server to organization.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"881\" height=\"328\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/attach-org.png\" alt class=\"wp-image-163 lazy\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/attach-org.png 881w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/attach-org-300x112.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/attach-org-768x286.png 768w\" data-sizes=\"auto, (max-width: 881px) 100vw, 881px\" data-width=\"881\" data-height=\"328\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/attach-org.png\" style=\"height: 0; width: 881px; padding-bottom: 37.23%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" width=\"881\" height=\"328\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/attach-org.png\" alt=\"\" class=\"wp-image-163\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/attach-org.png 881w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/attach-org-300x112.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/attach-org-768x286.png 768w\" sizes=\"auto, (max-width: 881px) 100vw, 881px\" \/><\/noscript><figcaption class=\"wp-element-caption\">Picture 8. Attach Organization to Server.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After Server is attached to the Organization, click <strong>Start Server<\/strong>. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"158\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/start-server-openvpn.png\" alt class=\"wp-image-165 lazy\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/start-server-openvpn-1024x158.png 1024w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/start-server-openvpn-300x46.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/start-server-openvpn-768x119.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/start-server-openvpn.png 1198w\" data-sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" data-width=\"1024\" data-height=\"158\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/start-server-openvpn-1024x158.png\" style=\"height: 0; width: 1024px; padding-bottom: 15.43%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"158\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/start-server-openvpn-1024x158.png\" alt=\"\" class=\"wp-image-165\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/start-server-openvpn-1024x158.png 1024w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/start-server-openvpn-300x46.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/start-server-openvpn-768x119.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/start-server-openvpn.png 1198w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/noscript><figcaption class=\"wp-element-caption\">Picture 9. Start Server<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Congratulations, you have completed the setup of your private VPN server!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-connect-to-vpn\"><a href=\"#connect\">Connect to VPN<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\" id=\"connect\">Now in order to connect to you private VPN you will need to download your user profile. Go to &#8220;<strong>Users<\/strong>&#8221; and &#8220;<strong>Download<\/strong>&#8220;, like it&#8217;s shown on the <em>Picture 10<\/em> below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><span class=\"placeholder-el\" data-svq-align=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"241\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/download-user-profile.png\" alt class=\"wp-image-164 lazy\" data-srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/download-user-profile-1024x241.png 1024w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/download-user-profile-300x71.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/download-user-profile-768x181.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/download-user-profile.png 1178w\" data-sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" data-width=\"1024\" data-height=\"241\" data-src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/download-user-profile-1024x241.png\" style=\"height: 0; width: 1024px; padding-bottom: 23.54%;\"><span class=\"svq-img-loader\"><\/span><\/span><noscript><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"241\" src=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/download-user-profile-1024x241.png\" alt=\"\" class=\"wp-image-164\" srcset=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/download-user-profile-1024x241.png 1024w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/download-user-profile-300x71.png 300w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/download-user-profile-768x181.png 768w, https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/download-user-profile.png 1178w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/noscript><figcaption class=\"wp-element-caption\">Picture 10. Download OpenVPN User Profile<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Ok, now when you have your VPN server running, your user profile downloaded, you only need to get Pritunl Client, Import profile and Connect. All these steps have been covered in our previous article &#8211; <a href=\"https:\/\/yohost.org\/library\/how-to-connect-to-openvpn-using-windows-client\/\">How to Connect to OpenVPN using Windows Client Pritunl<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problem: Often public VPN services become a victim of hackers attacks &#8211; NordVPN, SuperVPN, LimeVPN were hacked and various data leaked.Solution: Running a private VPN server for your own use almost nullify risk of hackers attacks because it stays under the radar. For the convenience of use, this article is divided into 4 chapters. Content [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":154,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"stax_block_gap":"","stax_show_title_section":"","stax_single_post_media_panel_height":"","stax_single_post_media_panel_text":"","stax_single_post_cateory_breadcrumb":"","stax_single_post_title_position":"","stax_single_post_title_align":"","stax_single_post_title_extra_align":"","stax_single_post_title_size":"","stax_single_post_image_width":"","stax_single_post_image_format":"","stax_single_post_audio_panel":"","stax_single_post_video_panel":"","stax_single_post_video_width":"","stax_single_post_gallery_panel":"","stax_single_post_gallery_width":"","stax_single_post_gallery_slides":"","stax_single_post_meta_author_avatar":"","stax_single_post_meta_author_name":"","stax_single_post_meta_post_date":"","stax_single_post_meta_reading_time":"","stax_single_post_shapes":"","footnotes":""},"categories":[16,3,5],"tags":[29,27,28,8],"class_list":["post-148","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-encryption","category-privacy","category-security","tag-openvpn-pritunl","tag-private-vpn","tag-ubuntu","tag-vpn-for-windows"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.12 (Yoast SEO v27.7) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Running a Private VPN server on Ubuntu Linux<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/yohost.org\/library\/running-a-private-vpn-server-on-ubuntu-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Running a Private VPN server on Ubuntu Linux\" \/>\n<meta property=\"og:description\" content=\"Problem: Often public VPN services become a victim of hackers attacks &#8211; NordVPN, SuperVPN, LimeVPN were hacked and various data leaked.Solution: Running a private VPN server for your own use almost nullify risk of hackers attacks because it stays under the radar. For the convenience of use, this article is divided into 4 chapters. Content [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/yohost.org\/library\/running-a-private-vpn-server-on-ubuntu-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Privacy Dedicated Library\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-07T19:15:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-18T17:02:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-e1651661417205.png\" \/>\n\t<meta property=\"og:image:width\" content=\"511\" \/>\n\t<meta property=\"og:image:height\" content=\"280\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Paul M\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@yohostorg\" \/>\n<meta name=\"twitter:site\" content=\"@yohostorg\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Paul M\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/running-a-private-vpn-server-on-ubuntu-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/running-a-private-vpn-server-on-ubuntu-linux\\\/\"},\"author\":{\"name\":\"Paul M\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#\\\/schema\\\/person\\\/69f04ef60b945341f65db69ad70c0faf\"},\"headline\":\"Running a Private VPN server on Ubuntu Linux\",\"datePublished\":\"2022-03-07T19:15:30+00:00\",\"dateModified\":\"2024-09-18T17:02:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/running-a-private-vpn-server-on-ubuntu-linux\\\/\"},\"wordCount\":702,\"publisher\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/running-a-private-vpn-server-on-ubuntu-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/yohost.org\\\/library\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/image-e1651661417205.png\",\"keywords\":[\"OpenVPN Pritunl\",\"private VPN\",\"Ubuntu\",\"vpn for windows\"],\"articleSection\":[\"Encryption\",\"Privacy\",\"Security\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/running-a-private-vpn-server-on-ubuntu-linux\\\/\",\"url\":\"https:\\\/\\\/yohost.org\\\/library\\\/running-a-private-vpn-server-on-ubuntu-linux\\\/\",\"name\":\"Running a Private VPN server on Ubuntu Linux\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/running-a-private-vpn-server-on-ubuntu-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/running-a-private-vpn-server-on-ubuntu-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/yohost.org\\\/library\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/image-e1651661417205.png\",\"datePublished\":\"2022-03-07T19:15:30+00:00\",\"dateModified\":\"2024-09-18T17:02:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/running-a-private-vpn-server-on-ubuntu-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/yohost.org\\\/library\\\/running-a-private-vpn-server-on-ubuntu-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/running-a-private-vpn-server-on-ubuntu-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/yohost.org\\\/library\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/image-e1651661417205.png\",\"contentUrl\":\"https:\\\/\\\/yohost.org\\\/library\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/image-e1651661417205.png\",\"width\":511,\"height\":280},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/running-a-private-vpn-server-on-ubuntu-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/yohost.org\\\/library\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Running a Private VPN server on Ubuntu Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#website\",\"url\":\"https:\\\/\\\/yohost.org\\\/library\\\/\",\"name\":\"Privacy Dedicated Library\",\"description\":\"Everything about privacy protection, Bitcoin, encryption and technology\",\"publisher\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/yohost.org\\\/library\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#organization\",\"name\":\"Yohost.org\",\"url\":\"https:\\\/\\\/yohost.org\\\/library\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/yohost.org\\\/library\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/yhscree2.png\",\"contentUrl\":\"https:\\\/\\\/yohost.org\\\/library\\\/wp-content\\\/uploads\\\/2021\\\/12\\\/yhscree2.png\",\"width\":431,\"height\":466,\"caption\":\"Yohost.org\"},\"image\":{\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/yohostorg\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/yohost.org\\\/library\\\/#\\\/schema\\\/person\\\/69f04ef60b945341f65db69ad70c0faf\",\"name\":\"Paul M\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6d68ca6c8d2150c879f23586b6734b585aca8528d5f9d6158a28685239857aee?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6d68ca6c8d2150c879f23586b6734b585aca8528d5f9d6158a28685239857aee?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6d68ca6c8d2150c879f23586b6734b585aca8528d5f9d6158a28685239857aee?s=96&d=mm&r=g\",\"caption\":\"Paul M\"},\"sameAs\":[\"https:\\\/\\\/yohost.org\\\/library\"],\"url\":\"https:\\\/\\\/yohost.org\\\/library\\\/author\\\/admin_31kufsla\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Running a Private VPN server on Ubuntu Linux","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/yohost.org\/library\/running-a-private-vpn-server-on-ubuntu-linux\/","og_locale":"en_US","og_type":"article","og_title":"Running a Private VPN server on Ubuntu Linux","og_description":"Problem: Often public VPN services become a victim of hackers attacks &#8211; NordVPN, SuperVPN, LimeVPN were hacked and various data leaked.Solution: Running a private VPN server for your own use almost nullify risk of hackers attacks because it stays under the radar. For the convenience of use, this article is divided into 4 chapters. Content [&hellip;]","og_url":"https:\/\/yohost.org\/library\/running-a-private-vpn-server-on-ubuntu-linux\/","og_site_name":"Privacy Dedicated Library","article_published_time":"2022-03-07T19:15:30+00:00","article_modified_time":"2024-09-18T17:02:24+00:00","og_image":[{"width":511,"height":280,"url":"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-e1651661417205.png","type":"image\/png"}],"author":"Paul M","twitter_card":"summary_large_image","twitter_creator":"@yohostorg","twitter_site":"@yohostorg","twitter_misc":{"Written by":"Paul M","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/yohost.org\/library\/running-a-private-vpn-server-on-ubuntu-linux\/#article","isPartOf":{"@id":"https:\/\/yohost.org\/library\/running-a-private-vpn-server-on-ubuntu-linux\/"},"author":{"name":"Paul M","@id":"https:\/\/yohost.org\/library\/#\/schema\/person\/69f04ef60b945341f65db69ad70c0faf"},"headline":"Running a Private VPN server on Ubuntu Linux","datePublished":"2022-03-07T19:15:30+00:00","dateModified":"2024-09-18T17:02:24+00:00","mainEntityOfPage":{"@id":"https:\/\/yohost.org\/library\/running-a-private-vpn-server-on-ubuntu-linux\/"},"wordCount":702,"publisher":{"@id":"https:\/\/yohost.org\/library\/#organization"},"image":{"@id":"https:\/\/yohost.org\/library\/running-a-private-vpn-server-on-ubuntu-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-e1651661417205.png","keywords":["OpenVPN Pritunl","private VPN","Ubuntu","vpn for windows"],"articleSection":["Encryption","Privacy","Security"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/yohost.org\/library\/running-a-private-vpn-server-on-ubuntu-linux\/","url":"https:\/\/yohost.org\/library\/running-a-private-vpn-server-on-ubuntu-linux\/","name":"Running a Private VPN server on Ubuntu Linux","isPartOf":{"@id":"https:\/\/yohost.org\/library\/#website"},"primaryImageOfPage":{"@id":"https:\/\/yohost.org\/library\/running-a-private-vpn-server-on-ubuntu-linux\/#primaryimage"},"image":{"@id":"https:\/\/yohost.org\/library\/running-a-private-vpn-server-on-ubuntu-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-e1651661417205.png","datePublished":"2022-03-07T19:15:30+00:00","dateModified":"2024-09-18T17:02:24+00:00","breadcrumb":{"@id":"https:\/\/yohost.org\/library\/running-a-private-vpn-server-on-ubuntu-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/yohost.org\/library\/running-a-private-vpn-server-on-ubuntu-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/yohost.org\/library\/running-a-private-vpn-server-on-ubuntu-linux\/#primaryimage","url":"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-e1651661417205.png","contentUrl":"https:\/\/yohost.org\/library\/wp-content\/uploads\/2022\/03\/image-e1651661417205.png","width":511,"height":280},{"@type":"BreadcrumbList","@id":"https:\/\/yohost.org\/library\/running-a-private-vpn-server-on-ubuntu-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/yohost.org\/library\/"},{"@type":"ListItem","position":2,"name":"Running a Private VPN server on Ubuntu Linux"}]},{"@type":"WebSite","@id":"https:\/\/yohost.org\/library\/#website","url":"https:\/\/yohost.org\/library\/","name":"Privacy Dedicated Library","description":"Everything about privacy protection, Bitcoin, encryption and technology","publisher":{"@id":"https:\/\/yohost.org\/library\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/yohost.org\/library\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/yohost.org\/library\/#organization","name":"Yohost.org","url":"https:\/\/yohost.org\/library\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/yohost.org\/library\/#\/schema\/logo\/image\/","url":"https:\/\/yohost.org\/library\/wp-content\/uploads\/2021\/12\/yhscree2.png","contentUrl":"https:\/\/yohost.org\/library\/wp-content\/uploads\/2021\/12\/yhscree2.png","width":431,"height":466,"caption":"Yohost.org"},"image":{"@id":"https:\/\/yohost.org\/library\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/yohostorg"]},{"@type":"Person","@id":"https:\/\/yohost.org\/library\/#\/schema\/person\/69f04ef60b945341f65db69ad70c0faf","name":"Paul M","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/6d68ca6c8d2150c879f23586b6734b585aca8528d5f9d6158a28685239857aee?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/6d68ca6c8d2150c879f23586b6734b585aca8528d5f9d6158a28685239857aee?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6d68ca6c8d2150c879f23586b6734b585aca8528d5f9d6158a28685239857aee?s=96&d=mm&r=g","caption":"Paul M"},"sameAs":["https:\/\/yohost.org\/library"],"url":"https:\/\/yohost.org\/library\/author\/admin_31kufsla\/"}]}},"_links":{"self":[{"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/posts\/148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/comments?post=148"}],"version-history":[{"count":32,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/posts\/148\/revisions"}],"predecessor-version":[{"id":1039,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/posts\/148\/revisions\/1039"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/media\/154"}],"wp:attachment":[{"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/media?parent=148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/categories?post=148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yohost.org\/library\/wp-json\/wp\/v2\/tags?post=148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}