{"id":2002,"date":"2019-11-27T13:39:23","date_gmt":"2019-11-27T11:39:23","guid":{"rendered":"https:\/\/wolfisp.com\/?p=2002"},"modified":"2019-11-27T13:44:31","modified_gmt":"2019-11-27T11:44:31","slug":"easy-install-openvpn-on-linux","status":"publish","type":"post","link":"https:\/\/wolfisp.com\/en\/2019\/11\/27\/easy-install-openvpn-on-linux\/","title":{"rendered":"Easy install OpenVPN on Linux"},"content":{"rendered":"\n<p>For many, the installation of <strong>OpenVPN <\/strong>is a very complex process, the generation of certificates, keys, etc. causes difficulties.<\/p>\n\n\n\n<p>In this article I want to introduce you to a <a href=\"https:\/\/github.com\/Nyr\/openvpn-install\"><strong>script <\/strong><\/a>that literally <strong>5 minutes<\/strong> or a <strong>few clicks <\/strong>allows you to <strong>install an OpenVPN<\/strong> server on <strong>CentOS<\/strong>, <strong>Debian <\/strong>or <strong>Ubuntu<\/strong>.<\/p>\n\n\n\n<p><strong>So, let&#8217;s get to it&#8230;<\/strong><\/p>\n\n\n\n<p><strong>To install in the console run the next command:<\/strong><\/p>\n\n\n\n<p><code>wget https:\/\/git.io\/vpn -O openvpn-install.sh &amp;&amp; bash openvpn-install.sh <\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"220\" src=\"https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn1-1024x220.png\" alt=\"\" class=\"wp-image-1975\" srcset=\"https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn1-1024x220.png 1024w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn1-300x64.png 300w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn1-768x165.png 768w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn1-1536x330.png 1536w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn1-370x79.png 370w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn1-760x163.png 760w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn1.png 1897w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>You will then be taken to the <strong>welcome <\/strong>screen of the installer.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"709\" height=\"182\" src=\"https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn2.png\" alt=\"\" class=\"wp-image-1977\" srcset=\"https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn2.png 709w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn2-300x77.png 300w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn2-370x95.png 370w\" sizes=\"(max-width: 709px) 100vw, 709px\" \/><\/figure>\n\n\n\n<p>If you do not know the difference between UDP and TCP, choose<strong> option 1<\/strong> (UDP)<\/p>\n\n\n\n<p>Now we are asked to specify the <strong>port<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"715\" height=\"257\" src=\"https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn3.png\" alt=\"\" class=\"wp-image-1980\" srcset=\"https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn3.png 715w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn3-300x108.png 300w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn3-370x133.png 370w\" sizes=\"(max-width: 715px) 100vw, 715px\" \/><\/figure>\n\n\n\n<p>If there is no preferences leave as there is. Go on\u2026<\/p>\n\n\n\n<p>In next step, us ask what <strong>DNS <\/strong>to leave, can be to leave as there is or choose for example Google, their and choose.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"706\" height=\"398\" src=\"https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn4.png\" alt=\"\" class=\"wp-image-1982\" srcset=\"https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn4.png 706w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn4-300x169.png 300w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn4-370x209.png 370w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn4-270x152.png 270w\" sizes=\"(max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<p>The next step is to specify the <strong>name of the client<\/strong> (client certificate).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"706\" height=\"476\" src=\"https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn5.png\" alt=\"\" class=\"wp-image-1985\" srcset=\"https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn5.png 706w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn5-300x202.png 300w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn5-370x249.png 370w\" sizes=\"(max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<p>Well, the final question of the installer will be a proposal to <strong>press any key<\/strong> to start the installation process of the necessary set of software.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"703\" height=\"79\" src=\"https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn6.png\" alt=\"\" class=\"wp-image-1987\" srcset=\"https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn6.png 703w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn6-300x34.png 300w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn6-370x42.png 370w\" sizes=\"(max-width: 703px) 100vw, 703px\" \/><\/figure>\n\n\n\n<p><strong>Press any key\u2026.<\/strong> And the installation process begins.  There is a download of software packages by the package Manager depending on Your OS and further generation of keys, certificates and server, client configurations.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"917\" height=\"794\" src=\"https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn65.png\" alt=\"\" class=\"wp-image-1990\" srcset=\"https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn65.png 917w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn65-300x260.png 300w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn65-768x665.png 768w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn65-370x320.png 370w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn65-760x658.png 760w\" sizes=\"(max-width: 917px) 100vw, 917px\" \/><\/figure>\n\n\n\n<p>At the end of the process, the installer will display the final notification.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"574\" height=\"95\" src=\"https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn7.png\" alt=\"\" class=\"wp-image-1992\" srcset=\"https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn7.png 574w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn7-300x50.png 300w, https:\/\/wolfisp.com\/wp-content\/uploads\/2019\/11\/ovpn7-370x61.png 370w\" sizes=\"(max-width: 574px) 100vw, 574px\" \/><\/figure>\n\n\n\n<p>Which means our server is installed and ready to go.<\/p>\n\n\n\n<p>Next, you need to download the <strong>client config<\/strong> testvpn .ovpn (name depends on what client name you specified during installation) and use it on client devices (<strong>Windows, Android, iOS, MacOS<\/strong>, etc.).<\/p>\n\n\n\n<p><strong>This is probably all, the process is very easy and does not require special skills.<\/strong><\/p>\n\n\n\n<p><strong>All secure connections!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For many, the installation of OpenVPN is a very complex process, the generation of certificates, keys, etc. causes difficulties. In this article I want to introduce you to a script that literally 5 minutes or a few clicks allows you&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[76],"tags":[113,127,128,134,125,133,126],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/wolfisp.com\/en\/wp-json\/wp\/v2\/posts\/2002"}],"collection":[{"href":"https:\/\/wolfisp.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wolfisp.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wolfisp.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wolfisp.com\/en\/wp-json\/wp\/v2\/comments?post=2002"}],"version-history":[{"count":2,"href":"https:\/\/wolfisp.com\/en\/wp-json\/wp\/v2\/posts\/2002\/revisions"}],"predecessor-version":[{"id":2004,"href":"https:\/\/wolfisp.com\/en\/wp-json\/wp\/v2\/posts\/2002\/revisions\/2004"}],"wp:attachment":[{"href":"https:\/\/wolfisp.com\/en\/wp-json\/wp\/v2\/media?parent=2002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wolfisp.com\/en\/wp-json\/wp\/v2\/categories?post=2002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wolfisp.com\/en\/wp-json\/wp\/v2\/tags?post=2002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}