How to build a vpn on Centos6

Source: Internet
Author: User


Previously Centos5, pptp vpn can be installed according to the one-click installation package on the Internet, but after being replaced with Centos6.2, the file does not exist. The following is a one-click pptp vpn script and installation method for Centos6.5. I only tested it in the 64-bit centos system. Test it on your own for 32-bit instances.

Step 1: Download the one-click installation script of pptp vpn

Wget-c http://www.xiaohuai.com/down/vpn_centos6.sh & chmod + x vpn_centos6.sh

Step 2: execute the installer

Sh vpn_centos6.sh

Step 3, the English meanings of the three options are displayed.

1. Install the VPN service
2. VPN repair
3. Add a VPN user
Step 4: Enter 1 to install vpn
The system will give a random password, the user name is vpn
Step 5 enable IP forwarding


Modify/etc/sysctl. conf and net. ipv4.ip _ forward = 1.


Run sysctl-p to make the configuration take effect.

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.