View previous topic :: View next topic |
Author |
Message |
ElCondor Guru
Joined: 10 Apr 2002 Posts: 520 Location: Vienna, Austria, Europe
|
Posted: Wed Jun 02, 2004 9:19 pm Post subject: VTUN/OPENVPN: no /dev/tunl0 |
|
|
I wanted to install vtun or openvpn on servers with kernel 2.6, but both programs complain that there is no /dev/tunl0 - which there isn't. nevertheless there is a device tunl0 with I can access with ifconfig. CONFIG_TUN is turned on in the kernel as well as CONFIG_NET_IPIP.
openvpn in debug mode tells me Code: | Wed Jun 2 22:00:00 2004 110: OpenVPN 1.5.0 i486-pc-linux-gnu [SSL] [LZO] built on Jun 2 2004
Wed Jun 2 22:00:00 2004 111: Static Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Wed Jun 2 22:00:00 2004 112: Static Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Jun 2 22:00:00 2004 113: Static Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Wed Jun 2 22:00:00 2004 114: Static Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Wed Jun 2 22:00:05 2004 115: Note: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)
Wed Jun 2 22:00:05 2004 116: Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Wed Jun 2 22:00:05 2004 117: Cannot open TUN/TAP dev /dev/tunl0: No such file or directory (errno=2)
Wed Jun 2 22:00:05 2004 118: Exiting
|
The only tunnel-device in /dev is /dev/misc/net/tun , also linked to /dev/net/tun.
I tried as modules and compiled static in the kernel.
Can anyone please tell me what I missed?
* ElCondor pasa * _________________ Here I am the victim of my own choices and I'm just starting! |
|
Back to top |
|
|
Chris W l33t
Joined: 25 Jun 2002 Posts: 972 Location: Brisbane, Australia
|
Posted: Wed Jun 02, 2004 10:52 pm Post subject: |
|
|
/dev/tunl0 is a legacy device for kernel 2.2. It is only trying to access this because loading /dev/net/tun, the 2.4 and 2.6 equivalent, failed.
Things to check:- When you built the TUN code in - did you install the new kernel file and reboot?
- When you built as a kernel module - Did you install the modules? Did you load the tun module i.e. modprobe tun, before running OpenVPN? Was the module present in the output from lsmod?
- Have you checked that you haven't made a typo on the device, or other, line in the OpenVPN config file?
I have OpenVPN working with Linux 2.4.26 and do not have CONFIG_NET_IPIP set. _________________ Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein |
|
Back to top |
|
|
ElCondor Guru
Joined: 10 Apr 2002 Posts: 520 Location: Vienna, Austria, Europe
|
Posted: Thu Jun 03, 2004 10:02 am Post subject: |
|
|
okayokay, the device is correctly namen "tun0", not "tunl0" - so now the vtun - tunnel is up, but I cannot send data over it .. one step left ..
* ElCondor pasa * _________________ Here I am the victim of my own choices and I'm just starting! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|