vpnc 可以工作,但是 network-manager-vpnc 失败

vpnc 可以工作,但是 network-manager-vpnc 失败

我正在尝试连接到 vpnc vpn。

/etc/vpnc/clientvpn.conf我首先创建了一个如下所示的conf 文件:

## generated by pcf2vpnc
IPSec ID mygroupid
IPSec gateway some.ip.add.ress
IPSec secret mygrouppassword

Xauth username myusername
Xauth password myuserpassword
IKE Authmode psk

并且使用sudo vpnc clientvpn效果很好。

现在我想使用 network-manager vpnc 插件。我创建了一个新的 vpn 设置,并设置了不同的值:

nm vpnc 设置

我保留了高级设置的默认值。尝试从 NetworkManager 连接失败,并显示以下日志:

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

我不确定这是否/sys/devices/virtual/net/tun0: couldn't determine device driver; ignoring...是一条有意义的信息。

为什么插件运行正常nm但是却失败了?vpnc

相关内容