Since Virtuozzo 2.6.1, VPN support for a
VPS Hosting via the TUN/TAP device is available. To allow
VPS Hosting #101 to use the TUN/TAP device, the following steps are required:
1) Make sure the tun module has been already loaded on the hardware node:
lsmod | grep tun
If it is not there, then issue the command 'modprobe tun' to load it and add it into /etc/modules.conf. This module should be loaded before Virtuozzo is started, so you should run 'service vz restart'to make it available at runtime.
2) Allow the
VPS Hosting to use the tun/tap device:
vzctl set 101 --devices c:10:200:rw --save
3) Create the device in the
VPS Hosting:
vzctl exec 101 mkdir -p /dev/net
vzctl exec 101 mknod /dev/net/tun c 10 200
4) Set proper permissions for /dev/net/tun:
vzctl exec 101 chmod 600 /dev/net/tun