Page 1 of 9 123 ... LastLast
Results 1 to 10 of 87

Thread: No tun module in 10.04 breaks my vpn client

  1. #1
    Join Date
    Jun 2006
    Location
    California
    Beans
    280
    Distro
    Xubuntu 12.04 Precise Pangolin

    No tun module in 10.04 breaks my vpn client

    I use a SSLvpn-plus client

    It's start up script looks for lsmod |grep tun.

    On 10.04 tun is in the kernel and not a module, so SSLvpn-plus fails to start. Is there a way to fake that is there?

  2. #2
    Join Date
    Dec 2006
    Location
    Chicago
    Beans
    3,839

    Re: No tun module in 10.04 breaks my vpn client

    Why not edit the startup script?

  3. #3
    Join Date
    Jun 2006
    Location
    California
    Beans
    280
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: No tun module in 10.04 breaks my vpn client

    Tried that, but then the daemon starts and then fails.

  4. #4
    Join Date
    Dec 2006
    Location
    Chicago
    Beans
    3,839

    Re: No tun module in 10.04 breaks my vpn client

    Quote Originally Posted by grahams View Post
    Tried that, but then the daemon starts and then fails.
    Then it sounds like "faking" lsmod output for the startup script isn't going to help with your problem.

  5. #5
    Join Date
    Sep 2009
    Beans
    2

    Re: No tun module in 10.04 breaks my vpn client

    I am experiencing this same issue but with Juniper's Network Connect Client (error "Modprobe for Tun driver failed"). Does anyone have any other suggestions on how we can get around this?

  6. #6
    Join Date
    Dec 2006
    Location
    Chicago
    Beans
    3,839

    Re: No tun module in 10.04 breaks my vpn client

    Sorry, I mixed up this thread with another VPN-related one.
    Last edited by cdenley; April 23rd, 2010 at 01:47 PM.

  7. #7
    Join Date
    Jun 2006
    Location
    California
    Beans
    280
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: No tun module in 10.04 breaks my vpn client

    VPN can't establish that is the issue.

    BTW. anyone know why tun is in the kernel now rather than staying as a module? Unless most users use vpn this makes no sense IMHO.

  8. #8
    Join Date
    Dec 2006
    Location
    Chicago
    Beans
    3,839

    Re: No tun module in 10.04 breaks my vpn client

    You can try this, at your own risk.
    Code:
    mkdir faketun
    cd faketun
    echo -e "#include <linux/module.h>\nstatic int start__module(void) {return 0;}\nstatic void end__module(void){return 0;}\nmodule_init(start__module);\nmodule_exit(end__module);">tun.c
    echo -e "obj-m += tun.o\nall:\n\tmake -C /lib/modules/\$(shell uname -r)/build/ M=\$(PWD) modules\nclean:\n\tmake -C /lib/modules/\$(shell uname -r)/build/ M=\$(PWD) clean\nclean-files := Module.symvers">Makefile
    make -C /lib/modules/`uname -r`/build/ M=`pwd`
    sudo insmod tun.ko
    I'm running 9.10 and already have a tun module, so I haven't tested it. It basically creates a kernel module "tun" which does nothing.

  9. #9
    Join Date
    Sep 2009
    Beans
    2

    Re: No tun module in 10.04 breaks my vpn client

    I tried out your code but it doesn't seem to help my situation with Juniper's VPN client. It might help grahams because "lsmod |grep tun" returns a line for tun (not after reboot, but that's a good thing for me).

    The Juniper Network Connect client checks for tun via modprobe tun and I still got "FATAL: Module tun not found."

    Thanks for the code cdenley!

  10. #10
    Join Date
    Apr 2010
    Beans
    3

    Re: No tun module in 10.04 breaks my vpn client

    Any luck? I am facing the same issue. I saw a bug on this but it says invalid bug as the module is already a part of kernel. They should at least mention a work around. This is the reason why many folks don't switch over...

Page 1 of 9 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •