1. yum install ppp -y


2 wget http://poptop.sourceforge.net/yum/stable/packages/ppp-2.4.5-33.0.rhel6.x86_64.rpm

 

3. rpm -Uhv ppp-2.4.5-33.0.rhel6.x86_64.rpm

 

4. vi /etc/pptpd.conf

– add “localip 192.168.1.1”

– add “remoteip 192.168.1.2-254”

 

4. vi /etc/ppp/options.pptpd

– add “ms-dns 8.8.8.8”

 

5. vi /etc/ppp/chap-secrets

– add “username” pptpd “password” *

 

6. vi /etc/sysctl.conf

– change “net.ipv4.ip_forward = 1”

 

7. sysctl -p

– to take effect

 

8. iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

service iptables save
service iptables restart

9. chkconfig pptpd on
init 6
Trackback

no comment untill now

Sorry, comments closed.