VPS a key to build OpenVPN method detailed

Source: Internet
Author: User
Tags centos vps port number openvpn gui
It is said that now PPTP, L2TP and so on are not very good, and the OpenVPN sometimes seemingly also do not connect (for example, the previous article, on many people can not connect to the reaction installed), this article is about using the OpenVPN Access server free version to build an anti-jamming VPN;
OpenVPN Access Server free version only supports 2 users to connect at the same time, but it is completely OK for your own use, and the installation is very simple. Let's talk about tutorials.
"Download the corresponding software"
According to your VPS system, download the corresponding software, download the page as: https://openvpn.net/index.php/access-server/download-openvpn-as-sw.html.
Well, found that the above address needs to climb the wall to open, listed below some of the common system software download address:
CentOS 5 32bit:http://swupdate.openvpn.org/as/openvpn-as-1.8.4-centos5.i386.rpm
CentOS 5 64bit:http://swupdate.openvpn.org/as/openvpn-as-1.8.4-centos5.x86_64.rpm
Ubuntu Ten 32bit:http://swupdate.openvpn.org/as/openvpn-as-1.8.4-ubuntu10.i386.deb
Ubuntu Ten 64bit:http://swupdate.openvpn.org/as/openvpn-as-1.8.4-ubuntu10.amd_64.deb
Ubuntu 10 corresponds to the Debian 6 system; others open the above page to download.
"Software Installation Commands"
Debian and Ubuntu Software Installation commands: Dpkg-i Openvpn-as-1.8.4-ubuntu10.i386.deb
CentOS Software Installation command: RPM-IVH openvpn-as-1.8.4-centos5.i386.rpm
"Wget Download and install"
Download software such as wget, then install it with the above installation command. CentOS 5 64bit Installation Example:
1.wget http://swupdate.openvpn.org/as/openvpn-as-1.8.4-CentOS5.x86_64.rpm
2.RPM-IVH openvpn-as-1.8.4-centos5.x86_64.rpm
3.PASSWD OpenVPN
The last command above is used to set the password for the OpenVPN account and enter it 2 times.
"Manage pages, configure"
After the installation is successful, the OpenVPN administrative address and the client login address are automatically printed:
https://ip:943/admin/
https://ip:943/
First access to https://ip:943/admin/, the username is OpenVPN, the password is the password set after the download.
First on the left, user management the user Permissions, on the right side of the OpenVPN username, has a allow auto-login option, checked.
Then click Save Settings below, and of course you can add another username, but the limit of 2 users seems unnecessary.
Next, the configuration on the left is the server network Settings.
TCP port number and UDP port number are set to 3389 and 989, respectively, as shown above, and other ports appear to be OK, please try it yourself.
Finally restart the service. The earth seems to have not found the option to restart, the amount, fool operation, in the management of the home page, first stop the service, and then start.
"OpenVPN Use"
HTTPS://IP:943/, Access this address, enter a username and password, and choose login (not the default connect) to log in:
Download Ovpn configuration file:
Download the save, then copy to the directory, or copy directly to the C:Program Filesopenvpnconfig directory;
Of course, there is a prerequisite for this directory, you must first install the OpenVPN client
Download address http://openvpn.net/index.php/open-source/downloads.html Download the appropriate version according to your system.
Win7 users need to run the OpenVPN GUI as an administrator. Right key to the bottom right corner of the icon, click Connect on it.
The red icon indicates a disconnected state, yellow is in the connection, and the green icon is connected.
This method has been tested and can be connected properly. Go to ip138.com to see if the local IP is the IP address of the VPS.
Conclusion
This is the end of the tutorial, this article was written on March 6, 2013, and the Earth ensures that this method is effective at the time of publication (OpenVPN anti-interference), at least on my side.
OpenVPN Access server also has a number of features, IP address + port number, plus directory admin access to the admin page, there are more settings can be pondered.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.