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

[Openvpn-users] OpenVPN - Cannot allocate TUN/TAP dev dynamically


  • Subject: [Openvpn-users] OpenVPN - Cannot allocate TUN/TAP dev dynamically
  • From: Marcus Mikolaiczyk <marcus.mikolaiczyk@xxxxxxxxxxxxxx>
  • Date: Fri, 04 May 2007 14:47:14 +0200

Dear all,

I've got openvpn "crosscompiled" for out tricore architecture but I'm
having problems on initiating the /dev/tun0 device.
I'ver read alot of different messages to this issue but found nothing
the would help in my case. Maybe you can help me.

Starting with some general information:
Linux kernelversion 2.4.19
Every action is done as root user.

Using the tun module:
bash-2.05a# modprobe tun

bash-2.05a# dmesg |grep TUN
Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky

bash-2.05a# ls -ltr /dev/net/
crw-r-----    1 0        0         10, 200 Jan  1 00:00 tun

ipfconfig/routing
bash-2.05a# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
10.0.0.0        *               255.255.255.0   U     0      0        0 eth0
default         10.0.0.224      0.0.0.0         UG    0      0        0 eth0
bash-2.05a# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:02:36:30:81:54
          inet addr:10.0.0.224  Bcast:10.255.255.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:625 errors:0 dropped:0 overruns:0 frame:0
          TX packets:238 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:74849 (73.0 kb)  TX bytes:31343 (30.6 kb)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

I've done already the looback tests which worked. And can succesfully
exchange my key with our VPN server, but the Interface /dev/tun0 is not
beeing created (init).

He's testing every 256 posibilty (about line 958 in tun.c) to get a
valid fd from

tt->fd = open (tunname, O_RDWR)) > 0)

Another thing is that the option --mktun is not availiable after
compiling for this architecture.

The compilation produces no errors or warnings.

Any helpful Ideas or should I post this on the openvpn-devel list?



------------------- Normal Logoutput --------------------------
Fri May  4 14:30:09 2007 OpenVPN 2.1_rc4 tricore-unknown-none [SSL]
built on May  4 2007
Fri May  4 14:30:09 2007 IMPORTANT: OpenVPN's default port number is now
1194, based on an official port number assignment by IANA.  OpenVPN
2.0-beta16 and earlier used 5000 as the default port.
Enter Private Key Password:
Fri May  4 14:30:13 2007 Control Channel MTU parms [ L:1541 D:138 EF:38
EB:0 ET:0 EL:0 ]
Fri May  4 14:30:13 2007 Data Channel MTU parms [ L:1541 D:1450 EF:41
EB:4 ET:0 EL:0 ]
.......
.......
Fri May  4 14:30:19 2007 [vpn.racnet.net] Peer Connection Initiated with
OUR.VPN.SERVER.IP:1194
Fri May  4 14:30:20 2007 SENT CONTROL [vpn.racnet.net]: 'PUSH_REQUEST'
(status=1)
Fri May  4 14:30:20 2007 PUSH: Received control message:
'PUSH_REPLY,route 10.0.0.0 255.255.255.0,.........,ifconfig 172.16.16.18
172.16.16.17'
Fri May  4 14:30:20 2007 OPTIONS IMPORT: timers and/or timeouts modified
Fri May  4 14:30:20 2007 OPTIONS IMPORT: --ifconfig/up options modified
Fri May  4 14:30:20 2007 OPTIONS IMPORT: route options modified
Fri May  4 14:30:20 2007 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option
options modified
*** init_tun_postFri May  4 14:30:20 2007 Cannot allocate TUN/TAP dev
dynamically
Fri May  4 14:30:20 2007 Exiting


-------------------- Details  verbose=11-----------------------------
Fri May  4 14:32:36 2007 us=... Tried opening /dev/tun0 (failed): No
such file or directory (errno=2)
...
Fri May  4 14:32:36 2007 us=842527 Tried opening /dev/tun255 (failed):
No such file or directory (errno=2)
Fri May  4 14:32:36 2007 us=842874 Cannot allocate TUN/TAP dev dynamically
Fri May  4 14:32:36 2007 us=843167 Exiting

-----------------------------------------------------------------


Kind regards

Miko

______________________
OpenVPN mailing lists
https://lists.sourceforge.net/lists/listinfo/openvpn-users