Ubuntu PPTP VPN 一键安装脚本

此脚本可在 开启Tun/Tap支持的OpenVZ VPS、XEN VPS、独立服务器。

第一步:确认拥有Root权限

第二步:下载、运行脚本

wget --no-check-certificate http://chinatoosex.com/script/pptp.sh
sh pptp.sh

测试用户名与密码为:test / test123,记录于 /etc/ppp/chap-secrets 。

 

还要执行以下命令。

iptables -A FORWARD -p tcp --syn -s 192.168.0.0/24 -j TCPMSS --set-mss 1356

iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j SNAT --to 206.253.164.77

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

文章评论已关闭