Linux – Cannot open TUN/TAP dev

linuxnetworkingopenvpntaptun

Can someone please help me with this? I have a linux 2.6.9 server (I know it's outdated, but it has some special modules and so kernel cannot be updated/recompiled/etc), and I need to have a tun/tap interface on it for openvpn to work. Anyway I get an error Cannot open TUN/TAP dev. I tried running mknod command and it didn't work. Also it looks like there is no tun/tap driver loaded. Can someone please post a download link for a tun/tap driver for linux 2.6, I searched all over google and could not find one.

Best Answer

depending on your kernel you might need to

modprobe tun

if it turns out you do not have such module available - you'll need to upgrade / recompile your kernel [ it's good idea to do anyway 2.6.9 is quite ancient and probably vulnerable ]. the easiest way is by taking appropriate package from the distribution you are using.