1- kur
centos:
rpm -i http://poptop.sourceforge.net/yum/stable/rhel6/pptp-release-current.noarch.rpm
yum -y install pptpd
ubuntu:
apt-get install pptpd
2- ip tanimla
nano /etc/pptpd.conf
en alta ekle
localip 10.0.0.1
remoteip 10.0.0.100-200
3- kullanici adi sifre tanimla
nano /etc/ppp/chap-secrets
user1 pptpd password *
4- dns sunucu tanimla
nano /etc/ppp/pptpd-options
ms-dns 8.8.8.8
ms-dns 8.8.4.4
5- servisi baslat
service pptpd restart
6- ipv4 forwardingi ac
nano /etc/sysctl.conf
net.ipv4.ip_forward = 1
7- degisiklikleri uygula
sysctl -p
8- iptables ile NAT kurali tanimla
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE && iptables-save
PPTP clientlerin birbirleri ile konusabilmesi icin bunlarida ekleyebilirsin
iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE
iptables -I INPUT -s 10.0.0.0/8 -i ppp0 -j ACCEPT
iptables --append FORWARD --in-interface eth0 -j ACCEPT
Bitti - Gule Gule Kullan
EK1- windows icin client yapilandirmasi
http://www.hideipvpn.com/2009/09/howto-windows-7-pptp-vpn-setup-tutorial/