Openvpn install question/issue TUN/TAP interface
#1
Posted 03 November 2007 - 01:11 AM
I have the certs and config file in place but when I try to start the vpn I get the error \:
Cannot open TUN/TAP dev OpenVPN: no such file or directory (errno=2)
When I execute - openvpn --mktun --dev tun0
I get :
Note: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)
To do the install I used apt-get install openvpn. I am guessing there is a piece missing due to that. Anyone have any tips?
Thanks
John
#2
Posted 16 November 2007 - 10:53 PM
This is a disappointment. We run OpenVPN in the office and I assured my boss that EEE would support it.
Now I have to build a POPTOP server. :-(
#3
Posted 16 November 2007 - 11:20 PM
Quote
This is a disappointment. We run OpenVPN in the office and I assured my boss that EEE would support it.
Now I have to build a POPTOP server. :-(
mknod /dev/net/tun c 10 200
modprobe tun
#4
Posted 17 November 2007 - 10:27 AM
I'm trying for the second time to download the kernel sources from ASUS. If it's successful I'll try and compile tun.ko
If that doesn't work then I'll probably install another distribution although the thought of getting the wireless and webcam working makes me shudder.
#5
Posted 17 November 2007 - 12:03 PM
#6
Posted 17 November 2007 - 12:44 PM
/home/user> uname -a
Linux titch 2.6.21.4-eeepc #2 Mon Sep 24 14:09:46 EDT 2007 i686 GNU/Linux
/home/user> sudo modprobe tun
FATAL: Module tun not found.
If you've been using it for a couple of months perhaps you have a different version of the kernel?
#7
Posted 17 November 2007 - 02:02 PM
mknod /dev/net/tun c 10 200
#8
Posted 17 November 2007 - 02:31 PM
titch:/home/user> mknod /dev/net/tun c 10 200
mknod: `/dev/net/tun': No such file or directory
The tun/tap module doesn't exist/
titch:/home/user> find /lib/modules/ -name '*tun*' -print
Is it possible that you've installed some package that supplies this module?
#9
Posted 17 November 2007 - 02:37 PM
I assumed that /dev/ was a filesystem managed by udev and it isn't - it's a real directory
Thanks for your help
#10
Posted 17 November 2007 - 03:09 PM
According to the kernel config - TUN is built into kernel - no need to modprobe it...
#
# Network device support
#
CONFIG_NETDEVICES=y
CONFIG_DUMMY=m
# CONFIG_BONDING is not set
# CONFIG_EQUALIZER is not set
CONFIG_TUN=y
# CONFIG_NET_SB1000 is not set
So if there is a problem with automatic devnode creation - maybe you need to modify /etc/udev rules?
#11
Posted 06 December 2007 - 07:30 PM
/home/user> mknod /dev/net/tun c 10 200
mknod: `/dev/net/tun': File exists
/home/user> sudo modprobe tun
FATAL: Module tun not found.
/home/user>
Any ideas?
Edited by halfvulcan, 06 December 2007 - 07:33 PM.
#12
Posted 06 December 2007 - 10:54 PM
/home/user> mkdir /dev/net
mkdir: cannot create directory `/dev/net': Permission denied
/home/user> sudo mkdir /dev/net
/home/user> sudo mknod /dev/net/tun c 10 200
/home/user> mknod /dev/net/tun c 10 200
mknod: `/dev/net/tun': File exists
/home/user> modprobe tun
bash: modprobe: command not found
/home/user> sudo modprobe tun
FATAL: Module tun not found.
/home/user>
Is tun not going to work for me? Do I need to recompile the kernel? How difficult is that? I need Hamachi...
Edited by halfvulcan, 06 December 2007 - 10:56 PM.
#13
Posted 06 December 2007 - 11:18 PM
#14
Posted 07 December 2007 - 01:40 AM
Here are the relevant lines, the confusing ones removed:
/home/user> sudo mkdir /dev/net
/home/user> sudo mknod /dev/net/tun c 10 200
/home/user> sudo modprobe tun
FATAL: Module tun not found.
Edited by halfvulcan, 07 December 2007 - 01:44 AM.
#15
Posted 07 December 2007 - 05:43 AM
Quote
Here are the relevant lines, the confusing ones removed:
/home/user> sudo mkdir /dev/net
/home/user> sudo mknod /dev/net/tun c 10 200
/home/user> sudo modprobe tun
FATAL: Module tun not found.
Quote
According to the kernel config - TUN is built into kernel - no need to modprobe it...
#
# Network device support
#
CONFIG_NETDEVICES=y
CONFIG_DUMMY=m
# CONFIG_BONDING is not set
# CONFIG_EQUALIZER is not set
CONFIG_TUN=y
# CONFIG_NET_SB1000 is not set
So if there is a problem with automatic devnode creation - maybe you need to modify /etc/udev rules?
ls /dev/net/rundoes it show up with anything?
#16
Posted 07 December 2007 - 06:44 AM
ls: /dev/net/tun: No such file or directory
Ok, I don't know if this was the right thing to do, but I figured it couldn't hurt, so I created a /dev/net folder. Now I'm reinstalling the build-essential package, which may or may not have anything whatsoever to do with tun.
Edited by halfvulcan, 07 December 2007 - 07:01 AM.
#17
Posted 07 December 2007 - 07:09 AM
Quote
#
CONFIG_NETDEVICES=y
CONFIG_DUMMY=m
# CONFIG_BONDING is not set
# CONFIG_EQUALIZER is not set
CONFIG_TUN=y
# CONFIG_NET_SB1000 is not set
So if there is a problem with automatic devnode creation - maybe you need to modify /etc/udev rules?
Edited by halfvulcan, 07 December 2007 - 03:26 PM.
#18
Posted 07 December 2007 - 07:37 AM
Edited by halfvulcan, 07 December 2007 - 07:41 AM.
#19
Posted 07 December 2007 - 03:31 PM
Quote
#
CONFIG_NETDEVICES=y
CONFIG_DUMMY=m
# CONFIG_BONDING is not set
# CONFIG_EQUALIZER is not set
CONFIG_TUN=y
# CONFIG_NET_SB1000 is not set
Edited by halfvulcan, 07 December 2007 - 03:33 PM.
#20
Posted 07 December 2007 - 05:07 PM
Quote
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












