风哥一直在PC/Mac上用SSH Tunnel进行FQ,也没啥问题。今天突然想在OSH的VPS上开启PPTP,让iPhone也能使用。折腾了半天,没搞成功。安装和设置PPTP很简单,参考这篇文档(我的VPS是ubuntu系统,跟debian使用上差不多):
http://www.putdispenserhere.com/pptp-vpn-setup-guide-for-a-debian-openvz-vps/
pptpd顺利启动,iptables也设置成功。然后在Windows客户端新建一个VPN连接,输入帐号密码后,连接失败。提示如下:
查看PPTP服务器日志,如下信息:
May 24 18:31:41 fqserver pptpd[738]: CTRL: Client 113.76.*.* control connection started May 24 18:31:41 fqserver pptpd[738]: CTRL: Starting call (launching pppd, opening GRE) May 24 18:31:41 fqserver pppd[739]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded. May 24 18:31:41 fqserver pppd[739]: Couldn't open the /dev/ppp device: Permission denied May 24 18:31:41 fqserver pppd[739]: Sorry - this system lacks PPP kernel support May 24 18:31:41 fqserver pptpd[738]: GRE: read(fd=6,buffer=8058640,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs May 24 18:31:41 fqserver pptpd[738]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7) May 24 18:31:41 fqserver pptpd[738]: CTRL: Reaping child PPP[739] May 24 18:31:41 fqserver pptpd[738]: CTRL: Client 113.76.*.* control connection finished
好吧,提示系统缺少PPP内核支持。但是最新的OVZ应该支持PPTP,查了一番,见这篇帖子:
http://www.setsea.net/wordpress/network/2012/10/30/1431.html
还要在VPS控制面板里打开两个选项。于是登录OSH给我分配的VPS控制面板(Solusvm面板),在底部的“Setting”里开启了TUN/TAP和PPP。重启VPS,在Windows里试图连接,还是不行,错误一样。又看了这篇帖子:
http://www.laohao.info/openvz-vps-concise-guide-to-install-the-pptp-vpn-service/
说客户端619错误,就在服务器里执行:
rm /dev/ppp mknod /dev/ppp c 108 0
我也试过了,不行。PPTP服务器日志里一直提示:Sorry – this system lacks PPP kernel support
看来还是我的OVZ内核不支持PPP。到此为止这个问题没解决,明天发个ticket问下VPS厂家看。有了解原因的同学不妨告知我情况,谢谢。