any luck with vpnc?


timothee

Member
Joined
Dec 6, 2007
Messages
171
Age
46
Location
Singapore
Website
Visit site
Hey there,


I'm not managing to run vpnc, I just installed it from the angstrom repo (0.5.3-r1.6), set my config but it refuses to start with the following message:



Code:
~ # vpnc

vpnc: can't open /dev/net/tun, check that it is either device char 10 200 or (with DevFS) a symlink to ../misc/net/tun (not misc/net/tun): No such device

vpnc: can't initialise tunnel interface: No such device



I can see the device is there, and seems correct



Code:
~ # ls -al /dev/net/tun

crw-r----- 1 root root 10, 200 Dec 20 20:39 /dev/net/tun



but I'm not sure about the tun module:



Code:
~ # zcat /proc/config.gz | grep -i tun | grep -v TUNER

# CONFIG_INET_XFRM_TUNNEL is not set

CONFIG_INET_TUNNEL=m

CONFIG_INET_XFRM_MODE_TUNNEL=y

# CONFIG_INET6_XFRM_TUNNEL is not set

# CONFIG_INET6_TUNNEL is not set

CONFIG_INET6_XFRM_MODE_TUNNEL=m

# CONFIG_IPV6_TUNNEL is not set

CONFIG_TUN=m

# CONFIG_DVB_CINERGYT2_TUNING is not set

# Digital terrestrial only tuners/PLL


~ # lsmod     

Module                  Size  Used by

board_omap3pandora_wifi     1824  0 

wl1251_sdio             5124  0 

wl1251                 56576  1 wl1251_sdio

lib80211_crypt_ccmp     5696  0 

lib80211_crypt_wep      3776  0 

lib80211_crypt_tkip     9184  0 

lib80211                6560  3 lib80211_crypt_ccmp,lib80211_crypt_wep,lib80211_crypt_tkip

arc4                    1728  2 

pcbc                    3616  0 

ecb                     2784  2 

compat_firmware_class     8968  1 wl1251

mac80211              179276  2 wl1251_sdio,wl1251

cfg80211              147380  2 wl1251,mac80211

compat                  7072  2 mac80211,cfg80211

rfkill_backport        20020  1 cfg80211

bufferclass_ti          4496  0 

omaplfb                 9344  0 

pvrsrvkm              127336  2 bufferclass_ti,omaplfb

ipv6                  234504  10 

ads7846                 8896  0 

hwmon                   2452  1 ads7846


~ # modprobe tun

FATAL: Module tun not found.


Any advice?


Tim
 
Just from the looks of the error you either don't have a tunnel device (tun) created or it's not loaded in the kernel... try this...


at first try this line..



Code:
modprobe tun



if that doesn't work then you may need to create the device...





Code:
mknod /dev/net/tun c 10 200

modprobe tun


edit: noticed that you saw this device in the /dev folder.. hopefully modprobe will work...
 
Last edited by a moderator:
Just from the looks of the error you either don't have a tunnel device (tun) created or it's not loaded in the kernel... try this...


at first try this line..



Code:
modprobe tun



if that doesn't work then you may need to create the device...





Code:
mknod /dev/net/tun c 10 200

modprobe tun



edit: noticed that you saw this device in the /dev folder.. hopefully modprobe will work...


Thanks for your reply! I had already tried modprobe tun (last 2 lines of the last code block in first post):



Code:
~ # modprobe tun

FATAL: Module tun not found.


Why is the module not found if the kernel was compiled with tunnel as module? Is that a packaging issue? Or must I do something extra?
 
Still not working for me, I noticed there's a package named "kernel-module-tunnel4", so I installed and modprobed that, but same error message still :( .


And I also saw the tun.ko does exist. Why can the kernel not load it?


See:



Code:
~ # opkg files kernel-module-tunnel4

Package kernel-module-tunnel4 (2.6.27-pandora+r21+git449c13a99bb39ced8dbea5daccc402c39f77455e-r21.5) is installed on root and has the following files:

/lib/modules/2.6.27.46-omap1/kernel/net/ipv4/tunnel4.ko


~ # modprobe tunnel4 ## <- no problem here!


~ # opkg files kernel-module-tun

Package kernel-module-tun (2.6.27-pandora+r21+git449c13a99bb39ced8dbea5daccc402c39f77455e-r21.5) is installed on root and has the following files:

/lib/modules/2.6.27.46-omap1/kernel/drivers/net/tun.ko


~ # modprobe tun

FATAL: Module tun not found.


tunnel4 is not enough to start vpnc.


Any other idea?
 
Last edited by a moderator:
I just setup vpnc on my new openpandora and it all went well. Steps taken were as follows:


sudo su


opkg update


opkg install vpnc


cd /etc/vpnc


cp default.conf tim.conf


#set up a conf for my CISCO VPN


vi tim.conf


vpnc tim


#connected to servers at work


vpnc-disconnect

Still not working for me, I noticed there's a package named "kernel-module-tunnel4", so I installed and modprobed that, but same error message still :( .


And I also saw the tun.ko does exist. Why can the kernel not load it?


See:



Code:
~ # opkg files kernel-module-tunnel4

Package kernel-module-tunnel4 (2.6.27-pandora+r21+git449c13a99bb39ced8dbea5daccc402c39f77455e-r21.5) is installed on root and has the following files:

/lib/modules/2.6.27.46-omap1/kernel/net/ipv4/tunnel4.ko


~ # modprobe tunnel4 ## <- no problem here!


~ # opkg files kernel-module-tun

Package kernel-module-tun (2.6.27-pandora+r21+git449c13a99bb39ced8dbea5daccc402c39f77455e-r21.5) is installed on root and has the following files:

/lib/modules/2.6.27.46-omap1/kernel/drivers/net/tun.ko


~ # modprobe tun

FATAL: Module tun not found.


tunnel4 is not enough to start vpnc.


Any other idea?
 
Thanks for your reply Tim,


I can confirm that it works for me on hotfix 5 too, as per the steps you provided. I am now happily connected to my office servers :)


I believe I did do the exact same thing previously when I was on HF4, so I'm not sure if the problem I had was due to HF4, or if vpnc has been upgraded since then.


Cheers!


Tim
 
I got vpnc up and running with the commands posted above, my problem is that I need the version with ssl support, under debian/ubuntu I know I can uncomment a few lines in the makefile and then build it myself, but how do I do that for/under pandora?
 
Back
Top