This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

load tun module problem



Dear All,

I have a problem in OpenVpn client.

Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)

NEED HELP!!!!!!!

# openvpn /opt/ipnc/config2.txt                                                                                                            
Mon Jan 17 03:52:42 2000 OpenVPN 2.0.9 armv5tl-montavista-linux-gnueabi [SSL] [EPOLL] built on Feb 18 2010                                 
Mon Jan 17 03:52:42 2000 IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA.  OpenVP.
Mon Jan 17 03:52:42 2000 ******* WARNING *******: all encryption and authentication features disabled -- all data will be tunnelled as cleat
Mon Jan 17 03:52:42 2000 Note: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)                                             
Mon Jan 17 03:52:42 2000 Note: Attempting fallback to kernel 2.2 TUN/TAP interface                                                         
Mon Jan 17 03:52:42 2000 Cannot allocate TUN/TAP dev dynamically                                                                           
Mon Jan 17 03:52:42 2000 Exiting                                                                                                           
# modprobe tun                                                                                                                             
FATAL: Module tun not found. 

# ls /dev/net/                                                                                                                             
tun 

Thank you for your help

PS :

I use the DM355-IPNC-VCA1 (2.6.10_mvl401_IPNCVCA1-2.1.0)

 

 

  • Hi

    Which crosstool are you using arm_v5_le-  or arm-none-linux-gnueabi- ? I'm having some porting problem too.  Can you tell me what kind of configure parameter did you passed? it's not relevent to your post, but I'm going to use openvpn on omapl137 with mv_5_pro frequently maybe we can make some info exchange,,

     

    Yetkin.

     

  • Hello,

    yetkin said:
    Which crosstool are you using arm_v5_le-  or arm-none-linux-gnueabi- ?

    the compiler that i use is arm_v5_le -

    yetkin said:
    an you tell me what kind of configure parameter did you passed? it's not relevent to your post, but I'm going to use openvpn on omapl137 with mv_5_pro frequently maybe we can make some info exchange,,

    To resolve this problem you must compile your noyeau with support module tun (choose the letter "m"), the compiler will generate the module  tun  and you find it in (for me the rootfs is on the host pc) workdir/filesys/lib/modules/2.6.10_mvl401_IPNCVCA1-2.1.0/kernel/drivers/net ,  so it must load this module before starting openvpn with the command:

    insmod / lib/modules/2.6.10_mvl401_IPNCVCA1-2.1.0/kernel / drivers / net / tun.ko

    Rblode.

  • Hey Thanks ...  It helped me a lot.

    also as you said we need tun.ko for tun/tap device...

    Did you checked "Universal TUN/TAP Device Support" under "Network Device Support -->>" in kernel conf. ?

     

  • Hi ,

    Yetkin Öztürk said:

    also as you said we need tun.ko for tun/tap device...

    Did you checked "Universal TUN/TAP Device Support" under "Network Device Support -->>" in kernel conf. ?

    Yes i checked the "Universal TUN/TAP Device Support" under Device Drivers ---> Networking support ---> Universal TUN/TAP Device Supportin kernel conf with "make menuconfig"

    Regards,

    Rblode.

     

  • Did you try

    modprobe /lib/modules/2.6.10_mvl401_IPNCVCA1-2.1.0/kernel/drivers/net/tun.ko

    and putting 'tun' word to /etc/modules for the next boot. It seems like modprobe doesnt know the right PATH... /lib/modules/`uname -r`/kernel/drivers/net/tun.ko may be different than yours.. Btw i recompiled with tun.ko and insert it to my kernel.  But When I use

    ./openvpn --dev tun

    it comes up with this error..

    'Cannot allocate TUN/TAP dev dynamically'

     


  • I started to use vpn on IPSec & racoon... (ipsectools) ... It's interesting to see a missing crypto module : aes.ko , i compiled this module, than when i copied aes.ko to my target, I got the same error with you...

    modprobe Fatal : file not found etc...

    i compiled the kernel directly with arm_v5t_le-gcc and added cross-comp. related variables to my ROOTs bashrc ('make modules install' needs root priv.) and 'source' root's bashrc before installing modules to my ~/workdir/filesys ...

    then at target machine modules worked flawlessly...

     

    regards,

    Yetkin