ArenaHosts
New Member
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
Xen Platform
Please ensure you have installed the kernel modules which your software requires to use the TUN/TAP device.
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
- Enter mkdir -p /dev/net
- Enter mknod /dev/net/tun c 10 200
- Enter chmod 600 /dev/net/tun
- 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.
Xen Platform
Please ensure you have installed the kernel modules which your software requires to use the TUN/TAP device.