1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| $ aptitude install pptpd $ vi /etc/pptpd.conf localip 10.1.0.1 remoteip 10.1.0.10-210
$ vi /etc/ppp/pptpd-options ms-dns 8.8.8.8 ms-dns 8.8.4.4 ms-dns 208.67.222.222 ms-dns 208.67.220.220
$ vi /etc/sysctl.conf net.ipv4.ip_forward = 1
$ sysctl -p $ vi /etc/rc.local iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -o eth0 -j MASQUERADE
$ mknod /dev/ppp c 108 0 $ vi /etc/ppp/chap-secrets test pptpd 123456 *
$ reboot
|