caranya begini

rpm -i http://poptop.sourceforge.net/yum/stable/rhel6/pptp-release-current.noarch.rpm
yum -y install pptpd
echo "localip 192.168.254.1" >> /etc/pptpd.conf
echo "remoteip 192.168.254.2-254" >> /etc/pptpd.conf
echo "username pptpd password 192.168.254.2" >> /etc/ppp/chap-secrets
echo "ms-dns 8.8.8.8" >> /etc/ppp/options.pptpd
echo "ms-dns 8.8.8.8" >> /etc/ppp/options.pptpd
echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/sysctl -w net.ipv4.ip_forward=1
service pptpd restart
chkconfig pptpd on

edit iptables ganti kayak gini

# Generated by iptables-save v1.4.7 on Tue Oct 10 12:13:25 2017
*filter
:INPUT ACCEPT [8591388:2012853449]
:FORWARD ACCEPT [918214:442449306]
:OUTPUT ACCEPT [8383396:2600857229]
COMMIT
# Completed on Tue Oct 10 12:13:25 2017
# Generated by iptables-save v1.4.7 on Tue Oct 10 12:13:25 2017
*nat
:PREROUTING ACCEPT [1226735:95267308]
:POSTROUTING ACCEPT [14116:1449024]
:OUTPUT ACCEPT [451739:34020974]
-A POSTROUTING -o eth0 -j MASQUERADE
-A POSTROUTING -o ppp0 -j MASQUERADE
-A POSTROUTING -o ppp1 -j MASQUERADE
-A POSTROUTING -o ppp2 -j MASQUERADE
-A POSTROUTING -o ppp3 -j MASQUERADE
-A POSTROUTING -o ppp4 -j MASQUERADE
-A POSTROUTING -o ppp5 -j MASQUERADE
-A POSTROUTING -o ppp6 -j MASQUERADE
-A POSTROUTING -o ppp7 -j MASQUERADE
-A POSTROUTING -o ppp8 -j MASQUERADE
-A POSTROUTING -o ppp9 -j MASQUERADE
-A POSTROUTING -o ppp10 -j MASQUERADE
-A POSTROUTING -o ppp11 -j MASQUERADE
-A POSTROUTING -o ppp12 -j MASQUERADE
COMMIT
# Completed on Tue Oct 10 12:13:25 2017