VPN support for a VPS Hosting via the TUN/TAP device is available. To allow VE #700 to use the TUN/TAP device, the following steps are required:
* 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.
* Allow the VPS Hosting to use the tun/tap device:
vzctl set 700 –devices c:10:200:rw –save
* Create the device in the VPS Hosting:
vzctl exec 700 mkdir -p /dev/net
vzctl exec 700 mknod /dev/net/tun c 10 200
* Set proper permissions for /dev/net/tun:
vzctl exec 700 chmod 600 /dev/net/tun
You are done.