我尝试在 Centos 6 上使用 PPTP 建立 VPN 连接。但收到错误。
日志档案:
May 11 22:50:55 server pppd[1069]: pppd 2.4.5 started by root, uid 0
May 11 22:50:55 server pppd[1069]: Using interface ppp0
May 11 22:50:55 server pppd[1069]: Connect: ppp0 <--> /dev/pts/3
May 11 22:50:55 server pptp[1070]: anon log[main:pptp.c:314]: The synchronous pptp option is NOT activated
May 11 22:50:55 server pptp[1078]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
May 11 22:50:55 server pptp[1078]: anon log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
May 11 22:50:55 server pptp[1078]: anon log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
May 11 22:50:56 server pptp[1078]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
May 11 22:50:56 server pptp[1078]: anon log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
May 11 22:50:56 server pptp[1078]: anon log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 526).
May 11 22:50:56 server pppd[1069]: MS-CHAP authentication failed: bad username or password
May 11 22:50:56 server pppd[1069]: CHAP authentication failed
May 11 22:50:56 server pptp[1078]: anon log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
May 11 22:50:56 server pptp[1078]: anon log[callmgr_main:pptp_callmgr.c:258]: Closing connection (shutdown)
May 11 22:50:56 server pptp[1078]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
May 11 22:50:56 server pptp[1078]: anon log[pptp_read_some:pptp_ctrl.c:544]: read returned zero, peer has closed
May 11 22:50:56 server pptp[1078]: anon log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
May 11 22:50:56 server pppd[1069]: Modem hangup
May 11 22:50:56 server pppd[1069]: Connection terminated.
May 11 22:50:57 server pppd[1069]: Exit.
配置文件
pty "pptp IP --nolaunchpppd"
lock
noauth
nobsdcomp
nodeflate
name username
remotename PPTP
require-mppe-128
require-mschap-v2
nodefaultroute
file /etc/ppp/options.pptp
选项.pptp
lock
noauth
refuse-pap
refuse-eap
refuse-chap
refuse-mschap
nobsdcomp
nodeflate
章节秘密
username PPTP pass *
答案1
通常您需要指定一个带有用户名的域。
即域名\密码
您正在连接哪种类型的 VPN 服务?
如果失败,请注释掉\删除 require-mppe-128 并重试。
如果这些单独或一起都不起作用,请启用调试日志记录并发布输出,即使用 logfd 2 运行(见下文)
http://pptpclient.sourceforge.net/howto-diagnosis.phtml#debug