Ubuntu 14.04 VPN:VPN 插件状态改变:已停止 (6)

Ubuntu 14.04 VPN:VPN 插件状态改变:已停止 (6)

我正在尝试连接 vpn 来工作,得到以下信息:

Jun 11 17:48:11 MYLAPTOP NetworkManager[1104]: <info> Starting VPN service 'vpnc'...
Jun 11 17:48:11 MYLAPTOP NetworkManager[1104]: <info> VPN service 'vpnc' started (org.freedesktop.NetworkManager.vpnc), PID 21051
Jun 11 17:48:11 MYLAPTOP NetworkManager[1104]: <info> VPN service 'vpnc' appeared; activating connections
Jun 11 17:48:11 MYLAPTOP NetworkManager[1104]: <info> VPN plugin state changed: starting (3)
Jun 11 17:48:11 MYLAPTOP NetworkManager[1104]: <info> VPN connection 'someconnection' (Connect) reply received.
Jun 11 17:48:11 MYLAPTOP NetworkManager[1104]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/tun0, iface: tun0)
Jun 11 17:48:11 MYLAPTOP NetworkManager[1104]:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/tun0, iface: tun0): no ifupdown configuration found.
Jun 11 17:48:11 MYLAPTOP NetworkManager[1104]: <warn> /sys/devices/virtual/net/tun0: couldn't determine device driver; ignoring...
Jun 11 17:48:14 MYLAPTOP NetworkManager[1104]:    SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/tun0, iface: tun0)
Jun 11 17:48:14 MYLAPTOP NetworkManager[1104]: <warn> VPN plugin failed: 1
Jun 11 17:48:14 MYLAPTOP NetworkManager[1104]: <info> VPN plugin state changed: stopped (6)
Jun 11 17:48:14 MYLAPTOP NetworkManager[1104]: <info> VPN plugin state change reason: 0
Jun 11 17:48:14 MYLAPTOP NetworkManager[1104]: <info> Policy set 'somewifi' (wlan0) as default for IPv4 routing and DNS.
Jun 11 17:48:14 MYLAPTOP NetworkManager[1104]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active.
Jun 11 17:48:19 MYLAPTOP NetworkManager[1104]: <info> VPN service 'vpnc' disappeared

在 ubuntu 14.04 上使用 cisco 兼容 vpnc

也尝试过(不是相同的 vpn 客户端但尝试过)没有帮助...请帮忙...

并运行

$ sudo /usr/lib/NetworkManager/nm-vpnc-service --debug

对于调试我看到:

.
.
.
S5.5 do xauth reply
 [2015-06-11 18:15:28]


---!!!!!!!!! entering phase2_fatal !!!!!!!!!---
.
.
.


   PARSING PAYLOAD type: 00 (ISAKMP_PAYLOAD_NONE)
   PARSE_OK
/usr/sbin/vpnc: noninteractive can't reuse password
** (nm-vpnc-service:21916): WARNING **: vpnc exited with error code 1

答案1

这通常意味着您输入了错误的密码(用户密码或组密码)。

提示是调试日志的最后一行:

/usr/sbin/vpnc: noninteractive can't reuse password

由于您通过网络管理器配置了 vpn,因此该vpnc命令是非交互调用的,并且一旦检测到您提供的密码错误,它就无法要求输入新密码(因此“无法重复使用密码“ 信息)。

为了真正找到这一点,您可能需要检查调试的第一个块,您将能够看到:

Config: Debug 3
Config: Script /usr/lib/NetworkManager/nm-vpnc-service-vpnc-helper
Config: Cisco UDP Encapsulation Port 0
Config: Local Port 0
Config: IKE DH Group dh2
Config: Perfect Forward Secrecy server
Config: IPSec ID MY-VPN
Config: IPSec gateway AA.BB.CC.DD
Config: Xauth username USER
Config: Vendor cisco
Config: Enable Single DES
Config: NAT Traversal Mode natt
Config: Xauth password PASSWORD
Config: IPSec secret SECRET

最后两行包含明文用户密码和组共享机密。

我遇到了同样的问题,谷歌搜索到的第一个结果是https://mail.gnome.org/archives/networkmanager-list/2009-June/msg00034.html,因为第二个是这个问题,而且我确实在使用 ubuntu 14.04,所以我认为它可能会有所帮助。

相关内容