Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)
Hi guys, I have installed openVPN in my redhat 8 linux box. When I try to run it just gives me these messages:
[root@vpn openvpn]# /usr/local/sbin/openvpn /etc/openvpn/server.conf
Thu Dec 28 16:14:19 2006 OpenVPN 2.0.9 i686-pc-linux [SSL] [LZO] built on Dec 27 2006
Thu Dec 28 16:14:19 2006 Diffie-Hellman initialized with 1024 bit key
Thu Dec 28 16:14:19 2006 TLS-Auth MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Dec 28 16:14:19 2006 Note: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)
Thu Dec 28 16:14:19 2006 Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Thu Dec 28 16:14:19 2006 Cannot allocate TUN/TAP dev dynamically
Thu Dec 28 16:14:19 2006 Exiting
I'm new to openVPN... Can someone point me to what is really missing here?
I have this system info if it might help:
Linux vpn 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386 GNU/Linux
OpenVPN and tun/yap module
3 years on from the original posting I have come across the very same problem. I occasionally have to build an openvpn box and each time I find that I have to "read up" on the same items!
I have loaded up a Redhat enterprise 3 ES box and configured openvpn with the lzo compression.
Here are my details...2.4.21-4.ELsmp
Straight to the point...My linux skills are a little wavy but I can get around happily, most of the time...BUT, I need assistance loading the tun/tap module.
When I run insmod tun I get the following
insmod: tun: no module by that name found
How can I go about installing the module? From what I have read the kernel dynamically loads modules where and when required but it appears as though this module is not installed in the kernel at all?
I have read numerous articles about installing an RPM or compiling the module from source RPMS...editing of /etc/modules.conf etc...but I am still running into problems.
Do I need to recompile the kernel with support for the tun/tap module or is there an easier, less time consuming way of getting module installed in the kernel??
ANY COMMENTS would be appreciated!
THANKS AGAIN TO ALL