VPNC 找不到设备“tun0”

VPNC 找不到设备“tun0”

vpnc我正在尝试在装有 Ubuntu 12.04.4(64 位)的 chromebook 上使用 连接到我的工作 VPN 。

我已经安装了 vpnc,当我运行它时,输入我的用户/密码后,出现以下错误:

Cannot find device "tun0"
Cannot find device "tun0"
Cannot find device "tun0"
Cannot find device "tun0"
resolvconf: Error: /run/resolvconf/interface either does not exist or is not a directory

有人能解释一下为什么找不到这个 tun0 设备吗?或者我应该怎么做?我需要安装一些东西来找到 tun0 吗?

答案1

默认情况下,VPNC 使用虚拟点对点接口(即 tun)的 ifmode。但它还有另一种模式可供使用,即虚拟以太网接口(即 tap)。尝试使用它,即:

sudo vpnc example.conf --local-port 0 --ifmode tap

相关内容