1. Use yum install ppp to install ppp
2. Download the last version of pptpd from below link :
3. Use rpm –ivh pptpd-lastversion.rpm to install the pptpd package
4. Open /etc/pptpd.conf, uncomment and edit localip and remoteip as you want.
5. Open /etc/ppp/chap-secrets and add the users connection information there :
# client server secret IP addresses
username pptpd password *
6. Restart the PPTP server.
* To use DNS address for clients open /etc/ppp/options.pptpd, uncomment and edit the DNS part :
ms-dns DNS Server Address
7. Open /etc/sysctl.conf and change net.ipv4.ip_forward=0 to 1
8. Use iptables command as below :
# iptables -t nat -I POSTROUTING -s source network -o output Ethernet -j SNAT --to gateway IP address
Ex. # iptables -t nat -I POSTROUTING -s 192.168.0.0/24 -o eth0 -j SNAT --to 192.168.1.1
9. Save your configuration :
/sbin/service iptables save
0 comments:
Post a Comment