{"id":450,"date":"2016-08-13T19:54:18","date_gmt":"2016-08-13T16:54:18","guid":{"rendered":"https:\/\/community.virtono.com\/?p=450"},"modified":"2016-08-13T19:54:18","modified_gmt":"2016-08-13T16:54:18","slug":"how-to-install-setup-config-openvpn-on-centos-6-4","status":"publish","type":"post","link":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-setup-config-openvpn-on-centos-6-4\/","title":{"rendered":"How to Install, Setup, Config OpenVPN on CentOS 6.4 ."},"content":{"rendered":"<p>A brief introduction to CentOS, or if you are a restless soul, just go straight to the process.<\/p>\n<p><b>CentOS<\/b><b> stands for Community <\/b><b>ENTerprise<\/b><b> Operating System.<\/b><\/p>\n<p><b>CentOS<\/b><b> is an Enterprise-class Linux Distribution derived from sources freely provided to the public by a prominent North American Enterprise Linux vendor.\u00a0 <\/b><b>CentOS<\/b><b> conforms fully with the upstream vendors redistribution policy and aims to be 100% binary compatible developed by a small but growing team of core developers.\u00a0 In turn the core developers are supported by an active user community including system administrators, network administrators, enterprise users, managers, core Linux contributors and Linux enthusiasts from around the world.<br \/>\n<\/b><b>CentOS<\/b><b> has numerous advantages over some of the other clone projects including:\u00a0 an active and growing user community, quickly rebuilt, tested, and <\/b><b>QA&#8217;ed<\/b><b> errata packages, an extensive <\/b><b><a href=\"http:\/\/www.centos.org\/modules\/tinycontent\/index.php?id=15\" target=\"_blank\" rel=\"noopener\">mirror network<\/a><\/b><b>, developers who are contactable and responsive, multiple free support avenues including <\/b><b><a href=\"http:\/\/www.centos.org\/modules\/tinycontent\/index.php?id=8\" target=\"_blank\" rel=\"noopener\">IRC Chat<\/a><\/b><b>, <\/b><b><a href=\"http:\/\/www.centos.org\/modules\/tinycontent\/index.php?id=16\" target=\"_blank\" rel=\"noopener\">Mailing Lists<\/a><\/b><b>, <\/b><b><a href=\"http:\/\/www.centos.org\/modules\/newbb\/\" target=\"_blank\" rel=\"noopener\">Forums<\/a><\/b><b>, a dynamic\u00a0<\/b><b><a href=\"http:\/\/www.centos.org\/modules\/smartfaq\/\" target=\"_blank\" rel=\"noopener\">FAQ<\/a><\/b><b>. <\/b><b><a href=\"http:\/\/www.centos.org\/modules\/tinycontent\/index.php?id=12\" target=\"_blank\" rel=\"noopener\">Commercial support<\/a><\/b><b> is offered via a number of vendors. a community-<\/b><b>supported,mainly<\/b> <b><a href=\"http:\/\/en.wikipedia.org\/wiki\/Free_software\" target=\"_blank\" rel=\"noopener\">free software<\/a><\/b> <b><a href=\"http:\/\/en.wikipedia.org\/wiki\/Operating_system\" target=\"_blank\" rel=\"noopener\">operating system<\/a><\/b><b> based on <\/b><b><a href=\"http:\/\/en.wikipedia.org\/wiki\/Red_Hat_Enterprise_Linux\" target=\"_blank\" rel=\"noopener\">Red Hat Enterprise Linux<\/a><\/b><b>. It exists to provide a free enterprise class computing platform and strives to maintain 100% <\/b><b><a href=\"http:\/\/en.wikipedia.org\/wiki\/Binary_compatibility\" target=\"_blank\" rel=\"noopener\">binary compatibility<\/a><\/b><b> with its <\/b><b><a href=\"http:\/\/en.wikipedia.org\/wiki\/Upstream_%28software_development%29\" target=\"_blank\" rel=\"noopener\">upstream<\/a><\/b><b> distribution.<\/b><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Now on with our installation!<\/p>\n<p>Please enable\u00a0<strong>TUN\/TAP<\/strong>\u00a0options in your VPS control panel (e.g: SolusVM).<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"473\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-setup-config-openvpn-on-centos-6-4\/attachment\/enable-tun-tap\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/enable-tun-tap.jpg?fit=595%2C168&amp;ssl=1\" data-orig-size=\"595,168\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"enable-tun-tap\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/enable-tun-tap.jpg?fit=300%2C85&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/enable-tun-tap.jpg?fit=595%2C168&amp;ssl=1\" class=\"alignnone  wp-image-473\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2016\/08\/enable-tun-tap-300x85.jpg?resize=364%2C103&#038;ssl=1\" alt=\"enable-tun-tap\" width=\"364\" height=\"103\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/enable-tun-tap.jpg?resize=300%2C85&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/enable-tun-tap.jpg?w=595&amp;ssl=1 595w\" sizes=\"auto, (max-width: 364px) 100vw, 364px\" \/><\/p>\n<p><strong>Step 0<\/strong>\u00a0\u2013 Login to your server via SSH. You better login as root.<\/p>\n<p><strong>Step 1<\/strong>\u00a0\u2013 Now issue this first command syntax:<\/p>\n<table width=\"707\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"675\">yum install gcc make rpm-build autoconf.noarch zlib-devel pam-devel openssl-devel -y<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"465\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-setup-config-openvpn-on-centos-6-4\/attachment\/1-17\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/1-6.png?fit=659%2C229&amp;ssl=1\" data-orig-size=\"659,229\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"1\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/1-6.png?fit=300%2C104&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/1-6.png?fit=659%2C229&amp;ssl=1\" class=\"alignnone  wp-image-465\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2016\/08\/1-6-300x104.png?resize=519%2C180&#038;ssl=1\" alt=\"1\" width=\"519\" height=\"180\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/1-6.png?resize=300%2C104&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/1-6.png?w=659&amp;ssl=1 659w\" sizes=\"auto, (max-width: 519px) 100vw, 519px\" \/><\/p>\n<p><strong>Step 2<\/strong>\u00a0\u2013 Now download LZO RPM and Configure RPMForge Repo. Use wget command:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"573\">wget http:\/\/openvpn.net\/release\/lzo-1.08-4.rf.src.rpm<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>screenshot:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"466\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-setup-config-openvpn-on-centos-6-4\/attachment\/2-16\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/2-6.png?fit=547%2C223&amp;ssl=1\" data-orig-size=\"547,223\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"2\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/2-6.png?fit=300%2C122&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/2-6.png?fit=547%2C223&amp;ssl=1\" class=\"alignnone  wp-image-466\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2016\/08\/2-6-300x122.png?resize=511%2C208&#038;ssl=1\" alt=\"2\" width=\"511\" height=\"208\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/2-6.png?resize=300%2C122&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/2-6.png?w=547&amp;ssl=1 547w\" sizes=\"auto, (max-width: 511px) 100vw, 511px\" \/><\/p>\n<p><strong>Step 3<\/strong>\u00a0\u2013 Now add correct repo for your server:<\/p>\n<p><strong>CentOS 6 32-bit (x86):<\/strong><\/p>\n<table width=\"738\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"706\">wget http:\/\/pkgs.repoforge.org\/rpmforge-release\/rpmforge-release-0.5.2-1.el6.rf.i686.rpm<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>CentOS 6 64-bit (x86_64):<\/strong><\/p>\n<table width=\"753\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"721\">wget http:\/\/pkgs.repoforge.org\/rpmforge-release\/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>screenshot:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"467\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-setup-config-openvpn-on-centos-6-4\/attachment\/3-15\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/3-6.png?fit=547%2C209&amp;ssl=1\" data-orig-size=\"547,209\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"3\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/3-6.png?fit=300%2C115&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/3-6.png?fit=547%2C209&amp;ssl=1\" class=\"alignnone  wp-image-467\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2016\/08\/3-6-300x115.png?resize=545%2C209&#038;ssl=1\" alt=\"3\" width=\"545\" height=\"209\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/3-6.png?resize=300%2C115&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/3-6.png?w=547&amp;ssl=1 547w\" sizes=\"auto, (max-width: 545px) 100vw, 545px\" \/><\/p>\n<p>How to know which one is your server? Issue this command:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"573\">uname -a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>If you see \u201c<em>x86_64 GNU\/Linux<\/em>\u201d at the end of the output line means your server is 64-bit. Otherwise if you see \u201c<em>i686 i386 GNU\/Linux<\/em>\u201d or \u201c<em>x86 GNU\/Linux<\/em>\u201d means your machine is 32-bit.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"468\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-setup-config-openvpn-on-centos-6-4\/attachment\/4-13\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/4-5.png?fit=545%2C84&amp;ssl=1\" data-orig-size=\"545,84\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"4\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/4-5.png?fit=300%2C46&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/4-5.png?fit=545%2C84&amp;ssl=1\" class=\"alignnone  wp-image-468\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2016\/08\/4-5-300x46.png?resize=541%2C83&#038;ssl=1\" alt=\"4\" width=\"541\" height=\"83\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/4-5.png?resize=300%2C46&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/4-5.png?w=545&amp;ssl=1 545w\" sizes=\"auto, (max-width: 541px) 100vw, 541px\" \/><\/p>\n<p><strong>Step 4<\/strong>\u00a0\u2013 Then build the rpm package using this command:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>\n<p>1<\/p>\n<p>2<\/p>\n<p>3<\/td>\n<td width=\"573\">\n<p>rpmbuild &#8211;rebuild lzo-1.08-4.rf.src.rpm<\/p>\n<p>rpm -Uvh lzo-*.rpm<\/p>\n<p>rpm -Uvh rpmforge-release*<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>hit enter for each line above.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"451\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-setup-config-openvpn-on-centos-6-4\/attachment\/5-11\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/5-5.png?fit=647%2C95&amp;ssl=1\" data-orig-size=\"647,95\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"5\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/5-5.png?fit=300%2C44&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/5-5.png?fit=647%2C95&amp;ssl=1\" class=\"alignnone  wp-image-451\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2016\/08\/5-5-300x44.png?resize=505%2C74&#038;ssl=1\" alt=\"5\" width=\"505\" height=\"74\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/5-5.png?resize=300%2C44&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/5-5.png?w=647&amp;ssl=1 647w\" sizes=\"auto, (max-width: 505px) 100vw, 505px\" \/><\/p>\n<h3>INSTALLING OPENVPN<\/h3>\n<p><strong>Step 5<\/strong>\u00a0\u2013 Issue the special yum command:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"573\">yum install openvpn -y<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>screenshot<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"452\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-setup-config-openvpn-on-centos-6-4\/attachment\/5-2-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/5-2-1.png?fit=543%2C319&amp;ssl=1\" data-orig-size=\"543,319\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"5-2\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/5-2-1.png?fit=300%2C176&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/5-2-1.png?fit=543%2C319&amp;ssl=1\" class=\"alignnone  wp-image-452\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2016\/08\/5-2-1-300x176.png?resize=453%2C266&#038;ssl=1\" alt=\"5-2\" width=\"453\" height=\"266\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/5-2-1.png?resize=300%2C176&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/5-2-1.png?w=543&amp;ssl=1 543w\" sizes=\"auto, (max-width: 453px) 100vw, 453px\" \/><\/p>\n<p><strong>Step 6<\/strong>\u00a0\u2013 Copy the easy-rsa folder to \/etc\/openvpn\/, use this command:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"573\">cp -R \/usr\/share\/doc\/openvpn-2.2.2\/easy-rsa\/ \/etc\/openvpn\/<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Step 7<\/strong>\u00a0\u2013 Now edit it:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"573\">nano \/etc\/openvpn\/easy-rsa\/2.0\/vars<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Edit this line:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"573\">export KEY_CONFIG=&#8217;$EASY_RSA\/whichopensslcnf $EASY_RSA&#8217;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>replace it with:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"573\">export KEY_CONFIG=\/etc\/openvpn\/easy-rsa\/2.0\/openssl-1.0.0.cnf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>screenshot:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"454\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-setup-config-openvpn-on-centos-6-4\/attachment\/7-10\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/7-5.png?fit=535%2C402&amp;ssl=1\" data-orig-size=\"535,402\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"7\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/7-5.png?fit=300%2C225&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/7-5.png?fit=535%2C402&amp;ssl=1\" class=\"alignnone  wp-image-454\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2016\/08\/7-5-300x225.png?resize=359%2C269&#038;ssl=1\" alt=\"7\" width=\"359\" height=\"269\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/7-5.png?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/7-5.png?w=535&amp;ssl=1 535w\" sizes=\"auto, (max-width: 359px) 100vw, 359px\" \/><\/p>\n<p>once done hit Control+O to save then Control+X to exit.<\/p>\n<p><strong>Step 8<\/strong>\u00a0\u2013 Create the certificate using these commands:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>\n<p>1<\/p>\n<p>2<\/p>\n<p>3<\/p>\n<p>4<\/p>\n<p>5<\/td>\n<td width=\"573\">\n<p>cd \/etc\/openvpn\/easy-rsa\/2.0<\/p>\n<p>chmod 755 *<\/p>\n<p>source .\/vars<\/p>\n<p>.\/vars<\/p>\n<p>.\/clean-all<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>hit enter for each line.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"455\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-setup-config-openvpn-on-centos-6-4\/attachment\/8-10\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/8-5.png?fit=545%2C181&amp;ssl=1\" data-orig-size=\"545,181\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"8\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/8-5.png?fit=300%2C100&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/8-5.png?fit=545%2C181&amp;ssl=1\" class=\"alignnone  wp-image-455\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2016\/08\/8-5-300x100.png?resize=456%2C152&#038;ssl=1\" alt=\"8\" width=\"456\" height=\"152\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/8-5.png?resize=300%2C100&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/8-5.png?w=545&amp;ssl=1 545w\" sizes=\"auto, (max-width: 456px) 100vw, 456px\" \/><\/p>\n<p><strong>Step 9<\/strong>\u00a0\u2013 It\u2019s time to build necessary CA file:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"573\">.\/build-ca<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>screenshot:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"456\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-setup-config-openvpn-on-centos-6-4\/attachment\/9-7\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/9-4.png?fit=546%2C401&amp;ssl=1\" data-orig-size=\"546,401\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"9\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/9-4.png?fit=300%2C220&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/9-4.png?fit=546%2C401&amp;ssl=1\" class=\"alignnone  wp-image-456\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2016\/08\/9-4-300x220.png?resize=485%2C356&#038;ssl=1\" alt=\"9\" width=\"485\" height=\"356\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/9-4.png?resize=300%2C220&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/9-4.png?w=546&amp;ssl=1 546w\" sizes=\"auto, (max-width: 485px) 100vw, 485px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Step 10<\/strong>\u00a0\u2013 Time to build Key Server:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"573\">.\/build-key-server server<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>screenshot:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"457\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-setup-config-openvpn-on-centos-6-4\/attachment\/10-7\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/10-4.png?fit=542%2C336&amp;ssl=1\" data-orig-size=\"542,336\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"10\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/10-4.png?fit=300%2C186&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/10-4.png?fit=542%2C336&amp;ssl=1\" class=\"alignnone  wp-image-457\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2016\/08\/10-4-300x186.png?resize=426%2C264&#038;ssl=1\" alt=\"10\" width=\"426\" height=\"264\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/10-4.png?resize=300%2C186&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/10-4.png?w=542&amp;ssl=1 542w\" sizes=\"auto, (max-width: 426px) 100vw, 426px\" \/><\/p>\n<p>You can simply leave them blank. The only 2 required are\u00a0<strong>sign the certificate\u00a0<\/strong>(choose \u201cy\u201d) and\u00a0<strong>1 out of 1 certificate requests<\/strong>\u00a0(choose \u201cy\u201d)<\/p>\n<p><strong>Step 11<\/strong>\u00a0\u2013 Now issue command below to build\u00a0<strong>Diffie Hellman<\/strong>:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"573\">.\/build-dh<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>screenshot:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"458\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-setup-config-openvpn-on-centos-6-4\/attachment\/11-7\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/11-4.png?fit=545%2C324&amp;ssl=1\" data-orig-size=\"545,324\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"11\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/11-4.png?fit=300%2C178&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/11-4.png?fit=545%2C324&amp;ssl=1\" class=\"alignnone  wp-image-458\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2016\/08\/11-4-300x178.png?resize=502%2C298&#038;ssl=1\" alt=\"11\" width=\"502\" height=\"298\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/11-4.png?resize=300%2C178&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/11-4.png?w=545&amp;ssl=1 545w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/p>\n<p><strong>Step 12<\/strong>\u00a0\u2013 Create OpenVPN config file:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"573\">nano \/etc\/openvpn\/server.conf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Step 13<\/strong>\u00a0\u2013 Now enter this value in that config file:<\/p>\n<table width=\"980\">\n<tbody>\n<tr>\n<td>\n<p>1<\/p>\n<p>2<\/p>\n<p>3<\/p>\n<p>4<\/p>\n<p>5<\/p>\n<p>6<\/p>\n<p>7<\/p>\n<p>8<\/p>\n<p>9<\/p>\n<p>10<\/p>\n<p>11<\/p>\n<p>12<\/p>\n<p>13<\/p>\n<p>14<\/p>\n<p>15<\/p>\n<p>16<\/p>\n<p>17<\/p>\n<p>18<\/p>\n<p>19<\/p>\n<p>20<\/p>\n<p>21<\/p>\n<p>22<\/p>\n<p>23<\/p>\n<p>24<\/p>\n<p>25<\/td>\n<td width=\"940\">\n<p>port 1194 #- port<\/p>\n<p>proto udp #- protocol<\/p>\n<p>dev tun<\/p>\n<p>tun-mtu 1500<\/p>\n<p>tun-mtu-extra 32<\/p>\n<p>mssfix 1450<\/p>\n<p>reneg-sec 0<\/p>\n<p>ca \/etc\/openvpn\/easy-rsa\/2.0\/keys\/ca.crt<\/p>\n<p>cert \/etc\/openvpn\/easy-rsa\/2.0\/keys\/server.crt<\/p>\n<p>key \/etc\/openvpn\/easy-rsa\/2.0\/keys\/server.key<\/p>\n<p>dh \/etc\/openvpn\/easy-rsa\/2.0\/keys\/dh1024.pem<\/p>\n<p>plugin \/usr\/share\/openvpn\/plugin\/lib\/openvpn-auth-pam.so \/etc\/pam.d\/login #- Comment this line if you are using FreeRADIUS<\/p>\n<p>#plugin \/etc\/openvpn\/radiusplugin.so \/etc\/openvpn\/radiusplugin.cnf #- Uncomment this line if you are using FreeRADIUS<\/p>\n<p>client-cert-not-required<\/p>\n<p>username-as-common-name<\/p>\n<p>server 10.8.0.0 255.255.255.0<\/p>\n<p>push &#8220;redirect-gateway def1&#8221;<\/p>\n<p>push &#8220;dhcp-option DNS 8.8.8.8&#8221;<\/p>\n<p>push &#8220;dhcp-option DNS 8.8.4.4&#8221;<\/p>\n<p>keepalive 5 30<\/p>\n<p>comp-lzo<\/p>\n<p>persist-key<\/p>\n<p>persist-tun<\/p>\n<p>status 1194.log<\/p>\n<p>verb 3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Save it once done. (Control+O then Control+X)<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"459\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-setup-config-openvpn-on-centos-6-4\/attachment\/12-6\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/12-4.png?fit=545%2C402&amp;ssl=1\" data-orig-size=\"545,402\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"12\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/12-4.png?fit=300%2C221&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/12-4.png?fit=545%2C402&amp;ssl=1\" class=\"alignnone  wp-image-459\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2016\/08\/12-4-300x221.png?resize=395%2C291&#038;ssl=1\" alt=\"12\" width=\"395\" height=\"291\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/12-4.png?resize=300%2C221&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/12-4.png?w=545&amp;ssl=1 545w\" sizes=\"auto, (max-width: 395px) 100vw, 395px\" \/><\/p>\n<p><strong>Step 14<\/strong>\u00a0\u2013 Lets start OpenVPN service on your server for the very first time:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"573\">service openvpn start<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>pic:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"460\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-setup-config-openvpn-on-centos-6-4\/attachment\/13-4\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/13-2.png?fit=545%2C141&amp;ssl=1\" data-orig-size=\"545,141\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"13\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/13-2.png?fit=300%2C78&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/13-2.png?fit=545%2C141&amp;ssl=1\" class=\"alignnone  wp-image-460\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2016\/08\/13-2-300x78.png?resize=469%2C122&#038;ssl=1\" alt=\"13\" width=\"469\" height=\"122\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/13-2.png?resize=300%2C78&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/13-2.png?w=545&amp;ssl=1 545w\" sizes=\"auto, (max-width: 469px) 100vw, 469px\" \/><\/p>\n<p><strong>Step 15<\/strong>\u00a0\u2013 You\u2019ll also need to enable IP forwarding in the file \/etc\/sysctl.conf. Open it and edit \u201cnet.ipv4.ip_forward\u201d line to 1:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"573\">nano \/etc\/sysctl.conf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>replace 0 with 1 in this line:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"573\">net.ipv4.ip_forward = 1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>pic:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"461\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-setup-config-openvpn-on-centos-6-4\/attachment\/14-4\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/14-2.png?fit=545%2C293&amp;ssl=1\" data-orig-size=\"545,293\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"14\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/14-2.png?fit=300%2C161&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/14-2.png?fit=545%2C293&amp;ssl=1\" class=\"alignnone  wp-image-461\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2016\/08\/14-2-300x161.png?resize=429%2C230&#038;ssl=1\" alt=\"14\" width=\"429\" height=\"230\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/14-2.png?resize=300%2C161&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/14-2.png?w=545&amp;ssl=1 545w\" sizes=\"auto, (max-width: 429px) 100vw, 429px\" \/><\/p>\n<p>Hit Control+O to save then Control+X to exit nano.<\/p>\n<p><strong>Step 16<\/strong>\u00a0\u2013 Issue this command to load the change:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"573\">sysctl -p<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Step 17<\/strong>\u00a0\u2013 Create new Linux username which can also be used to login to the VPN:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"573\">useradd username -s \/bin\/false<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>replace username with your own username.<\/p>\n<p>Then also create its password:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"573\">passwd username<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><strong>Step 18<\/strong>\u00a0\u2013 Now route some iptables.<\/p>\n<p>Xen and KVM users use:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"573\">iptables -t nat -A POSTROUTING -s 10.8.0.0\/24 -o eth0 -j MASQUERADE<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>special for OpenVZ use these two instead:<\/p>\n<table width=\"646\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"614\">iptables -t nat -A POSTROUTING -o venet0 -j SNAT &#8211;to-source 123.123.123.123<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>and<\/p>\n<table width=\"684\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"652\">iptables -t nat -A POSTROUTING -s 10.8.0.0\/24 -j SNAT &#8211;to-source 123.123.123.123<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Do not forget to replace 123.123.123.123 with your server IP. Pic:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"462\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-setup-config-openvpn-on-centos-6-4\/attachment\/15-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/15-1.png?fit=548%2C83&amp;ssl=1\" data-orig-size=\"548,83\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"15\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/15-1.png?fit=300%2C45&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/15-1.png?fit=548%2C83&amp;ssl=1\" class=\"alignnone  wp-image-462\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2016\/08\/15-1-300x45.png?resize=520%2C78&#038;ssl=1\" alt=\"15\" width=\"520\" height=\"78\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/15-1.png?resize=300%2C45&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/15-1.png?w=548&amp;ssl=1 548w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/p>\n<p><strong>Step 19<\/strong>\u00a0\u2013 Note: if you have CSF on the same server you need to open your OpenVPN port (Usually 1194) through the firewall and run the below commands for CSF:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>\n<p>1<\/p>\n<p>2<\/p>\n<p>3<\/p>\n<p>4<\/p>\n<p>5<\/td>\n<td width=\"573\">\n<p>iptables -A FORWARD -m state &#8211;state RELATED,ESTABLISHED -j ACCEPT<\/p>\n<p>iptables -A FORWARD -s 10.8.0.0\/24 -j ACCEPT<\/p>\n<p>iptables -A FORWARD -j REJECT<\/p>\n<p>iptables -t nat -A POSTROUTING -s 10.8.0.0\/24 -o eth0 -j MASQUERADE<\/p>\n<p>iptables -t nat -A POSTROUTING -j SNAT &#8211;to-source 123.123.123.123<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Step 20<\/strong>\u00a0\u2013 Now save that iptables rules:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"573\">service iptables save<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Step 21<\/strong>\u00a0\u2013 Finally lets create a server.ovpn config file. To make it easy, you can simply create it on your local computer using Notepad (or any other simple text editor tool). Enter following in that file:<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>\n<p>1<\/p>\n<p>2<\/p>\n<p>3<\/p>\n<p>4<\/p>\n<p>5<\/p>\n<p>6<\/p>\n<p>7<\/p>\n<p>8<\/p>\n<p>9<\/p>\n<p>10<\/p>\n<p>11<\/p>\n<p>12<\/p>\n<p>13<\/p>\n<p>14<\/p>\n<p>15<\/p>\n<p>16<\/td>\n<td width=\"565\">\n<p>client<\/p>\n<p>dev tun<\/p>\n<p>proto udp<\/p>\n<p>remote 123.123.123.123 1194 # &#8211; Your server IP and OpenVPN Port<\/p>\n<p>resolv-retry infinite<\/p>\n<p>nobind<\/p>\n<p>tun-mtu 1500<\/p>\n<p>tun-mtu-extra 32<\/p>\n<p>mssfix 1450<\/p>\n<p>persist-key<\/p>\n<p>persist-tun<\/p>\n<p>ca ca.crt<\/p>\n<p>auth-user-pass<\/p>\n<p>comp-lzo<\/p>\n<p>reneg-sec 0<\/p>\n<p>verb 3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Then save it with\u00a0<strong>.ovpn<\/strong>\u00a0extension. Save that file in the config directory of where you installed OpenVPN client in your computer. See screenshot:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"471\" data-permalink=\"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-setup-config-openvpn-on-centos-6-4\/attachment\/16shrrr\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/16shrrr.png?fit=600%2C410&amp;ssl=1\" data-orig-size=\"600,410\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"16shrrr\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/16shrrr.png?fit=300%2C205&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/16shrrr.png?fit=600%2C410&amp;ssl=1\" class=\"alignnone  wp-image-471\" src=\"https:\/\/i0.wp.com\/community.virtono.com\/wp-content\/uploads\/2016\/08\/16shrrr-300x205.png?resize=463%2C316&#038;ssl=1\" alt=\"16shrrr\" width=\"463\" height=\"316\" srcset=\"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/16shrrr.png?resize=300%2C205&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/16shrrr.png?w=600&amp;ssl=1 600w\" sizes=\"auto, (max-width: 463px) 100vw, 463px\" \/><\/p>\n<p><strong>Step 22<\/strong>\u00a0\u2013 That\u2019s it. Now you can copy ca.crt file from \/etc\/openvpn\/easy-rsa\/2.0\/keys\/ directory and place it in your server\u2019s document root (public_html).<\/p>\n<table width=\"605\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"573\">cp \/etc\/openvpn\/easy-rsa\/2.0\/keys\/ca.crt \/path\/to\/public\/directory<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>example:<\/p>\n<table width=\"638\">\n<tbody>\n<tr>\n<td>1<\/td>\n<td width=\"606\">cp \/etc\/openvpn\/easy-rsa\/2.0\/keys\/ca.crt \/var\/www\/servermom.com\/public_html<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Now you can download the\u00a0<strong>ca.crt<\/strong>\u00a0file from your browser by going to domain.com\/ca.crt then save it to the same folder as .ovpn file you created earlier.<\/p>\n<p>That\u2019s it. Now you can login to your VPN using username and password you\u2019ve created.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A brief introduction to CentOS, or if you are a restless soul, just go straight to the process. CentOS stands for Community ENTerprise Operating System. CentOS is an Enterprise-class Linux Distribution derived from sources freely provided to the public by a prominent North American Enterprise Linux vendor.\u00a0 CentOS conforms fully<\/p>\n","protected":false},"author":3,"featured_media":472,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[],"class_list":["post-450","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial-how-to"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/08\/vpn.jpg?fit=1600%2C900&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7ISfL-7g","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":2118,"url":"https:\/\/www.virtono.com\/community\/internet-and-technology-news\/centos-jumps-off-the-cliff-centos-8-ending-next-year-to-focus-shift-on-centos-stream\/","url_meta":{"origin":450,"position":0},"title":"CentOS Jumps off the cliff &#8211; CentOS 8 Ending Next Year To Focus Shift On CentOS Stream","author":"Shreyash Sharma","date":"December 9, 2020","format":false,"excerpt":"The developers behind the Red Hat Enterprise Linux (RHEL) binary-compatible distribution CentOS have announced the immediate availability of CentOS 8.3 . The new version inherits most of the features and innovations from RHEL 8.3, which was released a little over a month ago. The new version brings innovations mainly in\u2026","rel":"","context":"In &quot;IT News&quot;","block_context":{"text":"IT News","link":"https:\/\/www.virtono.com\/community\/category\/internet-and-technology-news\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/12\/CentOS_Stream_Blogimage.png?fit=1025%2C575&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/12\/CentOS_Stream_Blogimage.png?fit=1025%2C575&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/12\/CentOS_Stream_Blogimage.png?fit=1025%2C575&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2020\/12\/CentOS_Stream_Blogimage.png?fit=1025%2C575&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":670,"url":"https:\/\/www.virtono.com\/community\/knowledgebase\/comparing-oss-centos-ubuntu-or-debian\/","url_meta":{"origin":450,"position":1},"title":"Comparing OSs &#8212; CentOS, Ubuntu or Debian?","author":"Daniel Draga","date":"September 28, 2016","format":false,"excerpt":"CentOS \u009ewhich stands for Community Enterprise Operating System, is the result of a group of open source contributors and users working together to develop Linux solutions that are freely available to users who do not require a great deal of commercial support to achieve their goal. \u009eCentOS dedicated servers were\u2026","rel":"","context":"In &quot;Knowledgebase&quot;","block_context":{"text":"Knowledgebase","link":"https:\/\/www.virtono.com\/community\/category\/knowledgebase\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/09\/centos-debian-ubuntu-06.png?fit=400%2C300&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3264,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-ansible-on-centos\/","url_meta":{"origin":450,"position":2},"title":"How to install Ansible on CentOS","author":"George B.","date":"April 18, 2023","format":false,"excerpt":"In this article, we will discuss how to install Ansible on CentOS, one of the most popular Linux distributions used in server environments. Ansible is a powerful automation tool that can be used to manage configurations, deploy applications, and perform various administrative tasks on remote servers. Step 1: Update Your\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/How-To-Install-Ansible-CentOS.png?fit=600%2C330&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/How-To-Install-Ansible-CentOS.png?fit=600%2C330&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/04\/How-To-Install-Ansible-CentOS.png?fit=600%2C330&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":3420,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-tensorflow-on-linux\/","url_meta":{"origin":450,"position":3},"title":"How to Install TensorFlow On Linux","author":"George B.","date":"May 29, 2023","format":false,"excerpt":"Whether you're an aspiring data scientist or a seasoned professional, knowing how to install TensorFlow on Linux distribution is crucial. In this tutorial, we will guide you through the installation process on popular Linux distributions such as CentOS, Ubuntu, AlmaLinux, and Rocky Linux. TensorFlow is a versatile and powerful open-source\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/How-to-Install-TensorFlow-On-Linux.png?fit=600%2C330&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/How-to-Install-TensorFlow-On-Linux.png?fit=600%2C330&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/05\/How-to-Install-TensorFlow-On-Linux.png?fit=600%2C330&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":708,"url":"https:\/\/www.virtono.com\/community\/knowledgebase\/linux-hardening-securing-your-centos-6-server\/","url_meta":{"origin":450,"position":4},"title":"Linux Hardening : Securing your CentOS 6 server","author":"Daniel Draga","date":"October 18, 2016","format":false,"excerpt":"","rel":"","context":"In &quot;Knowledgebase&quot;","block_context":{"text":"Knowledgebase","link":"https:\/\/www.virtono.com\/community\/category\/knowledgebase\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/10\/centos.jpg?fit=525%2C291&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/10\/centos.jpg?fit=525%2C291&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2016\/10\/centos.jpg?fit=525%2C291&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":3904,"url":"https:\/\/www.virtono.com\/community\/tutorial-how-to\/how-to-install-flask-on-ubuntu-and-centos\/","url_meta":{"origin":450,"position":5},"title":"How to Install Flask on Ubuntu and CentOS","author":"George B.","date":"September 20, 2023","format":false,"excerpt":"Flask, a micro web framework written in Python, is an excellent tool for developers looking to create robust web applications. Its simplicity and flexibility make it a popular choice among developers worldwide. This article will guide you through the process of installing Flask on Ubuntu and CentOS. Prerequisites Make sure\u2026","rel":"","context":"In &quot;Tutorials&quot;","block_context":{"text":"Tutorials","link":"https:\/\/www.virtono.com\/community\/category\/tutorial-how-to\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.virtono.com\/community\/wp-content\/uploads\/2023\/09\/How-to-Install-Flask-on-Ubuntu-and-CentOS.png?fit=360%2C240&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/comments?post=450"}],"version-history":[{"count":2,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/450\/revisions"}],"predecessor-version":[{"id":474,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/posts\/450\/revisions\/474"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media\/472"}],"wp:attachment":[{"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/media?parent=450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/categories?post=450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.virtono.com\/community\/wp-json\/wp\/v2\/tags?post=450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}