Sunday, November 13, 2011

TUN/TAP DEVICE WITH OPENVPN

OpenVZ Platform

  1. Enter mkdir -p /dev/net
  2. Enter mknod /dev/net/tun c 10 200
  3. Enter chmod 600 /dev/net/tun
  4. Enter cat /dev/net/tun to test whether the TUN/TAP device is available:
    • If you receive the message cat: /dev/net/tun: File descriptor in bad state your TUN/TAP device is ready for use
    • If you receive the message cat: /dev/net/tun: No such device the TUN/TAP device was not successfully created: contact VPSLink Support for assistance
Please note that the TUN/TAP device will be removed if you reinstall your operating system template.