• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: tun device ? openvpn etc  (Read 3332 times)
jakblak
Newbie
*

Karma: 0
Posts: 16


View Profile
« on: August 20, 2009, 10:27:30 AM »

did anyone achived to get TUN dev up and running?

debian ~ # modprobe tun

debian ~ # lsmod
Module Size Used by
tun 14884 0

debian ~ # ls -la /dev/net/tun
crw-rw-rw- 1 root root 10, 200 Aug 20 17:58 /dev/net/tun

ifconfig tun0
tun0: error fetching interface information: Device not found

debian ~ # uname -r
2.6.31-rc6-00109-gcc6abd8


I upgraded to 2.6.31 since it did also not work on 2.6.22  ... any hints?
Logged

birdman
Sr. Member
****

Karma: 4
Posts: 440


View Profile WWW
« Reply #1 on: August 20, 2009, 04:29:05 PM »

FWIW: I get the same ifconfig message on my standard Intel desktop after "modprobe tun".  But vpnc is happy to use it.
Logged

jakblak
Newbie
*

Karma: 0
Posts: 16


View Profile
« Reply #2 on: August 21, 2009, 01:40:18 AM »

unfortunately this did not help ...

but I tried to start openvpn (without having vpnc installed, I removed it) and it works and brings the TUN device up. ifconfig works once the openvpn server starts. But not if the server is down...
as I am not very familiar with linux, I am wondering now why it is after starting openvpn there, but not before...

ok, howover, sheeva pretty fast... but  the device gets a bit too warm for my taste...
« Last Edit: August 21, 2009, 01:49:55 AM by jakblak » Logged

birdman
Sr. Member
****

Karma: 4
Posts: 440


View Profile WWW
« Reply #3 on: August 21, 2009, 07:03:24 PM »

Probably because the tunnel only exists once something decides to create it. It needs a destination (the light at the other end of the tunnel).  So unless an application has an active one set-up there is no such device.
Logged

mitsus
Newbie
*

Karma: 0
Posts: 13



View Profile
« Reply #4 on: September 08, 2009, 05:29:48 AM »

did anyone achived to get TUN dev up and running?

debian ~ # modprobe tun

debian ~ # lsmod
Module Size Used by
tun 14884 0

debian ~ # ls -la /dev/net/tun
crw-rw-rw- 1 root root 10, 200 Aug 20 17:58 /dev/net/tun

ifconfig tun0
tun0: error fetching interface information: Device not found

debian ~ # uname -r
2.6.31-rc6-00109-gcc6abd8


I upgraded to 2.6.31 since it did also not work on 2.6.22  ... any hints?

Hi jakblak,
try to force module loading insert it into modules.dep.
It for me work greatly.

Regards
Logged

Scandal
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #5 on: December 25, 2010, 05:14:18 AM »

Hi everybody, Merry Xmas to you all.
I've recently received my Guruplug server. Managed to get the server to boot from SD card and installed Transmission and NZBGet. This all works smoothly. However, being a newbie on Linux, I corrupted my tun.ko module while attempting to install Openvpn. Is there any way to get a new tun.ko without performing more than newbie level Linux magic? I've searched the internet and copied tun.ko's but nothing works.
please help

Logged

Pages: [1]
Print
Jump to: