apt-get install ssh pptpd -y vi /etc/pptpd.conf localip xxxxx remoteip 192.168.2.2-238,192.168.2.245 vi /etc/ppp/chap-secrets noni pptpd pass "*" /etc/init.d/pptpd restart vi /etc/sysctl.conf net.ipv4.ip_forward=1 /sbin/iptables -P FORWARD ACCEPT iptables -t nat -A POSTROUTING -j SNAT --to-source xx.xx.xx.xx apt-get install bind9 -y /etc/init.d/bind9 start