-
should be in startup script
`iptables -A POSTROUTING -t nat -o ppp+ -j MASQUERADE echo 1 > /proc/sys/net/ipv4/ip_forward`
-
install pptpd
apt-get install pptpd
-
Edit remoteip and ip ranges at
/etc/pptpd.conf
-
edit user accounts at
/etc/ppp/chap-secrets
#username server password remote IP addresses pptpusername pptpd secretpassword 45.45.45.45
-
Restart the PPtP daemon
service pptpd restart
pptpsetup –create –server yourserver.com –username pptpusername –password secretpassword –start
- Script for cronjob for restart as attach