【问题标题】:VPN PPTP - CTRL: PTY read or GRE write failedVPN PPTP - CTRL:PTY 读取或 GRE 写入失败
【发布时间】:2014-12-28 08:34:19
【问题描述】:

我使用这个脚本 https://raw2.github.com/suyan/Scripts/master/Setup/pptp.sh 在 digitocean 上构建我的 VPN 服务器

但是,我无法使用 iPhone 或 Mac 连接到此 VPN 服务器。这是/var/log/syslog 说:

Oct 31 18:44:29 VPN pptpd[1422]: CTRL: Client xx.xx.xx.xx control connection started
Oct 31 18:44:29 VPN pptpd[1422]: CTRL: Starting call (launching pppd, opening GRE)
Oct 31 18:44:29 VPN pppd[1423]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so loaded.
Oct 31 18:44:29 VPN pppd[1423]: pppd 2.4.5 started by root, uid 0
Oct 31 18:44:29 VPN pppd[1423]: Using interface ppp0
Oct 31 18:44:29 VPN pppd[1423]: Connect: ppp0 <--> /dev/pts/1
Oct 31 18:44:59 VPN pppd[1423]: LCP: timeout sending Config-Requests
Oct 31 18:44:59 VPN pppd[1423]: Connection terminated.
Oct 31 18:44:59 VPN pppd[1423]: Modem hangup
Oct 31 18:44:59 VPN pppd[1423]: Exit.
Oct 31 18:44:59 VPN pptpd[1422]: GRE: read(fd=6,buffer=b77c8480,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Oct 31 18:44:59 VPN pptpd[1422]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Oct 31 18:44:59 VPN pptpd[1422]: CTRL: Reaping child PPP[1423]
Oct 31 18:44:59 VPN pptpd[1422]: CTRL: Client xx.xx.xx.xx control connection finished

谁能帮忙?

【问题讨论】:

    标签: vpn digital-ocean pptp


    【解决方案1】:

    /etc/ppp/pptpd-options 更改为以下选项对我有用:

    refuse-pap
    refuse-chap
    refuse-mschap
    #require-chap
    #require-mschap
    #require-mschap-v2
    #require-mppe-128
    mppe-stateful
    

    【讨论】:

      猜你喜欢
      • 2014-05-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-20
      • 1970-01-01
      • 1970-01-01
      • 2013-10-27
      相关资源
      最近更新 更多