Set up your own PPTPVpnapt-getupdateapt-getinstall-ypptpd edit/etc/pptpd on VPS. conf, add: localip192.168.92.1remoteip192.168.92.11-16localip is the address of the vpn server remoteip is the vpn customer... 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
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.