mkdir /dev/net
mknod /dev/net/tun c 10 200
OpenVZ7系统缺省没有tun device,必须先创建,否则StrongSwan、OpenVPN运行失败
strace libexec/ipsec/charon
00[LIB] failed to open /dev/net/tun: No such file or directory
00[KNL] failed to create TUN device
00[LIB] plugin 'kernel-libipsec': failed to load - kernel_libipsec_plugin_create returned NULL
如果是系统不允许创建tun,显示的是“Operation not permitted”
00[LIB] failed to open /dev/net/tun: Operation not permitted
00[KNL] failed to create TUN device
查看tun内核模块:
lsmod|grep tun
激活tun内核模块:
modprobe tun
参考:
https://www.kernel.org/doc/Documentation/networking/tuntap.txt
https://users.strongswan.narkive.com/EeMxRwRy/openvz-vps-error-on-strongwan-kernel-libipsec
[
本帖最后由 linda 于 2020-12-7 18:07 编辑 ]