Ubuntu 14.04 中的 VPN 连接失败

Ubuntu 14.04 中的 VPN 连接失败

不知何故,昨晚系统更新后我无法连接到 VPN(Cisco open-vpn)。

我追踪sudo tail -f /var/log/syslog

Dec 15 12:25:18 aftab-ThinkPad-Edge-E431 NetworkManager[1104]: <info> Starting VPN service 'vpnc'...
Dec 15 12:25:18 aftab-ThinkPad-Edge-E431 NetworkManager[1104]: <info> VPN service 'vpnc' started (org.freedesktop.NetworkManager.vpnc), PID 5025
Dec 15 12:25:18 aftab-ThinkPad-Edge-E431 NetworkManager[1104]: <info> VPN service 'vpnc' appeared; activating connections
Dec 15 12:25:18 aftab-ThinkPad-Edge-E431 NetworkManager[1104]: <info> VPN plugin state changed: starting (3)
Dec 15 12:25:18 aftab-ThinkPad-Edge-E431 NetworkManager[1104]: <info> VPN connection 'Vonage VPN' (Connect) reply received.
Dec 15 12:25:18 aftab-ThinkPad-Edge-E431 NetworkManager[1104]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/tun1, iface: tun1)
Dec 15 12:25:18 aftab-ThinkPad-Edge-E431 NetworkManager[1104]:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/tun1, iface: tun1): no ifupdown configuration found.
Dec 15 12:25:18 aftab-ThinkPad-Edge-E431 NetworkManager[1104]: <warn> /sys/devices/virtual/net/tun1: couldn't determine device driver; ignoring...
Dec 15 12:25:19 aftab-ThinkPad-Edge-E431 NetworkManager[1104]:    SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/tun1, iface: tun1)
Dec 15 12:25:19 aftab-ThinkPad-Edge-E431 NetworkManager[1104]: <warn> VPN plugin failed: 1
Dec 15 12:25:19 aftab-ThinkPad-Edge-E431 NetworkManager[1104]: <info> VPN plugin state changed: stopped (6)
Dec 15 12:25:19 aftab-ThinkPad-Edge-E431 NetworkManager[1104]: <info> VPN plugin state change reason: 0
Dec 15 12:25:19 aftab-ThinkPad-Edge-E431 NetworkManager[1104]: <info> Policy set 'Noduco2' (wlan0) as default for IPv4 routing and DNS.
Dec 15 12:25:19 aftab-ThinkPad-Edge-E431 NetworkManager[1104]: <warn> error disconnecting VPN: Could not process the request because no VPN connection was active.
Dec 15 12:25:23 aftab-ThinkPad-Edge-E431 wpa_supplicant[1192]: wlan0: CTRL-EVENT-SCAN-STARTED 
Dec 15 12:25:24 aftab-ThinkPad-Edge-E431 NetworkManager[1104]: <info> VPN service 'vpnc' disappeared
Dec 15 12:25:24 aftab-ThinkPad-Edge-E431 wpa_supplicant[1192]: nl80211: send_and_recv->nl_recvmsgs failed: -33
Dec 15 12:27:23 aftab-ThinkPad-Edge-E431 wpa_supplicant[1192]: wlan0: CTRL-EVENT-SCAN-STARTED 
Dec 15 12:27:24 aftab-ThinkPad-Edge-E431 wpa_supplicant[1192]: nl80211: send_and_recv->nl_recvmsgs failed: -33

这可能的原因是什么?

答案1

您的核心问题是:

SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/tun1, iface: tun1)
SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/tun1, iface: tun1): no ifupdown configuration found.

VPN 服务启动后,会添加网络接口,并尝试对其进行配置。但是,中tun1没有配置,因此 VPN 服务就此停止。tun1/etc/network/interfaces

现在,我对 Linux 上的 VPN 了解不够多,无法确切地告诉你该怎么做。也许tun0之前是这样的,现在机器上又添加了一个,所以它增加了一个?也许你可以直接在 中tun0进行设置?tun1/etc/network/interfaces

相关内容