Enabling TUN/TAP

Make sure that a Jolly Works Hosting admin has enabled TUN/TAP for your VPS. Click here to request one.

If you try to use a VPN program like OpenVPN or Hamachi on your VPS, you will likely receive this error:

 Note: Cannot open TUN/TAP dev /dev/net/tun: Permission denied (errno=13)
 Note: Attempting fallback to kernel 2.2 TUN/TAP interface
 Cannot open TUN/TAP dev /dev/tun0: No such file or directory (errno=2)

The TUN/TAP device is not set up by default on your VPS. Instructions will vary with your virtualization platform.

 

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 VPS Support for assistance

Please note that the TUN/TAP device will be removed if you reinstall your operating system template.

Special thanks to wiki.vpslink.com.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Common SSH Commands - Linux Shell Commands

ear. Updated: Jan 19, 2007: Added some new ssh commands for the linux shell.We've put together...

Can you install Ragnarok Private Server to my VPS for free?

Ragnarok Online Private Server installation, while possible to be run on our VPS, is not included...

How to create an FTP account with SSH

This tutorial will tell actually not only teach you how to create an FTP Account, but will also...

How to change the root Password using SSH

This article will show you how to change the root password for your Root Server using SSH For...

VPS Reseller Demo

You may login and test our VPS Reseller panel below.SolusVM Reseller Control Panel URL:...