首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >VPN PPTP - CTRL: PTY读取或GRE写入失败

VPN PPTP - CTRL: PTY读取或GRE写入失败
EN

Stack Overflow用户
提问于 2014-11-01 06:52:59
回答 1查看 22.1K关注 0票数 4

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

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

代码语言:javascript
运行
复制
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

有人能帮上忙吗?

EN

回答 1

Stack Overflow用户

发布于 2016-05-04 05:37:19

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

代码语言:javascript
运行
复制
refuse-pap
refuse-chap
refuse-mschap
#require-chap
#require-mschap
#require-mschap-v2
#require-mppe-128
mppe-stateful
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26684559

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档