Hi!
I'm trying to host a PPTP VPN server on GCE.
I believe I've correctly configured the instance:
- enabled IP forwarding when creating the instance
- up-to-date backports-debian-7-wheezy
- configured GCE firewall:
0.0.0.0/0 tcp:1723,udp:1723,tcp:47,udp:47,icmp
- installed pptpd
- configured pptpd
- enabled IP forwarding: "net.ipv4.ip_forward=1" in /etc/sysctl.conf
- enabled IP forwarding: "1" in /proc/sys/net/ipv4/ip_forward
- configured iptables:
iptables -I INPUT -p tcp --dport 1723 -m state --state NEW -j ACCEPT
iptables -I INPUT -p gre -j ACCEPT
iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -s
192.168.192.0/24 -j TCPMSS --clamp-mss-to-pmtu
But still no luck. When I try to connect from the outside I see (in
/var/log/syslog):
Aug 12 17:26:07 vps pptpd[2597]: CTRL: Client 104.132.4.106 control
connection started
Aug 12 17:26:07 vps pptpd[2597]: CTRL: Starting call (launching pppd,
opening GRE)
Aug 12 17:26:07 vps pppd[2598]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Aug 12 17:26:07 vps pppd[2598]: pppd 2.4.5 started by kbolay, uid 0
Aug 12 17:26:07 vps pppd[2598]: Using interface ppp0
Aug 12 17:26:07 vps pppd[2598]: Connect: ppp0 <--> /dev/pts/2
Aug 12 17:26:07 vps pptpd[2597]: GRE: Bad checksum from pppd.
Aug 12 17:26:37 vps pppd[2598]: LCP: timeout sending Config-Requests
Aug 12 17:26:37 vps pppd[2598]: Connection terminated.
Aug 12 17:26:37 vps pppd[2598]: Modem hangup
Aug 12 17:26:37 vps pppd[2598]: Exit.
Aug 12 17:26:37 vps pptpd[2597]: GRE:
read(fd=6,buffer=7f8bcb428400,len=8196) from PTY failed: status = -1
error = Input/output error, usually caused by unexpected termination
of pppd, check option syntax and pppd logs
Aug 12 17:26:37 vps pptpd[2597]: CTRL: PTY read or GRE write failed
(pty,gre)=(6,7)
Aug 12 17:26:37 vps pptpd[2597]: CTRL: Reaping child PPP[2598]
Aug 12 17:26:37 vps pptpd[2597]: CTRL: Client 104.132.4.106 control
connection finished
I've found
https://code.google.com/p/google-compute-engine/issues/detail?id=66
(VPN PPTP Server GRE: Bad checksum from pppd.) - so other people seem
to have the same problem.
Is there a way to make it work?
Thanks, Kai