Centos system VPN configuration method

Source: Internet
Author: User
Step 1: confirm that the machine has activated PPP and TUNcat/dev/pppcat/dev/net/tun. after using the above two lines of script, do you see the same prompt as me, it can be installed. If not, you need to find the master machine to allow the installation of PPP and TUN. If you have not activated the service, contact the seller through online TK or other methods to activate the PPP or TUN service. you need to restart the machine to make the service take effect until you see the preceding running result.

Step 1. confirm that the machine has activated PPP and TUN

cat /dev/pppcat /dev/net/tun

After using the above two lines of script, do you see the same prompt as me? If yes, you can install it. If not, you need to find the master machine to allow the installation of PPP and TUN.

If you have not activated the service, contact the seller through online TK or other methods to activate the PPP or TUN service. you need to restart the machine to make the service take effect until you see the preceding running result to install the following script. If your machine re-installs the system, you need to ask the government to activate the PPP or TUN service again.

Step 2: One-click installation script

wget http://www.laozuo.org/download/scripts/openvz_centos_vpn.shchmod a+x openvz_centos_vpn.shbash openvz_centos_vpn.sh

Three options are displayed during script running.

Install the system, repair the system, and add new users. Definitely choose 1 new installation system. Enter 1 and press Enter. the user name and password are displayed.

Finally, if you want to create a user

bash openvz_centos_vpn.sh

You can also see the 1-3 option through the above Command. enter 3 to enter the user name and password to create a new user. Because the default user password is random and hard to remember, you can set the user name and password as needed.

In this way, the Openvz CentOS vps pptp vpn function can be perfectly implemented, and the specific usage depends on your needs.

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.