Photonvps xen VPs build PPTP Service (centos 5.7 64bit)

Source: Internet
Author: User
Tags vps install perl

1. frist, make sure you have PPP installed

Yum install-y PPP iptables

Yum install Perl

2. Download lastest version pptpd RPM package

Wget http://acelnmp.googlecode.com/files/pptpd-1.3.4-1.rhel5.1.x86_64.rpm

3. Installing the RPM

Rpm-IVH pptpd-1.3.4-1.rhel5.1.i386.rpm

4. open the file/etc/PPP/options.ppt PD

VI/etc/PPP/options.ppt PD

Uncomment the MS-DNS lines (by removing the '#' in front of them) and change them to the DNS servers provided by your ISP or to public DNS servers like ones provided by opendns.

MS-DNS 208.67.222.222
MS-DNS 208.67.220.220

5. open the file/etc/PPP/chap-secrets

VI/etc/PPP/chap-secrets

Add usernames and passwords for your clients. You need to enter the usernames and passwords in the following format.

Myusername pptpd mypassword *

6. open the file/etc/pptpd. conf

VI/etc/pptpd. conf

Go to the end of the file where you can see examples of localip and remoteip. below them add your own values for localip and remoteip.

Localip 192.168.8.1
Remoteip 192.168.8.101-200

7. open the file/etc/sysctl. conf

VI/etc/sysctl. conf

Enable IP Forwarding and make the changes to sysctl. conf take into tnet. ipv4.ip _ forward = 1
/Sbin/sysctl-P

8. Configure iptables to do Nat.

/Sbin/service iptables start
/Sbin/iptables-T Nat-A postrouting-O eth0-s 192.168.8.0/24-J Masquerade
Service iptables save

9. Finally, start the PPTP Service

/Sbin/service pptpd start
Chkconfig pptpd on

 

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.