One-click pptp vpn installation package (image text, applicable to OpenVZ)

Source: Internet
Author: User
Tags vps

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

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.