{"id":29976,"date":"2019-08-17T11:13:40","date_gmt":"2019-08-17T16:13:40","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=29976"},"modified":"2022-12-09T07:01:20","modified_gmt":"2022-12-09T13:01:20","slug":"how-to-install-openvpn-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/","title":{"rendered":"How to Install OpenVPN on Ubuntu 18.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\r\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"742\" height=\"372\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-openvpn-on-ubuntu18.04.jpg\" alt=\"\" class=\"wp-image-31776\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-openvpn-on-ubuntu18.04.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-openvpn-on-ubuntu18.04-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-openvpn-on-ubuntu18.04-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\r\n\r\n\r\n\r\n<p>In this article, we will go over step-by-step instructions on&nbsp;<strong>how to install <b>OpenVPN&nbsp;<\/b>on an <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\">Ubuntu 18.04 VPS<\/a><\/strong>.<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\"><figure class=\"alignright\"><img decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/improve-privacy-openvpn-vpn-security-on-ubuntu18.04-vps.jpg\" alt=\"\" class=\"wp-image-31777\"\/><\/figure><\/div>\r\n\r\n\r\n\r\n<p>A <strong>Virtual Private Network <\/strong>or&nbsp;<strong>VPN <\/strong>for short is a networking service that routes your network traffic through a server. With this, all of your network connections will be disguised as though they originate from the VPN server&#8217;s connection. The destination address can&#8217;t know your real location, thus providing both privacy and safety online. VPNs&nbsp;are also used by corporations and enterprise environments to enable a secure private network to protect their important data.<\/p>\r\n\r\n\r\n\r\n<p><b>OpenVPN<\/b> is&nbsp;a VPN protocol which defines how the data is transmitted over a VPN. Other common protocols are PTP, L2TP, SSTP, and IKEV2.<\/p>\r\n\r\n\r\n\r\n<p><strong>OpenVPN<\/strong>&nbsp;provides the most secure connection among other protocols as it provides secure authentication (such as the use of certificates and keys) as well as using up-to-date encryption algorithms. On top of this, OpenVPN is open-source software powered by thousands of developers from different communities. It is distributed under the GNU GPL license. Let&#8217;s begin with the installation.<\/p>\r\n\r\n\r\n\r\n<!--more-->\r\n\r\n\r\n\r\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69ed20e9a6326\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69ed20e9a6326\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/#Prerequisites\" >Prerequisites:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/#Step-1-Log-in-Check-for-Updates-and-Install-Dependencies\" >Step 1: Log in, Check for Updates and Install Dependencies<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/#Step-2-Install-OpenVPN-Using-an-Install-Script\" >Step 2: Install OpenVPN Using an Install Script<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/#Step-3-Creating-our-First-OpenVPN-Server-Client-Configuration\" >Step 3: Creating our First OpenVPN Server-Client Configuration<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-prerequisites\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites:<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>For this tutorial, it is recommended to use a fresh&nbsp;<a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\">Ubuntu 18.04 VPS<\/a>&nbsp;installation.<\/p>\r\n\r\n\r\n\r\n<p>Please make sure that your server meets the following minimum hardware and software requirements:<\/p>\r\n\r\n\r\n\r\n<p><strong>Hardware:<\/strong><\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\"><li>1 CPU Core<\/li><li>512MB of RAM<\/li><li>5GB of free disk space<\/li><\/ul>\r\n\r\n\r\n\r\n<p><strong>Software:<\/strong><\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\"><li>Ubuntu 18.04<\/li><li>1 Dedicated IP address<\/li><li>Full root access, or access to an account with sudo privileges<\/li><\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-step-1-log-in-check-for-updates-and-install-dependencies\"><span class=\"ez-toc-section\" id=\"Step-1-Log-in-Check-for-Updates-and-Install-Dependencies\"><\/span>Step 1: Log in, Check for Updates and Install Dependencies<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Log in to your server via SSH:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">ssh username@server_ip_address -p port_number<\/pre>\r\n\r\n\r\n\r\n<p>Be sure to replace &#8220;username&#8221; with the account name of a root user found on the server (or the root user itself), and replace &#8220;server_ip&#8221; with the IP address and &#8220;port_number&#8221; with the SSH port number of your server.<\/p>\r\n\r\n\r\n\r\n<p>Before starting with the installation, it is recommended to update all installed Ubuntu packages to their latest versions to maximize compatibility:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">apt-get update\r\napt-get upgrade<\/pre>\r\n\r\n\r\n\r\n<p>Ensure the required dependencies are installed by running the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">apt-get install software-properties-common build-essential -y<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-step-2-install-openvpn-using-an-install-script\"><span class=\"ez-toc-section\" id=\"Step-2-Install-OpenVPN-Using-an-Install-Script\"><\/span>Step 2: Install OpenVPN Using an Install Script<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Fortunately, there are open-source scripts available from GitHub that provide a hassle-free and customizable installation of OpenVPN.<\/p>\r\n\r\n\r\n\r\n<p>You can check more details about&nbsp;<a href=\"https:\/\/github.com\/angristan\/openvpn-install\">the script<\/a>.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\" id=\"h-1-download-the-script-and-change-permission\">1. Download the script and change permission<\/h3>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">cd \/opt\r\ncurl -O https:\/\/raw.githubusercontent.com\/Angristan\/openvpn-install\/master\/openvpn-install.sh\r\nchmod +x openvpn-install.sh<\/pre>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\" id=\"h-2-running-the-script\">2. Running the script<\/h3>\r\n\r\n\r\n\r\n<p>Once downloaded and correct permissions have been applied, we can activate the script by typing:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">.\/openvpn-install.sh<\/pre>\r\n\r\n\r\n\r\n<p>During installation, several questions will be asked and we will tackle them one by one.<\/p>\r\n\r\n\r\n\r\n<p>1. <strong>IP address<\/strong> &#8211; this will be your server&#8217;s public IP address.<\/p>\r\n\r\n\r\n\r\n<p>2.&nbsp;<strong>Do you want to enable IPv6 support (NAT)? [y\/n]:<\/strong> <strong>n<\/strong> &#8211; For now, IPv4 will do.<\/p>\r\n\r\n\r\n\r\n<p>3.&nbsp;<strong>What port do you want OpenVPN to listen to? [1-3]:<\/strong> <strong>1<\/strong> &#8211; the default port for the OpenVPN server is 1194.<\/p>\r\n\r\n\r\n\r\n<p>4.&nbsp;<strong>What protocol do you want OpenVPN to use? [1-2]:<\/strong> <strong>1<\/strong> &#8211; Both TCP and UDP are protocols for sending packets on the internet. The main difference is that TCP has error checking while UDP does not.&nbsp;UDP is recommended by the installer since it provides a faster connection. It is mostly used for streaming and gaming. For other purposes, we recommend using TCP to avoid data loss.<\/p>\r\n\r\n\r\n\r\n<p>5.&nbsp;<strong>What DNS resolvers do you want to use with the VPN?: 3&nbsp;<\/strong>&#8211; For this, we recommend Google&#8217;s DNS but this is a personal choice.<\/p>\r\n\r\n\r\n\r\n<p>6.&nbsp;<strong>Do you want to use compression?: n&nbsp;<\/strong>&#8211; To avoid some vulnerabilities, it is best to disable compression.<\/p>\r\n\r\n\r\n\r\n<p>7.&nbsp;<strong>Do you want to customize encryption settings? y&nbsp;<\/strong> &#8211; For the sake of this tutorial, we will go through the encryption settings to provide insights about encryption that will be used by our OpenVPN server.<\/p>\r\n\r\n\r\n\r\n<p>8.&nbsp;<strong>Choose which cipher you want to use for the data channel: 1 [AES]&nbsp;<\/strong> &#8211; AES is currently the fastest cipher available for OpenVPN. The recommended value is AES-128-GCM. You may notice that AES-256-GCM is also available but that provides slower performance.<\/p>\r\n\r\n\r\n\r\n<p>9.&nbsp;<strong>Choose what kind of certificate you want to use: 1 [ECDSA]&nbsp;<\/strong>&#8211; RSA has gained his popularity due to its performance, maturity, and compatibility for most of the applications but in today&#8217;s security, ECDSA provides a higher key size, is scalable, and is the future of certificates.<\/p>\r\n\r\n\r\n\r\n<p>10.&nbsp;<strong>Choose which curve you want to use for the certificate&#8217;s key:<\/strong>&nbsp;<strong>1 [prime256v1]<\/strong> &#8211; Since the release of OpenVPN 2.4, Elliptic-curve Diffie\u2013Hellman or ECDH keys are now supported.<\/p>\r\n\r\n\r\n\r\n<p>11.&nbsp;<strong>Choose which cipher you want to use for the control channel: 1 [ECDHE-ECDSA-AES-128-GCM-SHA256] &#8211;&nbsp;<\/strong>Again, 128 bits key is secure enough and still provides better performance.<\/p>\r\n\r\n\r\n\r\n<p>12.&nbsp;<strong>Choose what kind of Diffie-Hellman key you want to use: 1 [ECDH]&nbsp;<\/strong>&#8211; ECDH is being used by modern standards.<\/p>\r\n\r\n\r\n\r\n<p>13.&nbsp;<strong>Choose which curve you want to use for the ECDH key: 1 [prime256v1] &#8211; <\/strong>A 256-bit key should be enough.<\/p>\r\n\r\n\r\n\r\n<p>14.&nbsp;<strong>Which digest algorithm do you want to use for HMAC?<\/strong>:&nbsp;<strong>1 [SHA256] &#8211; <\/strong>Again<strong>,<\/strong>&nbsp;a 256-bit key should be enough and is the sweet spot for security and performance.<\/p>\r\n\r\n\r\n\r\n<p>15.&nbsp;<strong>An additional layer of security to the control channel: 1 [tls-crypt]<\/strong> &#8211; For increased security, we should choose tls-crypt over tls-auth as it also encrypts&nbsp;the TLS stack.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\" id=\"h-step-3-creating-our-first-openvpn-server-client-configuration\"><span class=\"ez-toc-section\" id=\"Step-3-Creating-our-First-OpenVPN-Server-Client-Configuration\"><\/span>Step 3: Creating our First OpenVPN Server-Client Configuration<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>After answering the following questions, we will now proceed with the client information.<\/p>\r\n\r\n\r\n\r\n<p>Example:<\/p>\r\n\r\n\r\n\r\n<ol class=\"wp-block-list\"><li><strong>Client name<\/strong>: client1<\/li><li><strong>Do you want to protect the configuration file with a password?: 2&nbsp;<\/strong> &#8211; You will be required to enter a passphrase.<\/li><\/ol>\r\n\r\n\r\n\r\n<p>Once done, you will be provided by the location of the client OVPN settings which you can find at <code>\/root\/[client name].ovpn<\/code>.<\/p>\r\n\r\n\r\n\r\n<p>We can now download the configuration via SFTP using an FTP client and import it onto an OpenVPN client.<\/p>\r\n\r\n\r\n\r\n<p>If you need to add a new client\/user, you may run the script again and it will provide the following options:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">What do you want to do?\r\n1) Add a new user\r\n2) Revoke existing user\r\n3) Remove OpenVPN\r\n4) Exit\r\nSelect an option [1-4]:<\/pre>\r\n\r\n\r\n\r\n<p><strong>That&#8217;s it &#8211;&nbsp;<\/strong>you now have a working OpenVPN server&nbsp;on your Ubuntu 18.04 server which can protect your&nbsp;privacy online.<\/p>\r\n\r\n\r\n\r\n<hr class=\"wp-block-separator\"\/>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\"><figure class=\"alignleft\"><img decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/managed-openvpn-server-guide-help-security-ubuntu18.04-vps.jpg\" alt=\"\" class=\"wp-image-31778\"\/><\/figure><\/div>\r\n\r\n\r\n\r\n<p>Of&nbsp;course, you don\u2019t have to <strong>install <b>OpenVPN&nbsp;<\/b>on an <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\">Ubuntu 18.04 VPS<\/a><\/strong>&nbsp;if you use one of our&nbsp;<a href=\"https:\/\/www.rosehosting.com\/openvpn-hosting.html\">OpenVPN Hosting services<\/a>. OpenVPN will be automatically set up for you by our expert Linux system administrators. They are available 24\/7 and will be able to help you with the installation.<\/p>\r\n\r\n\r\n\r\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong><\/span>. If you enjoyed reading this blog post on how to install OpenVPN on Ubuntu 18.04, feel free to share it on social networks using the shortcuts below, or simply leave a comment in the comments section. Thanks.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will go over step-by-step instructions on&nbsp;how to install OpenVPN&nbsp;on an Ubuntu 18.04 VPS. A Virtual Private &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install OpenVPN on Ubuntu 18.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/#more-29976\" aria-label=\"Read more about How to Install OpenVPN on Ubuntu 18.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":31776,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1236,1703,13,1698],"tags":[404,59,1460],"class_list":["post-29976","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guides","category-security","category-tutorials","category-ubuntu","tag-openvpn","tag-ubuntu","tag-vpn","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install OpenVPN on Ubuntu 18.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install OpenVPN on Ubuntu 18.04 | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install OpenVPN on Ubuntu 18.04\" \/>\n<meta property=\"og:description\" content=\"How to Install OpenVPN on Ubuntu 18.04 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2019-08-17T16:13:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-09T13:01:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-openvpn-on-ubuntu18.04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-openvpn-on-ubuntu-18-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-openvpn-on-ubuntu-18-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install OpenVPN on Ubuntu 18.04\",\"datePublished\":\"2019-08-17T16:13:40+00:00\",\"dateModified\":\"2022-12-09T13:01:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-openvpn-on-ubuntu-18-04\\\/\"},\"wordCount\":1082,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-openvpn-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/how-to-install-openvpn-on-ubuntu18.04.jpg\",\"keywords\":[\"openvpn\",\"ubuntu\",\"vpn\"],\"articleSection\":[\"Guides\",\"Security\",\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-openvpn-on-ubuntu-18-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-openvpn-on-ubuntu-18-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-openvpn-on-ubuntu-18-04\\\/\",\"name\":\"How to Install OpenVPN on Ubuntu 18.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-openvpn-on-ubuntu-18-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-openvpn-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/how-to-install-openvpn-on-ubuntu18.04.jpg\",\"datePublished\":\"2019-08-17T16:13:40+00:00\",\"dateModified\":\"2022-12-09T13:01:20+00:00\",\"description\":\"How to Install OpenVPN on Ubuntu 18.04 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-openvpn-on-ubuntu-18-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-openvpn-on-ubuntu-18-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-openvpn-on-ubuntu-18-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/how-to-install-openvpn-on-ubuntu18.04.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/how-to-install-openvpn-on-ubuntu18.04.jpg\",\"width\":742,\"height\":372},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-openvpn-on-ubuntu-18-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install OpenVPN on Ubuntu 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install OpenVPN on Ubuntu 18.04 | RoseHosting","description":"How to Install OpenVPN on Ubuntu 18.04 | RoseHosting","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:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install OpenVPN on Ubuntu 18.04","og_description":"How to Install OpenVPN on Ubuntu 18.04 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2019-08-17T16:13:40+00:00","article_modified_time":"2022-12-09T13:01:20+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-openvpn-on-ubuntu18.04.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install OpenVPN on Ubuntu 18.04","datePublished":"2019-08-17T16:13:40+00:00","dateModified":"2022-12-09T13:01:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/"},"wordCount":1082,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-openvpn-on-ubuntu18.04.jpg","keywords":["openvpn","ubuntu","vpn"],"articleSection":["Guides","Security","Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/","name":"How to Install OpenVPN on Ubuntu 18.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-openvpn-on-ubuntu18.04.jpg","datePublished":"2019-08-17T16:13:40+00:00","dateModified":"2022-12-09T13:01:20+00:00","description":"How to Install OpenVPN on Ubuntu 18.04 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-openvpn-on-ubuntu18.04.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/08\/how-to-install-openvpn-on-ubuntu18.04.jpg","width":742,"height":372},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-openvpn-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install OpenVPN on Ubuntu 18.04"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/29976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=29976"}],"version-history":[{"count":4,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/29976\/revisions"}],"predecessor-version":[{"id":43981,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/29976\/revisions\/43981"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/31776"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=29976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=29976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=29976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}