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