http://www.360doc.com/content/14/0304/09/15165033_357558764.shtml
1 1. apt-get update; apt-get install pptpd2 2. vim /etc/pptpd.conf # 修改客户端 ip 范围3 3. vim /etc/ppp/options # 修改 ms-dns4 4. vim /etc/ppp/chap-secrets # 添加用户名密码5 5. sysctl -w net.ipv4.ip_forward=16 vim /etc/sysctl.conf # 开启 ip_forward7 6. iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE # 地址伪装