DO vps 建立的 pptp 连接不上 错误 619

2014-10-11 11:37:25 +08:00
 berry10086
只改了 local ip remote ip dns 和 chap-secrets 其他默认
开了ip forwarding
但是连接是提示错误619
日志显示
Oct 10 23:33:02 s2 pppd[12619]: pppd 2.4.5 started by root, uid 0
Oct 10 23:33:02 s2 pppd[12619]: Using interface ppp0
Oct 10 23:33:02 s2 pppd[12619]: Connect: ppp0 <--> /dev/pts/1
Oct 10 23:33:02 s2 pptpd[12618]: GRE: read(fd=7,buffer=7f259ee45400,len=8260) from network failed: status = -1 error = Protocol not available
Oct 10 23:33:02 s2 pptpd[12618]: CTRL: GRE read or PTY write failed (gre,pty)=(7,6)
Oct 10 23:33:02 s2 pptpd[12618]: CTRL: Reaping child PPP[12619]
Oct 10 23:33:02 s2 pppd[12619]: Hangup (SIGHUP)
Oct 10 23:33:02 s2 pppd[12619]: Modem hangup
Oct 10 23:33:02 s2 pppd[12619]: Connection terminated.
Oct 10 23:33:02 s2 pppd[12619]: Exit.
7139 次点击
所在节点    问与答
20 条回复
davidyin
2014-10-11 12:55:24 +08:00
搜索一下DO的文档,有guide
yorath
2014-10-11 12:59:30 +08:00
我在公司的网络连不上pptp, 到了住的地方的网络却可以连接, 才发现是公司网络的缘故
berry10086
2014-10-11 13:14:03 +08:00
@yorath 就是按照那个文档操作的
liyaoxinchifan
2014-10-11 13:35:39 +08:00
iptables里面允许gre协议了吗
berry10086
2014-10-11 13:43:15 +08:00
@liyaoxinchifan iptables是空的
lizheming
2014-10-11 13:43:57 +08:00
https://www.digitalocean.com/community/tutorials/how-to-setup-your-own-vpn-with-pptp
按步骤操作到STEP 4第一行代码就好叻...我就是按照这个来的..
liyaoxinchifan
2014-10-11 13:58:00 +08:00
iptables里面需要做一个源地址转换的
Quaintjade
2014-10-11 14:06:57 +08:00
要么是防火墙禁了GRE,要么是路由器不支持GRE,这种路由器还不少。
berry10086
2014-10-11 14:16:32 +08:00
@Quaintjade 路由器是好的,可以连上别的vpn
防火墙里面是空的
berry10086
2014-10-11 14:16:59 +08:00
@lizheming 我也是按照这个来的 你用的什么系统
lizheming
2014-10-11 14:21:06 +08:00
@berry10086 debian 7 x64
14
2014-10-11 14:24:41 +08:00
世界真奇妙。。。
我刚才也按这个教程走,也遇到619错误,最后一怒之下关掉了SSH打算不折腾了,最后点了VPN连接,居然立刻连上了
ryd994
2014-10-11 14:30:28 +08:00
那就试试l2tp吧,安全性还更好
berry10086
2014-10-11 14:31:41 +08:00
@ryd994 好的 我试试
berry10086
2014-10-11 14:31:58 +08:00
@lizheming 我的也是 nyc3 机房
berry10086
2014-10-11 14:36:27 +08:00
@ryd994 谢谢 换成l2tp就好了
lizheming
2014-10-11 14:37:32 +08:00
@berry10086 我也是……不过要说有完全不一样的地方,就是STEP 1那改local ip和remote ip那步我直接把pptpd.conf 自带的最后两行#给取消掉了(也就是192.168.x.x的ip),不知道这个有没有影响。话说我也有做snapshot,DO好像可以在帐号间发送snapshot,实在不行我可以把我的备份发给你你恢复下试试呗。
berry10086
2014-10-11 14:51:48 +08:00
@lizheming 谢谢你的好心帮助,我用了网上找的一个L2TP一键脚本 换成L2TP就好了
lizheming
2014-10-11 14:53:14 +08:00
@berry10086 分享一下地址呗,我回头也试试去~
berry10086
2014-10-11 15:04:12 +08:00

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/138251

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX