Tun/Tap on Redhat Enterprise Linux - Linux

This is a discussion on Tun/Tap on Redhat Enterprise Linux - Linux ; I cannot seem to get the tun/tap driver working. I have Redhat Enterprise Linux ES v4 A tun file is there. Is there something I am missing. ls -lrt /dev/net/ total 0 crw------- 1 root root 10, 200 Sep 15 ...

+ Reply to Thread
Results 1 to 10 of 10

Thread: Tun/Tap on Redhat Enterprise Linux

  1. Tun/Tap on Redhat Enterprise Linux

    I cannot seem to get the tun/tap driver working. I have Redhat
    Enterprise Linux ES v4

    A tun file is there. Is there something I am missing.

    ls -lrt /dev/net/
    total 0
    crw------- 1 root root 10, 200 Sep 15 2003 tun


    Openvpn putput is as follows:

    Thu Sep 21 15:45:09 2006 OpenVPN 2.0.8 i686-pc-linux [SSL] [EPOLL] built
    on Sep 21 2006
    Thu Sep 21 15:45:09 2006 Diffie-Hellman initialized with 1024 bit key
    Thu Sep 21 15:45:09 2006 WARNING: file 'server.key' is group or others
    accessible
    Thu Sep 21 15:45:09 2006 TLS-Auth MTU parms [ L:1541 D:138 EF:38 EB:0
    ET:0 EL:0 ]
    Thu Sep 21 15:45:09 2006 Note: Cannot open TUN/TAP dev /dev/net/tun: No
    such device (errno=19)
    Thu Sep 21 15:45:09 2006 Note: Attempting fallback to kernel 2.2 TUN/TAP
    interface
    Thu Sep 21 15:45:09 2006 Cannot allocate TUN/TAP dev dynamically
    Thu Sep 21 15:45:09 2006 Exiting


    Thanks for any help!!

  2. Re: Tun/Tap on Redhat Enterprise Linux

    Jay Binns wrote:
    > I cannot seem to get the tun/tap driver working. I have Redhat
    > Enterprise Linux ES v4
    >
    > A tun file is there. Is there something I am missing.
    >
    > ls -lrt /dev/net/
    > total 0
    > crw------- 1 root root 10, 200 Sep 15 2003 tun
    >
    >
    > Openvpn putput is as follows:
    >
    > Thu Sep 21 15:45:09 2006 OpenVPN 2.0.8 i686-pc-linux [SSL] [EPOLL] built
    > on Sep 21 2006
    > Thu Sep 21 15:45:09 2006 Diffie-Hellman initialized with 1024 bit key
    > Thu Sep 21 15:45:09 2006 WARNING: file 'server.key' is group or others
    > accessible
    > Thu Sep 21 15:45:09 2006 TLS-Auth MTU parms [ L:1541 D:138 EF:38 EB:0
    > ET:0 EL:0 ]
    > Thu Sep 21 15:45:09 2006 Note: Cannot open TUN/TAP dev /dev/net/tun: No
    > such device (errno=19)
    > Thu Sep 21 15:45:09 2006 Note: Attempting fallback to kernel 2.2 TUN/TAP
    > interface
    > Thu Sep 21 15:45:09 2006 Cannot allocate TUN/TAP dev dynamically
    > Thu Sep 21 15:45:09 2006 Exiting



    Do you have the tun/tap driver loaded?

    Try

    modprobe tun

    before starting the VPN daemon.

    The /dev entry just tells which device to access, but
    the message seems to tell that OpenVPN is not able
    to open the device file and issue the relevant ioctl()'s.

    Another cause could be that you're attempting to run
    the VPN daemon as non-root.

    The RH ES can also have security enhancments running which
    may cause all kinds of havoc here.

    --

    Tauno Voipio
    tauno voipio (at) iki fi

  3. Re: Tun/Tap on Redhat Enterprise Linux

    Tauno Voipio wrote:

    >
    > Do you have the tun/tap driver loaded?
    >
    > Try
    >
    > modprobe tun


    I have the following when I run it.

    # modprobe tun
    modprobe: Can't locate module tun


    >
    > before starting the VPN daemon.
    >
    > The /dev entry just tells which device to access, but
    > the message seems to tell that OpenVPN is not able
    > to open the device file and issue the relevant ioctl()'s.
    >
    > Another cause could be that you're attempting to run
    > the VPN daemon as non-root.
    >



    I am running as root.


    > The RH ES can also have security enhancments running which
    > may cause all kinds of havoc here.
    >



    How can I find this out?

    Thanks

  4. Re: Tun/Tap on Redhat Enterprise Linux

    On Thu, 21 Sep 2006 17:23:31 -0400, Jay Binns wrote:

    > Tauno Voipio wrote:
    >
    >>
    >> Do you have the tun/tap driver loaded?
    >>
    >> Try
    >>
    >> modprobe tun

    >
    > I have the following when I run it.
    >
    > # modprobe tun
    > modprobe: Can't locate module tun
    >
    >


    that definitely should not happen. What kernel are you running? Try to
    verify that there is the tun.ko module at:

    /lib/modules/[kernel-version]/kernel/drivers/net/

    If that driver is missing, openvpn complains about the missing of the
    /dev/net/tun file, but in fact it has no driver to handle it. Probably a
    reinstallation of the kernel may help.

    If you did rebuild a kernel from source, you have to enable tun/tap
    support, that is disabled by default.

    Georg

  5. Re: Tun/Tap on Redhat Enterprise Linux

    Georg Klein wrote:
    > On Thu, 21 Sep 2006 17:23:31 -0400, Jay Binns wrote:
    >
    >> Tauno Voipio wrote:
    >>
    >>> Do you have the tun/tap driver loaded?
    >>>
    >>> Try
    >>>
    >>> modprobe tun

    >> I have the following when I run it.
    >>
    >> # modprobe tun
    >> modprobe: Can't locate module tun
    >>
    >>

    >
    > that definitely should not happen. What kernel are you running? Try to
    > verify that there is the tun.ko module at:
    >
    > /lib/modules/[kernel-version]/kernel/drivers/net/
    >
    > If that driver is missing, openvpn complains about the missing of the
    > /dev/net/tun file, but in fact it has no driver to handle it. Probably a
    > reinstallation of the kernel may help.
    >


    I did not build it myself. I simply installed Redhat Enterprise ES 4
    update4.

    No such thing found. I do not have tun.ko file here:

    /lib/modules/2.4.21-4.EL/kernel/drivers/net> dir
    total 1192
    -rwxr--r-- 1 root root 22496 Oct 3 2003 via-rhine.o
    -rwxr--r-- 1 root root 77076 Oct 3 2003 typhoon.o
    -rwxr--r-- 1 root root 38644 Oct 3 2003 tlan.o
    -rwxr--r-- 1 root root 63192 Oct 3 2003 tg3.o
    -rwxr--r-- 1 root root 8292 Oct 3 2003 slhc.o
    -rwxr--r-- 1 root root 21820 Oct 3 2003 sis900.o
    -rwxr--r-- 1 root root 11828 Oct 3 2003 r8169.o
    -rwxr--r-- 1 root root 32024 Oct 3 2003 ppp_generic.o
    -rwxr--r-- 1 root root 12984 Oct 3 2003 ppp_async.o
    -rwxr--r-- 1 root root 24524 Oct 3 2003 pcnet32.o
    -rwxr--r-- 1 root root 20072 Oct 3 2003 ns83820.o
    -rwxr--r-- 1 root root 26648 Oct 3 2003 netconsole.o
    -rwxr--r-- 1 root root 10440 Oct 3 2003 ne2k-pci.o
    -rwxr--r-- 1 root root 25636 Oct 3 2003 natsemi.o
    -rwxr--r-- 1 root root 5184 Oct 3 2003 mii.o
    -rwxr--r-- 1 root root 18844 Oct 3 2003 fealnx.o
    -rwxr--r-- 1 root root 22420 Oct 3 2003 ewrk3.o
    -rwxr--r-- 1 root root 6284 Oct 3 2003 ethertap.o
    -rwxr--r-- 1 root root 21240 Oct 3 2003 epic100.o
    -rwxr--r-- 1 root root 31300 Oct 3 2003 eepro100.o
    -rwxr--r-- 1 root root 2664 Oct 3 2003 dummy.o
    -rwxr--r-- 1 root root 23176 Oct 3 2003 dmfe.o
    -rwxr--r-- 1 root root 23220 Oct 3 2003 dl2k.o
    -rwxr--r-- 1 root root 22156 Oct 3 2003 b44.o
    -rwxr--r-- 1 root root 21420 Oct 3 2003 amd8111e.o
    -rwxr--r-- 1 root root 80760 Oct 3 2003 aironet4500_proc.o
    -rwxr--r-- 1 root root 79548 Oct 3 2003 aironet4500_core.o
    -rwxr--r-- 1 root root 247276 Oct 3 2003 acenic.o
    -rwxr--r-- 1 root root 10532 Oct 3 2003 8390.o
    -rwxr--r-- 1 root root 25360 Oct 3 2003 8139too.o
    -rwxr--r-- 1 root root 22748 Oct 3 2003 8139cp.o
    -rwxr--r-- 1 root root 41016 Oct 3 2003 3c59x.o
    drwxr-xr-x 2 root root 4096 Sep 20 13:42 wireless
    drwxr-xr-x 2 root root 4096 Sep 20 13:42 tulip
    drwxr-xr-x 2 root root 4096 Sep 20 13:42 tokenring
    drwxr-xr-x 2 root root 4096 Sep 20 13:42 skfp
    drwxr-xr-x 2 root root 4096 Sep 20 13:42 pcmcia
    drwxr-xr-x 2 root root 4096 Sep 20 13:42 e1000
    drwxr-xr-x 2 root root 4096 Sep 20 13:42 e100
    drwxr-xr-x 2 root root 4096 Sep 20 13:42 bonding



    > If you did rebuild a kernel from source, you have to enable tun/tap
    > support, that is disabled by default.
    >
    > Georg


  6. Re: Tun/Tap on Redhat Enterprise Linux

    On Fri, 22 Sep 2006 13:24:30 -0400, Jay Binns wrote:


    >>

    >
    > I did not build it myself. I simply installed Redhat Enterprise ES 4
    > update4.
    >
    > No such thing found. I do not have tun.ko file here:
    >
    > /lib/modules/2.4.21-4.EL/kernel/drivers/net> dir


    but that is not a rhel4 kernel. It is a very outdated kernel of rhel3
    (release or up1). The up4 kernel for rhel4 should be 2.6.9-42. There
    is something pretty wrong on your system.

    Have a look at that.

    Georg

  7. Re: Tun/Tap on Redhat Enterprise Linux

    Georg Klein wrote:
    > On Fri, 22 Sep 2006 13:24:30 -0400, Jay Binns wrote:
    >
    >
    >> I did not build it myself. I simply installed Redhat Enterprise ES 4
    >> update4.
    >>
    >> No such thing found. I do not have tun.ko file here:
    >>
    >> /lib/modules/2.4.21-4.EL/kernel/drivers/net> dir

    >
    > but that is not a rhel4 kernel. It is a very outdated kernel of rhel3
    > (release or up1). The up4 kernel for rhel4 should be 2.6.9-42. There
    > is something pretty wrong on your system.


    Georg thanks so much!!. I think the ISP must have loaded the wrong
    kernel. I will look into this.

    When I do a uname -a I get:

    Linux mymachine.com 2.4.21-4.EL #1 Fri Oct 3 18:13:58 EDT 2003 i686 i686
    i386 GNU/Linux

    Is there a way to get more detailed info for the release the installed
    on the commandline or otherwise? For all I know they may have installed
    Fedora Core 3 or 2.

    Thanks

    >
    > Have a look at that.
    >
    > Georg



  8. Re: Tun/Tap on Redhat Enterprise Linux

    On Fri, 22 Sep 2006 14:50:50 -0400, Jay Binns wrote:

    >>
    >> but that is not a rhel4 kernel. It is a very outdated kernel of rhel3
    >> (release or up1). The up4 kernel for rhel4 should be 2.6.9-42. There
    >> is something pretty wrong on your system.

    >
    > Georg thanks so much!!. I think the ISP must have loaded the wrong
    > kernel. I will look into this.
    >
    > When I do a uname -a I get:
    >
    > Linux mymachine.com 2.4.21-4.EL #1 Fri Oct 3 18:13:58 EDT 2003 i686 i686
    > i386 GNU/Linux


    but correctly installed, openvpn should work although and the should be a
    driver tun.o.

    >
    > Is there a way to get more detailed info for the release the installed
    > on the commandline or otherwise? For all I know they may have installed
    > Fedora Core 3 or 2.


    first of all: it is not a good idea to crosspost to all that newsgroups.
    Try to avoid it.

    on redhat or fedora systems you may want to look at the file
    /etc/redhat-release.

    Georg

  9. Re: Tun/Tap on Redhat Enterprise Linux

    On Fri, 22 Sep 2006 18:50:50 UTC in comp.os.linux.development.system, Jay Binns
    wrote:

    > When I do a uname -a I get:
    >
    > Linux mymachine.com 2.4.21-4.EL #1 Fri Oct 3 18:13:58 EDT 2003 i686 i686
    > i386 GNU/Linux


    That's the kernel version from RHEL3 not 4 and it's way out of date anyway.
    RHEL3 is currently on 2.4.21-47.

    --
    Trevor Hemsley, Brighton, UK.
    Trevor-Hemsley at dsl dot pipex dot com

  10. Re: Tun/Tap on Redhat Enterprise Linux

    In comp.os.linux.development.system Jay Binns :
    > Georg Klein wrote:
    >> On Fri, 22 Sep 2006 13:24:30 -0400, Jay Binns wrote:



    >>> I did not build it myself. I simply installed Redhat Enterprise ES 4
    >>> update4.


    >>> No such thing found. I do not have tun.ko file here:


    >>> /lib/modules/2.4.21-4.EL/kernel/drivers/net> dir


    2.4 kernel are called .o.

    >> but that is not a rhel4 kernel. It is a very outdated kernel of rhel3
    >> (release or up1). The up4 kernel for rhel4 should be 2.6.9-42. There
    >> is something pretty wrong on your system.


    > Georg thanks so much!!. I think the ISP must have loaded the wrong
    > kernel. I will look into this.


    Indeed and he didn't installed a single patch, I'll drop the ISP
    for someone who knows halfway what he is doing.

    > When I do a uname -a I get:


    > Linux mymachine.com 2.4.21-4.EL #1 Fri Oct 3 18:13:58 EDT 2003 i686 i686
    > i386 GNU/Linux


    > Is there a way to get more detailed info for the release the installed
    > on the commandline or otherwise? For all I know they may have installed
    > Fedora Core 3 or 2.


    Try 'lsb_release -d'.

    It is RHEL 3 probably from the initial disks, AFAIK update 8 is
    recent. Dunno offhand if the module you are looking for comes with
    RHEL 4, it might be in the kernel-unsupported package. Though it
    can be looked up from rhn, if you have an account or download the
    src.rpm from updates.redhat.com (ftp iirc). Or download kernel,
    kernel-unsupported rpm from CentOS and check this out.

    'rpm -qlip .rpm' should show you content and information
    of an uninstalled package, see 'man rpm' for more info.

    Good luck

    --
    Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
    mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
    #bofh excuse 378: Operators killed by year 2000 bug bite.

+ Reply to Thread