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