[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

[Openvpn-users] tun device not there after kernel upgrade


  • Subject: [Openvpn-users] tun device not there after kernel upgrade
  • From: "Alexandros Papadopoulos" <apapadop@xxxxxxxxxxxxxx>
  • Date: Fri, 5 Oct 2007 10:26:48 +0300

This is not an OpenVPN issue, but it is directly related, so please
bare with me.

Running Debian testing, I upgraded the kernel to 2.6.22-2-686 with apt-get.

After reboot I noticed that my OpenVPN tunnels were not starting. The
OpenVPN log file said:

[...]
Fri Oct  5 09:18:56 2007 Note: Cannot open TUN/TAP dev /dev/net/tun:
No such file or directory (errno=2)
Fri Oct  5 09:18:56 2007 Note: Attempting fallback to kernel 2.2
TUN/TAP interface
Fri Oct  5 09:18:56 2007 Cannot allocate TUN/TAP dev dynamically
Fri Oct  5 09:18:56 2007 Exiting

Indeed:
root@asterix:~# ls -l /dev/net/t??
ls: /dev/net/t??: No such file or directory

Let's check for 2.2-style TUN/TAP devices:

root@asterix:~# ls -l /dev/t??
crw-rw-rw- 1 root tty 5, 0 2007-10-05 09:06 /dev/tty
root@asterix:~#

Not here either. The module is loaded properly:
root@asterix:~# lsmod | grep tun
tun                    10560  0
root@asterix:~#

I tried unloading and re-loading with verbose output and all I got was
root@asterix:~# modprobe -v tun
insmod /lib/modules/2.6.22-2-686/kernel/drivers/net/tun.ko
root@asterix:~#

modinfo doesn't show anything weird as well:

root@asterix:~# modinfo tun
filename:       /lib/modules/2.6.22-2-686/kernel/drivers/net/tun.ko
alias:          char-major-10-200
license:        GPL
author:         (C) 1999-2004 Max Krasnyansky <maxk@xxxxxxxxxxxx>
description:    Universal TUN/TAP device driver
depends:
vermagic:       2.6.22-2-686 SMP mod_unload 686
root@asterix:~#

So I thought ok, let's create this by hand, as per
http://openvpn.net/install.html :
root@asterix:~# mknod /dev/net/tun c 10 200
mknod: `/dev/net/tun': No such file or directory
root@asterix:~#

Hmmm... the latest Debian is surely using udev, could this have
something to do with it?
root@asterix:~# cd /dev/
root@asterix:/dev# ./MAKEDEV
root@asterix:/dev# ls -l /dev/net/t??
ls: /dev/net/t??: No such file or directory
root@asterix:/dev#

At this point I'm stumped. Any help appreciated.
______________________
OpenVPN mailing lists
https://lists.sourceforge.net/lists/listinfo/openvpn-users