Build your own PPTP Vpn on VPS

Source: Internet
Author: User
Tags vps

Set up your own PPTP Vpn apt-get update apt-get install-y pptpd on VPS to edit/etc/pptpd. conf, add: localip 192.168.92.1 remoteip 192.168.92.11-16 localip is the address of the vpn Server remoteip is the address of the vpn Client, you can configure an address range to edit/etc/ppp/pptpd-options: ms-dns 8.8.8.8 ms-dns 8.8.4.4 edit/etc/ppp/chap-secrets and add an access account: username pptpd password * is: User Name VPN service name password assigned IP address (* Indicates unlimited) edit/etc/sysctl. conf: net. ipv4.ip _ forward = 1 remove the # sign in front of the edge, and then execute the following command to make the configuration take effect: sysctl-p edit/etc/rc. local (or/etc/init. d/rc. (important) VPS suitable for the OpenVZ architecture, 12.34.56.78 is the public IP address iptables-t nat-a postrouting-s 192.168.92.0/24-j SNAT -- to-source VPN Server IPchmod + x/etc/rc. localreboot

Related Article

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.