Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
{"id":2556,"date":"2019-12-06T14:23:14","date_gmt":"2019-12-06T14:23:14","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2556"},"modified":"2019-12-06T23:45:04","modified_gmt":"2019-12-06T23:45:04","slug":"installing-openvpn-on-centos-7","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/installing-openvpn-on-centos-7\/","title":{"rendered":"Installing OpenVPN on CentOS 7"},"content":{"rendered":"

In today’s society, security and privacy is a problem when you are at public areas like airports, coffee shops, hotels, or any location that offers free public WiFi. Outsiders can monitor internet traffic between your computer and the web. OpenVPN is an open source application that implements a virtual private network, which will create a secure connection between you and your remote destination (website or server).\u00a0This tutorial will show you how to install and setup OpenVPN on CentOS 7.<\/strong><\/p>\n

Step 1: Install net-tools<\/h3>\n

CentOS 7 does not include\u00a0ifconfig<\/code>\u00a0which is located in the net-tools package.\u00a0OpenVPN requires<\/strong>\u00a0ifconfig<\/code>\u00a0in order to properly operate. Run the following commands on your server to install net-tools:<\/p>\n

yum update\r\nyum install net-tools\r\n<\/code><\/pre>\n

Step 2: Download OpenVPN<\/h3>\n

You will now need to download the RPM for OpenVPN. Run the following command:<\/p>\n

cd \/tmp\r\nwget http:\/\/swupdate.openvpn.org\/as\/openvpn-as-2.0.10-CentOS7.x86_64.rpm\r\n<\/code><\/pre>\n

Step 3: Install and Setup OpenVPN<\/h3>\n

Please note, this RPM is for CentOS 7. Installing it on anything other CentOS 7 may result in errors. Run the following command to install OpenVPN:<\/p>\n

rpm -Uvh openvpn-as-2.0.10-CentOS7.x86_64.rpm \r\n<\/code><\/pre>\n

If your installation was successful, you should see the following (Replace 0.0.0.0 accordingly):<\/p>\n

The Access Server has been successfully installed in \/usr\/local\/openvpn_as\r\nConfiguration log file has been written to \/usr\/local\/openvpn_as\/init.log\r\nPlease enter \"passwd openvpn\" to set the initial\r\nadministrative password, then login as \"openvpn\" to continue\r\nconfiguration here: https:\/\/0.0.0.0:943\/admin\r\nTo reconfigure manually, use the \/usr\/local\/openvpn_as\/bin\/ovpn-init tool.\r\n\r\n\r\nAccess Server web UIs are available here:\r\nAdmin  UI: https:\/\/0.0.0.0:943\/admin\r\nClient UI: https:\/\/0.0.0.0:943\/\r\n<\/code><\/pre>\n

Once you see this message, you want to run\u00a0passwd openvpn<\/code>\u00a0to change the password to the account. Following that, open your browser and navigate to\u00a0https:\/\/0.0.0.0:943\/<\/code>. You will be presented with a login screen. On the login screen, continue logging in with the username being\u00a0openvpn<\/code>\u00a0the password that you used with the\u00a0passwd<\/code>\u00a0command. Once you are logged in, you will see 6 links. Click on the last link. This will allow you to download your VPN profile which allows you setup your VPN client.<\/p>\n

Next, click on the admin button and login with the same username and password that you have entered previously. Once you are in, and you have read and agreed with the terms, you be on a page that shows your server status. If the status is off, press the\u00a0Start the Server<\/code>\u00a0button to turn the VPN server on. If no errors occurred, you will see\u00a0Server Started<\/code>\u00a0with the status being\u00a0On<\/code>. Now you are ready to go on to the next step.<\/p>\n

Step 4: Using OpenVPN on Your Computer<\/strong><\/h3>\n

Depending on your operating system or device, your setup will be different. From here forward, this tutorial provides setups for users of Ubuntu 14.04. If you are using any other OS or device, please follow one of the links located on\u00a0https:\/\/0.0.0.0:943<\/code>, once you have logged in.<\/p>\n

On your computer open up terminal and run:<\/strong><\/p>\n

 sudo apt-get install openvpn\r\n<\/code><\/pre>\n

This command will install the VPN client software.\u00a0The VPN client software establishes<\/strong>\u00a0a connection between your computer and the VPN.\u00a0Once it has finished downloading<\/strong>, you will want to check to make sure that it is installed by running:<\/p>\n

openvpn \u2013version\r\n<\/code><\/pre>\n

Upon success, you will see a similar output printed on your screen:<\/strong><\/p>\n

OpenVPN 2.3.2 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [eurephia] [MH] [IPv6] built on Feb  4 2014\r\n<\/code><\/pre>\n

You have installed OpenVPN on your computer. Next, run the following command:<\/p>\n

sudo openvpn --config \/path\/to\/client.ovpn\r\n<\/code><\/pre>\n

This will prompt you to enter the username and password of your VPN. After logging in, your computer will be connected to your VPN. To verify your VPN connection, visit your favorite search engine and type “IP address”. You will be presented with a list of websites that show your current IP address (some search engines will even include your IP in the search results). Confirm your current IP address. If your IP address displayed is different from the IP address assigned to you by your ISP, then you have successfully connected to your VPN server.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[231,242,244,247],"manual_kb_tag":[348],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2556"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2556"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2556\/revisions"}],"predecessor-version":[{"id":2557,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2556\/revisions\/2557"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2556"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2556"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}