Create a Personal VPN Server with Amazon EC2 Cloud


# sudo apt-get install pptpd
# sudo vi /etc/pptpd.conf : uncomnt remote put on local put private IP > local
# sudo vi /etc/ppp/pptpd-options : uncomnt ms-dns add google
# sudo vi /etc/sysctl.conf : uncomnt net.ipv4.ip_forward=1
# sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
# sudo vi /etc/rc.local : paste iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
# sudo vi /etc/ppp/chap-secrets

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注