您尚未登录。

#1 2013-08-04 11:45:53

wych
论坛版主
注册时间: 2011-11-27
帖子: 103

问一个虚拟机连vpn的问题

有一台主机是windows,virtualbox虚拟了一台centos,完了得在centos里连vpn到办公内网去,用pptpsetup连接。虚拟机用的桥接模式。因为密码是动态的,我就这样连

 pptpsetup --create sinavpn --server ip  --username username --encrypt --start 

但是有LCP: timeout sending Config-Requests问题,我google看到要加载ip_nat_pptp,加载了还是这样。

Aug  4 11:35:02 localhost pppd[1601]: pppd 2.4.5 started by root, uid 0
Aug  4 11:35:02 localhost pppd[1601]: Using interface ppp0
Aug  4 11:35:02 localhost pppd[1601]: Connect: ppp0 <--> /dev/pts/1
Aug  4 11:35:02 localhost pptp[1602]: anon log[main:pptp.c:314]: The synchronous pptp option is NOT activated
Aug  4 11:35:05 localhost pptp[1610]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Aug  4 11:35:05 localhost pptp[1610]: anon log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
Aug  4 11:35:05 localhost pptp[1610]: anon log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
Aug  4 11:35:06 localhost pptp[1610]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Aug  4 11:35:14 localhost pptp[1610]: anon log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
Aug  4 11:35:14 localhost pptp[1610]: anon log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 41357).
Aug  4 11:35:14 localhost pptp[1602]: anon log[decaps_gre:pptp_gre.c:405]: discarding duplicate or old packet 0 (expecting 2)
Aug  4 11:35:19 localhost pptp[1602]: anon log[decaps_gre:pptp_gre.c:414]: buffering packet 7 (expecting 5, lost or reordered)
Aug  4 11:35:21 localhost pptp[1602]: anon log[decaps_gre:pptp_gre.c:414]: buffering packet 10 (expecting 9, lost or reordered)
Aug  4 11:35:24 localhost pptp[1610]: anon log[ctrlp_disp:pptp_ctrl.c:912]: Received Call Clear Request.
Aug  4 11:35:54 localhost pppd[1601]: LCP: timeout sending Config-Requests
Aug  4 11:35:54 localhost pppd[1601]: Connection terminated.
Aug  4 11:35:54 localhost pppd[1601]: Modem hangup
Aug  4 11:35:54 localhost pptp[1602]: anon warn[decaps_hdlc:pptp_gre.c:204]: short read (-1): Input/output error
Aug  4 11:35:54 localhost pptp[1602]: anon warn[decaps_hdlc:pptp_gre.c:216]: pppd may have shutdown, see pppd log
Aug  4 11:35:54 localhost pptp[1610]: anon log[callmgr_main:pptp_callmgr.c:234]: Closing connection (unhandled)
Aug  4 11:35:54 localhost pptp[1610]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Aug  4 11:35:54 localhost pptp[1610]: anon log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
Aug  4 11:35:54 localhost pppd[1601]: Exit.

因为连进去也是用终端,而且在vpn下p2p之类都不能用,所以才有这个需求。


Twitter@wych42

离线

#2 2014-06-29 17:19:04

bzhao
会员
注册时间: 2014-01-28
帖子: 10

Re: 问一个虚拟机连vpn的问题

感谢啊! 整了很久原来是这个原因,其实我拨号到其他的pptp的server 没用用到这个东西的!

离线

页脚