Skip to content

Instantly share code, notes, and snippets.

@ahxxm
Last active August 29, 2015 14:21
Show Gist options
  • Save ahxxm/ed44cb4f8d610dd47bee to your computer and use it in GitHub Desktop.
Save ahxxm/ed44cb4f8d610dd47bee to your computer and use it in GitHub Desktop.
pptp for playing game
echo 'QingCloud Debian7.5 One-Click PPTP Server'
apt-get install pptpd
cat >> /etc/pptpd.conf<<-EOF
localip 10.0.0.1
remoteip 10.0.0.100-200
EOF
cat >>/etc/ppp/chap-secrets<<-EOF
pptp1 pptpd pptp2 *
EOF
cat >>/etc/ppp/pptpd-options<<-EOF
ms-dns 1.2.4.8
ms-dns 114.114.114.114
EOF
service pptpd restart
cat >>/etc/sysctl.conf<<-EOF
net.ipv4.ip_forward = 1
EOF
sysctl -p
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE && iptables-save
netstat -alpn | grep :1723
@ahxxm
Copy link
Author

ahxxm commented May 20, 2015

OSX想连似乎还得改require-mppe-128什么的,不过感觉OSX用户不差个电信/联通钱……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment