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.