6/Nov 2013
總結 apt-get install pptpd -y echo "localip 192.168.99.1" >> /etc/pptpd.conf echo "remoteip 192.168.99.100-150" >> /etc/pptpd.conf echo "ms-dns 8.8.8.8" >> /etc/ppp/pptpd-options echo "ms-dns 8.8.4.4" >> /etc/ppp/pptpd-options echo "USERNAME * PASSWORD *" >> /etc/ppp/chap-secrets service pptpd restart echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf sysctl -p iptables -t nat -I POSTROUTING -o eth0 -s 192.168.99.0/24 -j MASQUERADE iptables -A FORWARD -s 192.168.99.0/24 -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --set-mss 1316 安裝套件 apt-get