V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
berry10086
V2EX  ›  问与答

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

  •  
  •   berry10086 · 2014-10-11 11:37:25 +08:00 · 7126 次点击
    这是一个创建于 3489 天前的主题,其中的信息可能已经有所发展或是发生改变。
    只改了 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.
    20 条回复    2014-10-11 15:04:12 +08:00
    davidyin
        1
    davidyin  
       2014-10-11 12:55:24 +08:00
    搜索一下DO的文档,有guide
    yorath
        2
    yorath  
       2014-10-11 12:59:30 +08:00
    我在公司的网络连不上pptp, 到了住的地方的网络却可以连接, 才发现是公司网络的缘故
    berry10086
        3
    berry10086  
    OP
       2014-10-11 13:14:03 +08:00 via Android
    @yorath 就是按照那个文档操作的
    liyaoxinchifan
        4
    liyaoxinchifan  
       2014-10-11 13:35:39 +08:00
    iptables里面允许gre协议了吗
    berry10086
        5
    berry10086  
    OP
       2014-10-11 13:43:15 +08:00 via Android
    @liyaoxinchifan iptables是空的
    lizheming
        6
    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
        7
    liyaoxinchifan  
       2014-10-11 13:58:00 +08:00
    iptables里面需要做一个源地址转换的
    Quaintjade
        8
    Quaintjade  
       2014-10-11 14:06:57 +08:00 via Android
    要么是防火墙禁了GRE,要么是路由器不支持GRE,这种路由器还不少。
    berry10086
        9
    berry10086  
    OP
       2014-10-11 14:16:32 +08:00
    @Quaintjade 路由器是好的,可以连上别的vpn
    防火墙里面是空的
    berry10086
        10
    berry10086  
    OP
       2014-10-11 14:16:59 +08:00
    @lizheming 我也是按照这个来的 你用的什么系统
    lizheming
        11
    lizheming  
       2014-10-11 14:21:06 +08:00
    @berry10086 debian 7 x64
    14
        12
    14  
       2014-10-11 14:24:41 +08:00
    世界真奇妙。。。
    我刚才也按这个教程走,也遇到619错误,最后一怒之下关掉了SSH打算不折腾了,最后点了VPN连接,居然立刻连上了
    ryd994
        13
    ryd994  
       2014-10-11 14:30:28 +08:00 via Android
    那就试试l2tp吧,安全性还更好
    berry10086
        14
    berry10086  
    OP
       2014-10-11 14:31:41 +08:00
    @ryd994 好的 我试试
    berry10086
        15
    berry10086  
    OP
       2014-10-11 14:31:58 +08:00
    @lizheming 我的也是 nyc3 机房
    berry10086
        16
    berry10086  
    OP
       2014-10-11 14:36:27 +08:00
    @ryd994 谢谢 换成l2tp就好了
    lizheming
        17
    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
        18
    berry10086  
    OP
       2014-10-11 14:51:48 +08:00
    @lizheming 谢谢你的好心帮助,我用了网上找的一个L2TP一键脚本 换成L2TP就好了
    lizheming
        19
    lizheming  
       2014-10-11 14:53:14 +08:00
    @berry10086 分享一下地址呗,我回头也试试去~
    berry10086
        20
    berry10086  
    OP
       2014-10-11 15:04:12 +08:00   ❤️ 1
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2241 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 02:32 · PVG 10:32 · LAX 19:32 · JFK 22:32
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.