LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1341|回复: 10

NetworkManager+nm-applet无法登录PPTP VPN

[复制链接]
发表于 2009-8-26 02:13:39 | 显示全部楼层 |阅读模式
http://itshidden.com/

这个用的是networkmanager-pptp来连接的,协议是MSCHAPSv2,压缩方式是MPPE。但是就是连不上,而在Windows下是可以的。

诡异的是,用ifconfig查看,本地IP和远端IP是一样的,而且CPU占用率极高。
  1. ppp0      Link encap:Point-to-Point Protocol  
  2.           inet addr:192.168.2.107  P-t-P:192.168.2.107  Mask:255.255.255.255
  3.           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
  4.           RX packets:6 errors:0 dropped:0 overruns:0 frame:0
  5.           TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
  6.           collisions:0 txqueuelen:3
  7.           RX bytes:84 (84.0 B)  TX bytes:84 (84.0 B)
复制代码


在/var/log/messages留下了这样的信息:
  1. Aug 26 02:14:58 cell1 NetworkManager: <info>  Starting VPN service 'org.freedesktop.NetworkManager.pptp'...
  2. Aug 26 02:14:58 cell1 NetworkManager: <info>  VPN service 'org.freedesktop.NetworkManager.pptp' started (org.freedesktop.NetworkManager.pptp), PID 4355
  3. Aug 26 02:14:58 cell1 NetworkManager: <info>  VPN service 'org.freedesktop.NetworkManager.pptp' just appeared, activating connections
  4. Aug 26 02:14:58 cell1 NetworkManager: <info>  VPN plugin state changed: 1
  5. Aug 26 02:14:58 cell1 NetworkManager: <info>  VPN plugin state changed: 3
  6. Aug 26 02:14:58 cell1 NetworkManager: <info>  VPN connection 'itshidden' (Connect) reply received.
  7. Aug 26 02:14:58 cell1 pppd[4360]: Plugin /usr/lib64/pppd/2.4.4/nm-pptp-pppd-plugin.so loaded.
  8. Aug 26 02:14:58 cell1 pppd[4360]: pppd 2.4.4 started by root, uid 0
  9. Aug 26 02:14:58 cell1 pppd[4360]: Using interface ppp0
  10. Aug 26 02:14:58 cell1 pppd[4360]: Connect: ppp0 <--> /dev/pts/0
  11. Aug 26 02:14:59 cell1 pptp[4361]: nm-pptp-service-4355 log[main:pptp.c:310]: The synchronous pptp option is NOT activated
  12. Aug 26 02:14:59 cell1 pptp[4368]: nm-pptp-service-4355 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
  13. Aug 26 02:15:00 cell1 pptp[4368]: nm-pptp-service-4355 log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply
  14. Aug 26 02:15:00 cell1 pptp[4368]: nm-pptp-service-4355 log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established.
  15. Aug 26 02:15:00 cell1 pptp[4368]: nm-pptp-service-4355 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
  16. Aug 26 02:15:01 cell1 pptp[4368]: nm-pptp-service-4355 log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply.
  17. Aug 26 02:15:01 cell1 pptp[4368]: nm-pptp-service-4355 log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 37376).
  18. Aug 26 02:15:03 cell1 pptp[4361]: nm-pptp-service-4355 log[decaps_gre:pptp_gre.c:414]: buffering packet 2 (expecting 1, lost or reordered)
  19. Aug 26 02:15:03 cell1 pptp[4361]: nm-pptp-service-4355 log[decaps_gre:pptp_gre.c:414]: buffering packet 3 (expecting 1, lost or reordered)
  20. Aug 26 02:15:03 cell1 pptp[4361]: nm-pptp-service-4355 log[decaps_gre:pptp_gre.c:414]: buffering packet 4 (expecting 1, lost or reordered)
  21. Aug 26 02:15:03 cell1 pptp[4361]: nm-pptp-service-4355 log[decaps_gre:pptp_gre.c:414]: buffering packet 6 (expecting 5, lost or reordered)
  22. Aug 26 02:15:03 cell1 pptp[4361]: nm-pptp-service-4355 log[decaps_gre:pptp_gre.c:414]: buffering packet 8 (expecting 7, lost or reordered)
  23. Aug 26 02:15:03 cell1 pppd[4360]: CHAP authentication succeeded
  24. Aug 26 02:15:04 cell1 pptp[4361]: nm-pptp-service-4355 log[decaps_gre:pptp_gre.c:414]: buffering packet 11 (expecting 10, lost or reordered)
  25. Aug 26 02:15:04 cell1 pppd[4360]: MPPE 128-bit stateless compression enabled
  26. Aug 26 02:15:05 cell1 pppd[4360]: local  IP address 192.168.2.107
  27. Aug 26 02:15:05 cell1 pppd[4360]: remote IP address 192.168.2.1
  28. Aug 26 02:15:05 cell1 pppd[4360]: primary   DNS address 85.17.150.123
  29. Aug 26 02:15:05 cell1 pppd[4360]: secondary DNS address 83.149.80.123
  30. Aug 26 02:15:05 cell1 NetworkManager: <info>  VPN connection 'itshidden' (IP Config Get) reply received.
  31. Aug 26 02:15:05 cell1 NetworkManager: <info>  VPN Gateway: 0.0.0.0
  32. Aug 26 02:15:05 cell1 NetworkManager: <info>  Tunnel Device: ppp0
  33. Aug 26 02:15:05 cell1 NetworkManager: <info>  Internal IP4 Address: 192.168.2.107
  34. Aug 26 02:15:05 cell1 NetworkManager: <info>  Internal IP4 Prefix: 32
  35. Aug 26 02:15:05 cell1 NetworkManager: <info>  Internal IP4 Point-to-Point Address: 192.168.2.1
  36. Aug 26 02:15:05 cell1 NetworkManager: <info>  Maximum Segment Size (MSS): 0
  37. Aug 26 02:15:05 cell1 NetworkManager: <info>  Internal IP4 DNS: 85.17.150.123
  38. Aug 26 02:15:05 cell1 NetworkManager: <info>  Internal IP4 DNS: 83.149.80.123
  39. Aug 26 02:15:05 cell1 NetworkManager: <info>  DNS Domain: '(none)'
  40. Aug 26 02:15:05 cell1 NetworkManager: <info>  Login Banner:
  41. Aug 26 02:15:05 cell1 NetworkManager: <info>  -----------------------------------------
  42. Aug 26 02:15:05 cell1 NetworkManager: <info>  (null)
  43. Aug 26 02:15:05 cell1 NetworkManager: <info>  -----------------------------------------
  44. Aug 26 02:15:06 cell1 NetworkManager: <info>  VPN connection 'itshidden' (IP Config Get) complete.
  45. Aug 26 02:15:06 cell1 NetworkManager: <info>  Policy set 'itshidden' (ppp0) as default for routing and DNS.
  46. Aug 26 02:15:06 cell1 NetworkManager: <info>  VPN plugin state changed: 4
  47. Aug 26 02:15:50 cell1 pppd[4360]: Terminating on signal 15
  48. Aug 26 02:15:50 cell1 pptp[4368]: nm-pptp-service-4355 log[callmgr_main:pptp_callmgr.c:258]: Closing connection (shutdown)
  49. Aug 26 02:15:50 cell1 pptp[4368]: nm-pptp-service-4355 log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
  50. Aug 26 02:15:50 cell1 pptp[4368]: nm-pptp-service-4355 log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
  51. Aug 26 02:15:50 cell1 pppd[4360]: Connect time 0.8 minutes.
  52. Aug 26 02:15:50 cell1 pppd[4360]: Sent 639899839 bytes, received 0 bytes.
  53. Aug 26 02:15:50 cell1 pppd[4360]: Modem hangup
  54. Aug 26 02:15:50 cell1 pppd[4360]: Connection terminated.
  55. Aug 26 02:15:50 cell1 pppd[4360]: Exit.
  56. Aug 26 02:15:51 cell1 NetworkManager: <info>  Policy set 'Manual eth0' (eth0) as default for routing and DNS.
