The full name of VPN is "Virtual Private Network", and the Chinese name is "Virtual Private Network ". VPN can connect to the Internet through a special encrypted communication protocol, and establish a proprietary communication line between two or more intranets located in different places. He provides firewall functions, authentication, encryption, tunneling, and other functions.
[Installation]
The one-click installation package has passed the test in the VPS (OpenVZ) provided by Hostitek.
In addition, this site also provides an L2TP VPN one-key installation package tutorial. For details, see: L2TP VPN one-key installation package installation and use (OpenVZ supported).
1. Check support for virtual NICs
The VPS customers of OpenVZ need to check the support of the ppp module of the virtual network card. If it is not supported, it is useless even if the installation is successful. (Skip this step for Xen and so on)
Check whether the ppp module is supported
Run the following command:
cat /dev/ppp
If the returned message is: cat:/dev/ppp: No such device or address, the operation is normal.
2. log on to SSH using the Administrator account password and enter the following command
wget http://soft.kwx.gd/vpn/pptpd.sh
3. the above steps are to download the installation script. After the download is complete, execute the following directly:
sh pptpd.sh
4. Installation Complete
After the installation is complete, you must note that the last line of the character is your VPN user name and password (Default Account: vpn ). To add a user or modify an account, you only need to edit the input command vim/etc/ppp/chap-secrets and add the user name and password in the same format.
5. Remove encryption (some VPS do not support encryption)
Edit/etc/ppp/options.ppt pd (vim/etc/ppp/options.ppt pd), add a number before the require-mppe-128 # (# require-mppe-128 );
In the VPN connection properties, Select optional encryption mode and allow unencrypted passwords.
Restart PPTPD:
/etc/init.d/pptpd restart