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
- 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: 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.