我刚刚尝试在使用 OpenVZ 的 Debian VPS 上安装 OpenVPN Access Server。它安装得很好,但是当我尝试从管理面板启动它时,出现了以下错误:
process started and then immediately exited: ['Sat Sep 22 19:14:33 2012 Cannot open TUN/TAP dev /dev/as0t0: No such file or directory (errno=2)']
service failed to start or returned error status
process started and then immediately exited: ['Sat Sep 22 19:14:33 2012 Cannot open TUN/TAP dev /dev/as0t1: No such file or directory (errno=2)']
service failed to start or returned error status
process started and then immediately exited: ['Sat Sep 22 19:14:33 2012 Cannot open TUN/TAP dev /dev/as0t2: No such file or directory (errno=2)']
service failed to start or returned error status
process started and then immediately exited: ['Sat Sep 22 19:14:33 2012 Cannot open TUN/TAP dev /dev/as0t3: No such file or directory (errno=2)']
service failed to start or returned error status
process started and then immediately exited: ['Sat Sep 22 19:14:33 2012 Cannot open TUN/TAP dev /dev/as0t4: No such file or directory (errno=2)']
service failed to start or returned error status
process started and then immediately exited: ['Sat Sep 22 19:14:33 2012 Cannot open TUN/TAP dev /dev/as0t5: No such file or directory (errno=2)']
service failed to start or returned error status
process started and then immediately exited: ['Sat Sep 22 19:14:33 2012 Cannot open TUN/TAP dev /dev/as0t6: No such file or directory (errno=2)']
service failed to start or returned error status
process started and then immediately exited: ['Sat Sep 22 19:14:33 2012 Cannot open TUN/TAP dev /dev/as0t7: No such file or directory (errno=2)']
service failed to start or returned error status
有解决办法吗?
答案1
我在尝试在 OpenVZ 上安装 OpenVPN 时遇到了类似的问题。您可以在以下位置找到有用的信息:http://wiki.openvz.org/VPN_via_the_TUN/TAP_device
你的问题可能是:
- HW-node 上未加载 tun 模块。如果您租用 VPS,请向您的 VPS 提供商索要 tun 设备。否则,请按照说明在 HW-node 上安装 tun 模块。
- CT 没有 TUN/TAP 设备的权限。请按照上述文档中的说明进行操作。
我还可以推荐OpenVPN 页面关于 OpenVPN/OpenVZ