Run pptpd on CentOS to implement VPN Service

Source: Internet
Author: User
Tags vps

Run pptpd on CentOS to implement VPN Service
Buy a cheap VPS and install the linux system. Run pptpd to implement the VPN service and use the famous iptables for nat forwarding. This looks like a professional VPN service. Then configure the user name and password, you can achieve multi-person sharing vpn simple steps are as follows: 1 buy vps 5.99 $/year https://bandwagonhost.com/aff.php? Aff = 1018_____________________________________________________________________________________________________________________ 3 install pptpd and, steps below wget http://www.diahosting.com/dload/pptpd.sh # download installation script sh pptpd. sh # execute this script, will automatically download the appropriate rpm-ivh ppp-2.4.4-9.0.rhel5.i386.rpm # Install ppp, because pptpd depends on this package rpm-ivhpptpd-1.3.4-1.rhel5.1.i386.rpm # Install pptpd _________________________________________________ 4 configure pptpd to edit/etc/pptpd. add the following two lines to the conf file: localip 192.168.0.2 # vpn service ipremoteip 192.168.0.234-238 # vpn Client ip automatic allocation range editing/etc/ppp/chap-secrets Add User abc password 123abc pptpd "123 "* modify DNS server, edit/etc/ppp/options and add the following content: ms-dns 8.8.8.8ms-dns 8.8.4.4 edit/etc/sysctl. conf file. comment out before ipv4.ip _ forward = 1. Enable ipv4 forwarding and run the following command to make the configuration modification take effect. sysctl-p restarts pptpd service/etc/init. d/pptpd restart (now pptpd configuration is complete) 5 configure iptables for forwarding, after connecting to the vpn, you can access the Internet and execute the following command: iptables-t nat-a postrouting-s 192.168.0.0/24-j SNAT -- to-source IP, and then execute service iptables save to save it, then restart the service iptables restart. Here, the 192 CIDR block is the vpn Intranet segment and the IP address is the public IP address of the vps. Note that the iptables is configured as follows because of the openvz architecture, if it is zen architecture vps, then refer to the http://www.chenjunlu.com/2012/04/how-to-setup-a-pptp-vpn-server-under-linode-vps/, how to distinguish between these two architectures, refer to the http://lrbnew.blog.163.com/blog/static/3247877201472525341798/6 in win7 configure vpn, enter your vps public ip, pptpd user name and password, the vpn provided by this vps can be used normally. This article refer to the http://www.chenjunlu.com/2012/04/how-to-setup-a-pptp-vpn-server-under-linode-vps/

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.