Friday, April 12, 2013

cat: /dev/net/tun: No such file or directory

There are circumstances where tun/tap won’t be enabled by default by VPS nodes.In such case, you will get the following error. if you check your TUN/TAP whether it is active or not
#cat /dev/net/tun cat: /dev/net/tun: No such file or directory
create the character device file inside the container (execute the following on the host node):
# mkdir -p /dev/net

# mknod /dev/net/tun c 10 200

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

No comments:

Post a Comment