复制代码


感觉是IP获取了,但是设置错了,这是怎么回事呢?
发表于 2009-8-26 10:57:30 | 显示全部楼层
你的USE設置了嗎?我記得有 pptp vpn的USE。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-26 11:22:50 | 显示全部楼层
只有kde-misc/knetworkmanager有pptp的USE,用的又不是这个。
回复 支持 反对

使用道具 举报

发表于 2009-8-26 12:11:37 | 显示全部楼层
http://itshidden.com/
弱弱问一下,这个有限速吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-26 12:21:15 | 显示全部楼层
没有,但是慢的要死,因为服务器在美国。
回复 支持 反对

使用道具 举报

发表于 2009-8-26 12:25:59 | 显示全部楼层
Post by coderoar;2020440
没有,但是慢的要死,因为服务器在美国。


如果是看网页的话
推荐your-freedom
限速了,最大下载速度只有16k/s
但是服务器全世界都有,
不过要用到java
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-26 12:36:29 | 显示全部楼层
那跟“套”差不多了。
回复 支持 反对

使用道具 举报

发表于 2009-8-26 13:13:27 | 显示全部楼层
我这里也不行,要装pptpclient吗?我只装了networkmanager-pptp
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-8-26 13:24:56 | 显示全部楼层
net-dialup/pptpclient我装了的,一直都是这样。
回复 支持 反对

使用道具 举报

发表于 2009-8-26 16:20:11 | 显示全部楼层
我在archlinux 下用过openvpn 是可以连上的。虑墙不错
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表