LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-29-2006, 04:07 AM   #1
Exterminator34
LQ Newbie
 
Registered: Nov 2006
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
Unable to install a Tun/Tap driver on a 2.6.18 kernel Slackware 11


Hello there. I'm new to Linux and i have a little problem installing the TUN/TAP driver on a Slackware 11 kernel 2.6.18. I need Tun/Tap up and running cuz i need to install a OpenVPN server (( and import a WINDOWS configuration file but that is a completely different story )) on this server. I've think* I've searched the internet for the info i need but i have failed.

At first i thought that it is a module that just needs to be activated in the kernel. So i searched in /usr/src/linux-2.6.18/make menuconfig ... but there is no optin for adding the tun/tap . There is a IPTunneling option ( that is not selected ) but it does not do the job .

I've try'ed with absolutely every package at the vtun.sourceforge.net/tun but with no luck.

If i try to compile the normal package i get an "wrong kernel version must be a 2.2.x or 2.4.x" error.

If i try compiling the FreeBSD package -> Wrong OS.

Using the rpm2tgz on the RH7.2 package and than pkginstall. Installation went just fine so i thought i did it .. but after doing a modprobe tun -> FATAL. Module tun not found.

insmod if_tap.ko ( from the FreeBSD package ) error's out ->
insmod: error inserting '/ex/tun1.1/BSD_driver/modules/if_tap.ko': -1 Invalid module format

Wile searching the Hamachi forums where i found this -> hamachi.cc/tuntap I whent to the dir /usr/src/linux-2.6.18/Documentation/networking/tuntap.txt

But there is absolutely NO info on how to the the driver up and running on a slackware 11 box with a 2.6.18 kernel ( any 2.6 kernel any box if that matters ). To my knowledge CentOS has a build-in tun/tap driver ... maybe i can do something from there ... i dunno i have no idea what to do any more.

Please help me -)) HELP ! -)

Before any questions about changing the distro or the kernel are asked.
Changing the distro is out of the question as to the kernel i cannot cuz there is an IBM Director software that does NOT run under 2.4 kernels ... So i am stuck with this little issue.

P.S. Sorry no links ... 1-st post and i can't have url's in post -)
 
Old 11-29-2006, 07:54 AM   #2
The_Outlander
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235

Rep: Reputation: 30
Kernel 2.6.17.13 should be the same for 2.6.18 ?

Device drivers > Network device support > Universal TUN/TAP device driver support.

Last edited by The_Outlander; 11-30-2006 at 04:41 AM.
 
Old 11-29-2006, 01:24 PM   #3
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-14.1 (3.16.0) UEFI enabled
Posts: 348

Rep: Reputation: 71
Tun

you must first create the device using mknod
Look in the INSTALL file and it tells the steps required
or it may be in the README file
not sure which
but I just went thru this a few days ago
Good Luck
 
Old 12-01-2006, 03:46 AM   #4
Exterminator34
LQ Newbie
 
Registered: Nov 2006
Distribution: Slackware
Posts: 2

Original Poster
Rep: Reputation: 0
@The_Outlander
Thanks -). Found it out several hours after i posted -) It is there.

@AlleyTrotter
Alley you do not need to do anything with mknod.
The device is installed form /usr/src/linux/make menuconfig and as The_Outlander said "Device drivers > Network device support > Universal TUN/TAP device driver support."

Than you do a "make" and "insmod tun.ko" ( tun/ko is located in /usr/src/linux/drivers/net/tun.ko )

There you have it -)

You may whant to do a make modules_install or you will have to do the same operation ( insmod tun.ko ) every time you reboot your machine -)
 
Old 12-01-2006, 02:40 PM   #5
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-14.1 (3.16.0) UEFI enabled
Posts: 348

Rep: Reputation: 71
Not Necessarily So

I got the same error message
On my 11.0 system with 2.6 generic kernel
the /dev/net directory did not even exist until I created it
Below is a quote from the OpenVPN INSTALL file
which worked for me
""
*************************************************************************

TUN/TAP Driver Configuration:

* Linux 2.4 or higher (with integrated TUN/TAP driver):

(1) make device node: mknod /dev/net/tun c 10 200
(2a) add to /etc/modules.conf: alias char-major-10-200 tun
(2b) load driver: modprobe tun
(3) enable routing: echo 1 > /proc/sys/net/ipv4/ip_forward

Note that either of steps (2a) or (2b) is sufficient. While (2a)
only needs to be done once per install, (2b) needs to be done once
per reboot. If you install from RPM (see above) and use the
openvpn.init script, these steps are taken care of for you.
""

so I guess everyones config is a little different
the module loaded automagically for me after the above steps 1 and 2a
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tun/Tap issue minasafwat Linux - Kernel 0 11-14-2006 01:11 AM
Tun/Tap getting started? blavo Linux - Newbie 0 02-14-2006 10:29 AM
how to allow tun/tap device in firewall? efm Linux - Networking 12 07-22-2005 04:47 AM
TUN TAP for non-Redhat Machine Echo Kilo Linux - Networking 3 12-19-2004 06:16 PM
Universal tun/tap device driver support giddyupman Linux - Networking 4 05-14-2004 10:04 AM


All times are GMT -5. The time now is 05:37 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration